Little help.
#2

If I'm reading this right, you want the time allowed to rob a bank to decrease when there are more robbers involved. What'd you do simply is make a variable that counts the number of robbers and then have it set the amount of time allowed to rob a bank depending on how many robbers there are.

pawn Код:
new BankRobbers; //this would be the global variable, basically just have this add up every time a robber joins and make sure to set it to 0 when a robbery is finished.
new RobTime; //this would also be a global variable to just act as what the robbery time will be

forward RobBank();
public RobBank() //just setting up an example public function to give you an idea of what I mean
{
    switch(BankRobbers)
    {
        case 0..2: { RobTime = 5; }
        case 3..5: { RobTime = 4; }
        case 6..8: { RobTime = 3; }
        default: { RobTime = 2; }
        //this basically goes through the BankRobbers variable and checks what value it is and sets the RobTime to a determined value (in minutes)
    }
    //rest of the bank robbery code goes here
    return 1;
}
I hope that isn't confusing, but gives you an idea on how to do what you asked (if I understood the question correctly).
Reply


Messages In This Thread
Little help. - by ThatFag - 16.10.2016, 20:42
Re: Little help. - by DTV - 16.10.2016, 22:19
Re: Little help. - by ThatFag - 17.10.2016, 13:49

Forum Jump:


Users browsing this thread: 1 Guest(s)