30.06.2009, 01:19
Add this on OnPlayerDisconnect or whatever you use to show player disconnections.
That should work, but I won't guarantee it. I suck at coding sometimes.
Код:
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if (player admin / rank ; whatever you use to get your player admin status)
{
new playerip[20];
new playername[MAX_PLAYER_NAME];
new string[256];
GetPlayerName(playerid, playername, sizeof(playername));
GetPlayerIp(playerid, playerip, sizeof(playerip));
SendClientMessage(i, your desired color, "%s has left the game. IP: %s.", playername, playerip);
}
}
return 1;
}

