27.10.2012, 14:49
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
Like this:
SERVER: [Playername] has joined the server. - SendClientMessageToall
SERVER: IP: xxx.xxx.xxx. - SendClientMessage
SERVER: Kills: x || Deaths: x. - SendClientMessage
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; }
SERVER: [Playername] has joined the server. - SendClientMessageToall
SERVER: IP: xxx.xxx.xxx. - SendClientMessage
SERVER: Kills: x || Deaths: x. - SendClientMessage