/aduty command
#6

ty

pawn Код:
CMD:aduty(playerid, params[])
{
    if(pInfo[playerid][pLevel] >= 1)
    {
        new skin[MAX_PLAYERS];
        if(OnDuty[playerid] == 0)
        {
            skin[playerid] = GetPlayerSkin(playerid);
            SetPlayerSkin(playerid, 217);
            SetPlayerHealth(playerid, 100000);
            SetPlayerColor(playerid, 0x01FCFFFF);
            OnDuty[playerid] = 1;
        }
        else if(OnDuty[playerid] == 1)
        {
            SetPlayerSkin(playerid, skin[playerid]);
            SetPlayerHealth(playerid, 100);
            SetPlayerColor(playerid, 0xFFFFFFFF);
            OnDuty[playerid] = 0;
        }
    }
    else
    {
        SendClientMessage(playerid, -1, "You are not administrator.");
    }
    return true;
}
Edi: Show lines the errors mijata.

Edit two: Test with the code from this comment, eh edited.
Reply


Messages In This Thread
/aduty command - by Mijata - 08.01.2015, 18:19
Re: /aduty command - by ZaBraNjeNi - 08.01.2015, 18:20
Respuesta: /aduty command - by JuanStone - 08.01.2015, 18:22
Re: /aduty command - by HydraHumza - 08.01.2015, 18:23
Re: /aduty command - by Mijata - 08.01.2015, 18:23
Respuesta: /aduty command - by JuanStone - 08.01.2015, 18:26
Re: Respuesta: /aduty command - by Mijata - 08.01.2015, 18:27
Re: /aduty command - by Mijata - 08.01.2015, 18:40
Respuesta: /aduty command - by JuanStone - 08.01.2015, 18:43
Re: /aduty command - by Mijata - 08.01.2015, 18:49

Forum Jump:


Users browsing this thread: 4 Guest(s)