Connect Message
#1

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);
Reply


Messages In This Thread
Connect Message - by lsreskjn - 22.09.2013, 14:09
Re: Connect Message - by Konstantinos - 22.09.2013, 14:17
Re: Connect Message - by lsreskjn - 22.09.2013, 14:22
Re: Connect Message - by iJumbo - 22.09.2013, 14:23
Re: Connect Message - by Konstantinos - 22.09.2013, 14:27

Forum Jump:


Users browsing this thread: 1 Guest(s)