12.04.2014, 09:21
ONPlayerDisConnect
pawn Код:
if(PlayerInfo[playerid][pAdminDuty] == 1)
{
SetPlayerHealth(playerid, PlayerInfo[playerid][pHealth]);
SetPlayerArmour(playerid, PlayerInfo[playerid][pArmor]);
PlayerInfo[playerid][pAdminDuty] = 0;
SetPlayerToTeamColor(playerid);
KillTimer(AdminTagTimer[playerid]);
for(new i = 0; i < MAX_PLAYERS; i++) ShowPlayerNameTagForPlayer(i, playerid, true);
Delete3DTextLabel(Admintag[playerid]);
format(string, sizeof(string), "*{FF0000}AdmWarning{FFFFFF}: %s %s is no longer on admin duty!", alevel, sendername);
format(logstring, sizeof(logstring), "[%d/%d/%d - %d:%d:%d] %s %s is no longer on admin duty!", day, month, year, hour, minute, second, alevel, sendername);
SendAdminMessage(0xFFFFFFFF, string);
AcmdLog(logstring);
}