/aduty cmd
#7

Here:

pawn Код:
CMD:aduty(playerid, params[])
{
    if(PlayerInfo[playerid][pAdmin] >= 2)
        {
        if(PlayerInfo[playerid][pAdminDuty] == 0)
        {
                new name[24],ostring[124];
                GetPlayerName(playerid,name,sizeof(name));
                format(ostring,sizeof(ostring),"Administrator %s is now on duty (/report For Assistance).",name);
                SendClientMessageToAll(-1,ostring);
                SetPlayerHealth(playerid, 100000);
                SetPlayerArmour(playerid, 100000);
                SetPlayerColor(playerid, COLOR_REALRED);
                PlayerInfo[playerid][pAdminDuty] = 1;
        }
            else
            {
                new name[24], ostring[124];
                GetPlayerName(playerid,name,sizeof(name));
                format(ostring,sizeof(ostring),"Administrator %s is now off duty (Let The Admin Roleplay).",name);
                SendClientMessageToAll(-1,ostring);
                SetPlayerHealth(playerid, 100);
                SetPlayerArmour(playerid, 100);
                SetPlayerColor(playerid, COLOR_WHITE);
                PlayerInfo[playerid][pAdminDuty] = 0;
            return 1;
            }
    }
    else
    {
        SendClientMessage(playerid, COLOR_WHITE, "You are not a administrator.");
        return 1;
    }
}
Reply


Messages In This Thread
/aduty cmd - by NinjaChicken - 17.08.2012, 10:39
Re: /aduty cmd - by ToiletDuck - 17.08.2012, 10:47
Re: /aduty cmd - by kbalor - 17.08.2012, 10:49
Re: /aduty cmd - by RenSoprano - 17.08.2012, 10:53
Re: /aduty cmd - by sanplayer - 17.08.2012, 10:59
Re: /aduty cmd - by Supercop - 17.08.2012, 11:02
Re: /aduty cmd - by sanplayer - 17.08.2012, 11:18
Re: /aduty cmd - by Scott Zulkifli - 17.08.2012, 11:26
Re: /aduty cmd - by sanplayer - 17.08.2012, 11:45

Forum Jump:


Users browsing this thread: 7 Guest(s)