Admin duty isn't working?
#8

Because Pharrel had one bracket +.

pawn Код:
if(strcmp(cmd, "/aduty", true) == 0)
    {
        if(IsPlayerAdmin(playerid))//put here your variable that defines who is admin
        {
            new name1[MAX_PLAYER_NAME];
            GetPlayerName(playerid, name1, sizeof(name1));
            if(!AdminDuty[playerid])
            {
                format(string, sizeof(string), "%s has went on admin duty.",name1);
                SendClientMessageToAll(COLOR_GREEN, string);
                adminduty[playerid] = Create3DTextLabel("{F81414}ADMIN DUTY", 0x008080FF, 30.0, 40.0, 50.0, 40.0, 0);
                Attach3DTextLabelToPlayer(adminduty[playerid], playerid, 0.0, 0.0, 0.7);
                SendClientMessage(playerid, COLOR_GREEN, "You're on admin duty. If you want to go off duty type /aoduty.");
                AdminDuty[playerid] = true;
            }
            else
            {
                format(string, sizeof(string), "%s has went off admin duty.",name2);
                Delete3DTextLabel(adminduty[playerid]);
                AdminDuty[playerid] = false;
            }
        }
    }
    return 1;
Reply


Messages In This Thread
Admin duty isn't working? - by Ehab1911 - 07.10.2011, 14:18
Re: Admin duty isn't working? - by Pharrel - 07.10.2011, 14:22
Re: Admin duty isn't working? - by Ehab1911 - 07.10.2011, 15:33
Re: Admin duty isn't working? - by Ehab1911 - 07.10.2011, 15:45
Re: Admin duty isn't working? - by [MWR]Blood - 07.10.2011, 15:46
Re: Admin duty isn't working? - by Ehab1911 - 07.10.2011, 15:49
Re: Admin duty isn't working? - by =WoR=G4M3Ov3r - 07.10.2011, 15:58
Re: Admin duty isn't working? - by Jafet_Macario - 07.10.2011, 15:59
Re: Admin duty isn't working? - by Ehab1911 - 07.10.2011, 16:01
Re: Admin duty isn't working? - by DreamOnIt - 07.10.2011, 16:09

Forum Jump:


Users browsing this thread: 1 Guest(s)