aduty Command errors
#5

Quote:
Originally Posted by Stanford
Посмотреть сообщение
What about this? [removed the textlabel]

pawn Код:
CMD:aduty(playerid,params[]){
    new string[128];
    if(PlayerInfo[playerid][pAdmin] < 1) return SendClientMessage(playerid,COLOR_WHITE,"You're not an admin!");
    if(PlayerInfo[playerid][pAdminDuty] == 0)
    {
        format(string,sizeof(string),"%s has just went on Admin Duty",GetName(playerid));
        SendClientMessageToAll(COLOR_GREEN,string);
        SetPlayerHealth(playerid, 100000);
        SetPlayerArmour(playerid, 100000);
        SetPlayerColor(playerid,COLOR_TWRED);
        PlayerInfo[playerid][pAdminDuty] = 1;
    }
    else
    if(PlayerInfo[playerid][pAdminDuty] == 1)
    {
        format(string,sizeof(string),"%s has just went off Admin Duty",GetName(playerid));
        SendClientMessageToAll(COLOR_RED,string);
        PlayerInfo[playerid][pAdminDuty] = 0;
        ResetPlayerWeapons(playerid);
        SetPlayerColor(playerid,COLOR_WHITE);
        SetPlayerHealth(playerid,0);
        ForceClassSelection(playerid);
    }
    return 1;
    }
Its working thanks... but anyway, after i used the command why i got marked on minimap ?
Can you give me help again for this one i will give you +rep
Reply


Messages In This Thread
aduty Command errors - by NekoChan - 11.05.2013, 06:20
Re: aduty Command errors - by GoldZoroGrab - 11.05.2013, 08:17
Re: aduty Command errors - by NekoChan - 11.05.2013, 09:18
Re: aduty Command errors - by Stanford - 11.05.2013, 09:24
Re: aduty Command errors - by NekoChan - 11.05.2013, 10:43

Forum Jump:


Users browsing this thread: 1 Guest(s)