So firstly make a forward for a timer...
So add
Код:
new Robable=0; //basically a variable for robbing, so if it's 1 players can rob the bank and if it's 0 they can't
forward RobbingTimer();
on the top under defines and stuff.
Then find your robbing command, so when someone robs the bank set a timer, and change the Robable variable to 0.
Код:
Robable = 0;
SetTimer("RobbingTimer", 600000, false);
and add
Код:
if(Robable == 0) return SendClientMessage(playerid, COLOR, "You have to wait 10 minutes until you can rob the bank again!");
on top of your command /rob or whatever
and then make a public function
Код:
public RobbingTimer()
{
Robable = 1; Sets the robbing variable to 1 so players can rob a bank or whatever again.
return 1;
}
Hope I helped you if you don't understand me send us your code...
EDIT:This is basically a timer which makes you wait 10 minutes before next robbing...