hello /robbank help
#1

how to put timer so u can rob bank every 8 hours instead of when ever walk in it says 6 hours on it but its vulnable any time
Reply
#2

Request Thead?
Reply
#3

huh?
Reply
#4

pawn Код:
//At top
new BankRobbed;

//Add these check in command
if(BankRobbed == 1) return SendClientMessage(playerid, color,"Bank already robbed return later xD");

//In command when bank is robbed (foe example before SendClientMessage(playerid, color,"You robbed bank");
BankRobbed = 1;
SetTimer("ResetBankRobbery", 28800000, 0);//28800000 is a 8h timer

forward ResetBankRobbery();
public ResetBankRobbery()
{
    BankRobbed = 0;
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)