Server Crash
#6

Quote:
Originally Posted by Kebab-
Посмотреть сообщение
Change the code to
Код:
CMD:togbankrob(playerid, params[])
{
        if(PlayerInfo[playerid][pAdmin] == 6)
        {
            if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] == 6)
                {
                        SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
                        return 1;
                }
                if(BankRobStatus==1)
                {
                        BankRobStatus = 0;
                        SendClientMessage(playerid, COLOR_WHITE, "You have ENABLED Bank Robberies, Timer has been RESET");
                        KillTimer(banktime);
        //              banktime = SetTimer("BankRobReset", 5400000, false);
                }
                else
                {
                    BankRobStatus = 1;
                    SendClientMessage(playerid, COLOR_WHITE, "You have DISABLED Bank Robberies, Timer has been STOPPED");
                    KillTimer(banktime);
                }
        }
        else
        {
            SendClientMessage(playerid, COLOR_GRAD1, " You're not Authorized to use that command!");
                return 1;
        }
        return 1;
}
Wrong Thread
Reply


Messages In This Thread
Server Crash - by Diavant - 22.07.2014, 03:41
Re: Server Crash - by Scottas - 22.07.2014, 07:48
Re: Server Crash - by Konstantinos - 22.07.2014, 09:05
Re: Server Crash - by Diavant - 22.07.2014, 11:25
Re: Server Crash - by Kebab- - 22.07.2014, 11:53
Re: Server Crash - by Diavant - 22.07.2014, 11:58
Re: Server Crash - by Diavant - 22.07.2014, 12:49
Re: Server Crash - by Sherza - 29.12.2014, 17:06

Forum Jump:


Users browsing this thread: 2 Guest(s)