Robbed
#1

how to create when a player is robbed the bank and in 1hour to rob again...
Reply
#2

Whis Timer

https://sampwiki.blast.hk/wiki/SetTimer
Reply
#3

you should READ THIS BEFORE POSTING

your requesting a script, which this is not the correct section for that.
Use the "Script request thread"

or post the code you need help with

regards,
Reply
#4

Make a new variable:
pawn Код:
new bool:IsBankRobbed;
Make a new timer:
pawn Код:
forward Check_IsBankRobbed();
public Check_IsBankRobbed()
{
    if(IsBankRobbed) IsBankRobbed = false;

    return 1;
}
Put it in the /robbank command, add this:
pawn Код:
IsBankRobbed = true;
SetTimer("Check_IsBankRobbed", 3600 * 1000, false);
Good Luck!
Reply
#5

thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)