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