29.06.2013, 06:46
This doesn't seem like a good way to do this and is non-logical especially since you have DestroyAllDynamicAreas(); that will mess things up for other players.
The use of timers needs to be avoided as much as possible but used where they are needed.
Here is what I would do....
- Improve how areas are processed
- Create a function to set god mode on a player for x amount of time it will probably be an include since there will be several callbacks hooked
- You should be creating areas after SetPlayerSpawnInfo() function when the next spawn spot is known
The use of timers needs to be avoided as much as possible but used where they are needed.
Here is what I would do....
- Improve how areas are processed
- Create a function to set god mode on a player for x amount of time it will probably be an include since there will be several callbacks hooked
- You should be creating areas after SetPlayerSpawnInfo() function when the next spawn spot is known