29.08.2014, 09:41
For the respawn when the player falls into the water, you create a platform. You take the z position on the platform, you make a timer and you use GetPlayerPos and when the z position of the player is smaller than the z position of the platform you respawn the player.
Position z on the platform: 10.0
Timer (1 second ?)
-> GetPlayerPos(player, x, y, z);
-> if(z < 10.0) respawn player.
If the platform is not flat, you take the closest position of the water.
Quote:
Example |
Timer (1 second ?)
-> GetPlayerPos(player, x, y, z);
-> if(z < 10.0) respawn player.
If the platform is not flat, you take the closest position of the water.