09.03.2017, 12:51
Well, how can i send connect/left message to admin, like SendDeathMessage?
Special icons can also be used (ICON_CONNECT and ICON_DISCONNECT). |
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; }