22.09.2013, 14:09
Hey guys, this is my connect message, all i want is to show this message to admin with ip and to players without the ip but there is and error on marker line. here is the script.
Код:
public OnPlayerConnect(playerid) { if(!IsPlayerAdmin(playerid)) { new string[124], pName[MAX_PLAYER_NAME]; GetPlayerName(playerid,pName,MAX_PLAYER_NAME); format(string,sizeof string,"[ Connect ] Player %s has joined the server (%s).",pName,GetPlayerIpEx(playerid)); SendClientMessageToAll(0xFFFFFFAA,string); } else new string[124], pName[MAX_PLAYER_NAME]; GetPlayerName(playerid,pName,MAX_PLAYER_NAME); format(string,sizeof string,"[ Connect ] Player %s has joined the server.",pName); SendClientMessageToAll(0xFFFFFFAA,string);