STATS command.
#4

Can someone help me, When i connect is send to all:
format(string,sizeof string,"SERVER: %s has joined the server.",pName);

and it'll send me my kills and deaths

Код:
public OnPlayerConnect(playerid)
{
    new string[64], pName[MAX_PLAYER_NAME];
    GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
    format(string,sizeof string,"SERVER: %s has joined the server.",pName);
    SendClientMessageToAll(0xFFFFFFAA,string);
    format(string,sizeof string,"SERVER: IP: ",pName);
    format(string,sizeof string,"SERVER: Kills: x || Deaths: x ",pName);
    SendClientMessage(0xFFFFFFAA,string);
    return 1;
}
Like this:
SERVER: [Playername] has joined the server. - SendClientMessageToall
SERVER: IP: xxx.xxx.xxx. - SendClientMessage
SERVER: Kills: x || Deaths: x. - SendClientMessage
Reply


Messages In This Thread
STATS command. - by Bug. - 27.10.2012, 14:32
Re: STATS command. - by gtakillerIV - 27.10.2012, 14:36
Re: STATS command. - by Bug. - 27.10.2012, 14:41
Re: STATS command. - by Bug. - 27.10.2012, 14:49
Re: STATS command. - by gtakillerIV - 27.10.2012, 14:54
Re: STATS command. - by Bug. - 27.10.2012, 14:56
Re: STATS command. - by gtakillerIV - 27.10.2012, 14:57
Re: STATS command. - by Bug. - 27.10.2012, 15:03
Re: STATS command. - by CmZxC - 27.10.2012, 15:05
Re: STATS command. - by Bug. - 27.10.2012, 15:07

Forum Jump:


Users browsing this thread: 2 Guest(s)