aduty command
#5

pawn Код:
CMD:aduty(playerid, params[])
{
    if(PlayerInfo[playerid][pAdmin] < 2)
    {
        SendClientMessage(playerid, -1, "You are not authorized to use this command.");
    }
    else if(PlayerInfo[playerid][pAdmin] > 2)
    {
        if(PlayerInfo[playerid][pAdminDuty] == 0)
        {
            SendClientMessageEx(playerid, COLOR_WHITE, ""LGHT_BLUE"[HLRP]: {FFFFFF}You are now on admin-duty. Your duty is to help others not yourselves (admin abuse).");
            PlayerInfo[playerid][pAdminDuty] = 1;
            SetPlayerHealth(playerid, 1);
            SetPlayerArmour(playerid, 100000);
            PlayerInfo[playerid][pChar] = GetPlayerSkin(playerid);
        }
        else if(PlayerInfo[playerid][pAdminDuty] == 1)
        {
            SendClientMessageEx(playerid, COLOR_WHITE, ""LGHT_BLUE"[HLRP]: {FFFFFF}You are now off admin-duty. Resume roleplaying!");
            PlayerInfo[playerid][pAdminDuty] = 0;
            ResetPlayerWeapons(playerid);
            new string[128];
            SetPlayerHealth(playerid, 100);
            SetPlayerArmour(playerid, 0);
            SetPlayerSkin(playerid, PlayerInfo[playerid][pChar]);
        }
    }
    return 1;
}
You mean like this?
Reply


Messages In This Thread
aduty command - by Kursed - 23.02.2015, 00:32
Re: aduty command - by -=Dar[K]Lord=- - 23.02.2015, 00:57
Re: aduty command - by Abagail - 23.02.2015, 01:15
Re: aduty command - by Kursed - 23.02.2015, 05:14
Re: aduty command - by NinjahZ - 23.02.2015, 06:46
Re: aduty command - by Kursed - 23.02.2015, 07:34

Forum Jump:


Users browsing this thread: 1 Guest(s)