Mark on minimap (/aduty)
#6

pawn Код:
CMD:aduty(playerid,params[])
    new string[128];
    if(PlayerInfo[playerid][pAdmin] < 2) 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);
        DisablePlayerCheckpoint(playerid)
        PlayerInfo[playerid][pAdminDuty] = 1;
        adminlabel[playerid] = Create3DTextLabel("Admin on duty\n Do Not Attack!", COLOR_WHITE, 30.0, 40.0, 50.0, 40.0, 0);
        Attach3DTextLabelToPlayer(adminlabel[playerid], playerid, 0.0, 0.0, 0.7);
    }
    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);
        Delete3DTextLabel(adminlabel[playerid]);
    }
    return 1;
    }
This should do the work.
Reply


Messages In This Thread
Mark on minimap (/aduty) - by NekoChan - 11.05.2013, 09:03
Re: Mark on minimap (/aduty) - by MattyG - 11.05.2013, 09:24
Re: Mark on minimap (/aduty) - by seanny - 11.05.2013, 09:27
Re : Mark on minimap (/aduty) - by Rayan_black - 11.05.2013, 09:54
Re: Mark on minimap (/aduty) - by NekoChan - 11.05.2013, 10:38
Re : Mark on minimap (/aduty) - by Rayan_black - 11.05.2013, 10:40

Forum Jump:


Users browsing this thread: 1 Guest(s)