29.02.2016, 00:42
That's not an efficient way of doing this.
What you can do is set a variable to hold the id of the robbery checkpoint a player has entered. And when they leave the checkpoint, set the variable to -1.
And use the variable for reference. There's no need for a loop and it avoids using extra conditions. It's optimal for a hotkey such as LEFT ALT as well.
What you can do is set a variable to hold the id of the robbery checkpoint a player has entered. And when they leave the checkpoint, set the variable to -1.
And use the variable for reference. There's no need for a loop and it avoids using extra conditions. It's optimal for a hotkey such as LEFT ALT as well.