07.06.2013, 18:14
pawn Код:
if (PlayerInfo[playerid][pAdmin] > 0)
{
if(PlayerInfo[playerid][pAdmin] == 1)
{
SendClientMessageEx(playerid, COLOR_WHITE,"SERVER: You are logged in as a Moderator.");
format( string2, sizeof( string2 ), "SERVER: %s[%s] has logged in as a Moderator.", GetPlayerNameEx( playerid ), ARankC(playerid));
}
else
{
format(string2, sizeof(string2), "SERVER: You are logged in as a Level %d[%s] Admin.",PlayerInfo[playerid][pAdmin],ARankC(playerid));
SendClientMessageEx(playerid, COLOR_WHITE,string2);
format( string2, sizeof( string2 ), "SERVER: %s[%s] has logged in.",GetPlayerNameEx( playerid ),PlayerInfo[playerid][pAdmin],ARankC(playerid));
}
foreach(Player, i)
{
if( PlayerInfo[i][pAdmin] >= 1337 )
{
if(PlayerInfo[i][pAdmin] >= PlayerInfo[playerid][pAdmin]) SendClientMessageEx(i, COLOR_WHITE, string2);
}
}
}