03.02.2011, 20:36
pawn Код:
if(PlayerInfo[playerid][pAdmin] >= 1)
{
new string[64], pName[MAX_PLAYER_NAME];
GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
format(string,sizeof string,"O Administrador %s entrou no servidor",pName);
SendClientMessageToAll(COLOR_INPLAYER,string);
}
if(PlayerInfo[playerid][pMod] >= 1)
{
new string[64], pName[MAX_PLAYER_NAME];
GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
format(string,sizeof string,"O Moderador %s entrou no servidor",pName);
SendClientMessageToAll(COLOR_INPLAYER,string);
}
if(PlayerInfo[playerid][pMod] < 0 && PlayerInfo[playerid][pAdmin] < 0)
{
new string[64], pName[MAX_PLAYER_NAME];
GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
format(string,sizeof string,"O Jogador %s entrou no servidor",pName);
SendClientMessageToAll(COLOR_INPLAYER,string);
}