/aduty
#2

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);
            }
Reply


Messages In This Thread
/aduty - by D3vin - 12.04.2014, 09:07
Re: /aduty - by Mriss - 12.04.2014, 09:21
Re: /aduty - by D3vin - 12.04.2014, 09:35

Forum Jump:


Users browsing this thread: 2 Guest(s)