07.06.2015, 09:35
Quote:
have you tried:
Code:
if(PlayerInfo[i][pAdmin] >= 1) { format(string,sizeof(string),"* Administrator KillerDVX has joined the server"); SendClientMessageToAll(COLOR_DEADCONNECT,string); } Code:
if (PlayerInfo[playerid][pAdmin] > 0) { if(PlayerInfo[playerid][pAdmin] == 1) { SendClientMessageEx(playerid, COLOR_WHITE,"You are logged in as a Server Moderator."); } else { format(string2, sizeof(string2), "You are logged in as a Level %d Admin.",PlayerInfo[playerid][pAdmin]); SendClientMessageEx(playerid, COLOR_WHITE,string2); } if(PlayerInfo[playerid][pAdmin] == 1) { format( string2, sizeof( string2 ), "%s has logged in as a Server Moderator.", GetPlayerNameEx( playerid )); } else { format( string2, sizeof( string2 ), "%s has logged in as a Level %d Admin.", GetPlayerNameEx( playerid ), PlayerInfo[playerid][pAdmin] ); } foreach(Player, i) { if( PlayerInfo[i][pAdmin] >= 1337 ) { if(PlayerInfo[i][pAdmin] >= PlayerInfo[playerid][pAdmin]) SendClientMessageEx(i, COLOR_WHITE, string2); } } } |
pawn Code:
if(code to check if the player is an admin)
{
GetPlayerName(playerid, pname, sizeof(pname));
format(string, sizeof(string), "* %s(%d) vient de rejoindre {KFX} Survivants vs Zombies.", pname, playerid);
SendClientMessageToAll(COLOR_DEADCONNECT, string);
}
else
{
GetPlayerName(playerid, pname, sizeof(pname));
format(string, sizeof(string), "* %s(%d) vient de rejoindre {KFX} Survivants vs Zombies.", pname, playerid);
SendClientMessageToAll(COLOR_DEADCONNECT, string);
}