10.07.2011, 05:09
Quote:
Here is the code
if(gPlayerAccount[playerid] == 1) { new string[128]; new PID, pName[MAX_PLAYER_NAME];// fuck, you dont have lots of newer shit defined GetPlayerName(PID, pName, sizeof(pName)); format(string, sizeof(string), "%s has joined the server", PID); SendClientMessageToAll(COLOR_GRAD2, string); but when someone joins server it says has joined server not name please help |
Код:
public OnPlayerConnect(playerid) { new string[64], pName[MAX_PLAYER_NAME]; GetPlayerName(playerid,pName,MAX_PLAYER_NAME); format(string,sizeof string,"%s has joined the server. Welcome!",pName); SendClientMessageToAll(0xFFFFFFAA,string); return 1;