06.10.2012, 19:46
Код:
new pName[24]; new string[128]; new pName2[24]; new string2[128]; public OnPlayerConnect(playerid) { GetPlayerName(playerid, pName, 24); format(string, 128, "%s has joined the server!", pName); SendClientMessageToAll(0xFFFFFFF, string); return 1; } public OnPlayerDisconnect(playerid) { GetPlayerName(playerid, pName2, 24); format(string2, 128, "%s has left the server!", pName2); SendClientMessageToAll(0xFFFFFFF, string2); return 1; }