Quote:
Originally Posted by techkid100
pawn Код:
public OnPlayerConnect(playerid) { new pName [MAX_PLAYER_NAME], string[128]; GetPlayerName(playerid, pName, MAX_PLAYER_NAME); format(string, sizeof(string), "%s[%d] joined the server!", pName); SendClientMessageToAll(COLOR_ORANGE, string); return 1; }
public OnPlayerDisconnect(playerid) { new pName [MAX_PLAYER_NAME], string[128]; GetPlayerName(playerid, pName, MAX_PLAYER_NAME); format(string, sizeof(string), "%s[%d] left the server!", pName); SendClientMessageToAll(COLOR_ORANGE, string); return 1; }
Just use that one, I dont even know if it works.
|
irrevelant, and will crash the game.