Could you help?
#1

Could you help me to make a command to enable/disable the rob able instead of the "waittumer" like /enablerob
Thank you.
PHP код:
//Command(s)
CMD:robbank(playeridparams[])
{
    if(
robpossible == 1
    {
        if(
IsPlayerInRangeOfPoint(playerid3.02309.1899,-8.4444,26.7422))
        {
            
robpossible 0
            
SetTimer("waittimer"300000false); //Normal Mode 5 minutes
           
            //SetTimer("waittimer", 65000, false); //Test Mode 65 seconds
            
SetTimer("robtimer"60000false);
        
            
            
SendClientMessage(playeridCOLOR_WHITE"You are robbing the bank, the police has been notified!");
            
SendClientMessage(playeridCOLOR_WHITE"You gotta stay 30 seconds in the bank in order to rob it!");
         }
    } else {
        
SendClientMessage(playeridCOLOR_WHITE"You can't rob the bank right now!");
    }
    return 
1;

Reply


Messages In This Thread
Could you help? - by Brys - 21.12.2015, 13:51
Re: Could you help? - by Mic_H - 21.12.2015, 14:19

Forum Jump:


Users browsing this thread: 1 Guest(s)