25.02.2011, 02:35
pawn Код:
public OnPlayerConnect(playerid)
{
new n[MAX_PLAYERS], string[256]; //New variables
GetPlayerName(playerid,name,sizeof(name)); //Gets the name + string
format(string,sizeof(string),"%s has signed as Admin",name); // formats the string
if(PlayerInfo[playerid][Level] >= 2) { //If player's level is 2+
SendClientMessageToAll(0x33FF33AA, string);//It will send the message above
}
return 1;
}