SA-MP Forums Archive
derby help - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: derby help (/showthread.php?tid=534305)



derby help - ScripteRNaBEEL - 29.08.2014

i want to make a cmd with derby when players join by typing /derby if any one want to leave cannt with any other cmd have to leave with /exit cmd when they fall in water they get respawn to their place can any one help me with this?


Re: derby help - Smileys - 29.08.2014

make a command to teleport the player to the derby arena, set a per-player boolean to true when the player is in the arena.

as for the water, check if the player is below a certain height, if the player is, respawn them, else don't.

I can't show you any code examples atm as I'm on my phone right now.


Re : derby help - MisterMania67 - 29.08.2014

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.

Quote:

Example

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.


Re: derby help - ScripteRNaBEEL - 29.08.2014

can any one give me ex. of that cmd....


Re: derby help - nightday - 29.08.2014

Check Your Skype To i Will Give u i Cant Give Here To its Big