23.04.2014, 11:17
Instead of using the OnPlayerUpdate callback for that kind, using dynamic zones would be much better. Then in OnPlayerEnterDynamicArea callback, you can easily check whether the player has key or not for a specific zone/area.
As for the Wait function, I wouldn't recommend it and here's the reason: https://sampforum.blast.hk/showthread.php?tid=257660
You can use a non-repeated timer for teleporting the player once and it'll be fine.
As for the Wait function, I wouldn't recommend it and here's the reason: https://sampforum.blast.hk/showthread.php?tid=257660
You can use a non-repeated timer for teleporting the player once and it'll be fine.