1.Ar fi cevca daca ai lasa autorul adevarat al pluginului.
2. Posteaza sub forma de SMA si nu TXT pentru ca multi nu stiu sa converteasca din txt in sma, sau posteaza in "quote" "code"
#include <amxmodx>
#include <csx>
#define MAX_GROUPS 11
new g_groupNames[ MAX_GROUPS ][ ] =
{
"Fondator",
"Owner",
"God",
"Super Moderator",
"Moderator",
"Administrator",
"Administrator Junior",
"Helper",
"V.I.P",
"Slot",
"User"
};
new g_groupFlags[ MAX_GROUPS ][ ] =
{
"abcdefghijklmnopqrstu",
"bcdefghijmnoqrstu",
"bcdefghijmnopqrt",
"bcdefijmnopqrt",
"bcdefijm",
"bcdefim",
"bcefim",
"bcefi",
"bfai",
"b",
"z"
};
new g_groupFlagsValue[ MAX_GROUPS ];
public plugin_init()
{
register_plugin("Welcome Rang", "1.0", "Power.");
for( new i = 0 ; i < MAX_GROUPS ; i++ )
g_groupFlagsValue[ i ] = read_flags( g_groupFlags[ i ] );
}
public client_putinserver(id)
{
set_task(8.0, "welcome_player", id)
}
public welcome_player(id)
{
new name[ 32 ], izStats[ 8 ], izBody[ 8 ];
new izrank = get_user_stats(id, izStats, izBody);
static Players[ 32 ], Num, Player;
get_players( Players, Num, "ch" );
for( new x = 0 ; x < Num ; x++ )
{
Player = Players[ x ];
for( new i = 0 ; i < MAX_GROUPS ; i++ )
{
if( get_user_flags( Player ) == g_groupFlagsValue[ i ] )
{
get_user_name( Player, name, sizeof ( name ) - 1);
if(Player == id)
{
set_hudmessage(0, 160, 0, 0.01, 0.24, 2, _, _, _, _);
show_hudmessage( Player, "'%s', bine ai venit pe server !^nRank-ul tau este '%d' si detii gradul de '%s' !", name, izrank, g_groupNames[ i ]);
}
}
}
}
return 1;
}