10.03.2017, 04:34
Код:
public OnPlayerDisconnect(playerid, reason) { new name[MAX_PLAYER_NAME], string[64+MAX_PLAYER_NAME]; GetPlayerName(playerid, name, sizeof(name)); format(string, sizeof(string), "[ADMIN] %s has disconnected from the server.", name); if(PlayerInfo[playerid][pAdmin] >= 1) { SendClientMessage(0xC4C4C4FF, string); } return 1; } public OnPlayerConnect(playerid, reason) { new name[MAX_PLAYER_NAME], string[64+MAX_PLAYER_NAME]; GetPlayerName(playerid, name, sizeof(name)); format(string, sizeof(string), "[ADMIN] %s has joined the server.", name); if(PlayerInfo[playerid][pAdmin] >= 1) { SendClientMessage(0xC4C4C4FF, string); } return 1; }