03.06.2011, 20:12
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;
}