25.01.2017, 15:43
Код:
at defines - #define PlayerLoop(%1) for(new %1 = 0, pMax = MAX_PLAYERS; %1 < pMax; %1++) if(IsPlayerConnected(%1) && !IsPlayerNPC(%1))
Код:
stock PlayerName(playerid) { new name[MAX_PLAYER_NAME]; GetPlayerName(playerid, name, MAX_PLAYER_NAME); return name; }
Код:
PlayerLoop(i) { new string[128]; format(string,sizeof(string),"% has joined the server" , PlayerName(playerid) SendClientMessage(i,-1, string); }