when a player dies - 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: when a player dies (
/showthread.php?tid=663747)
when a player dies -
masterart - 10.02.2019
so i'm working on a deathmatch gamemode. when a player requests class selection a dialog is shown and gives you a list of deathmatch arena's that you can join. i have put random spawn points in every single deathmatch arena but my problem is that when a player dies he'll respawn outside of that dm arena, how do i make them respawn in the same arena they died in?
Re: when a player dies -
Gforcez - 10.02.2019
Save the choice of arena in a variable. Then on OnPlayerSpawn check what arena the player is in, and set their spawn accordingly.
Re: when a player dies -
masterart - 10.02.2019
how do i go about doing that? sorry if that's too much to ask. i'm actually new to scripting.
Re: when a player dies -
masterart - 10.02.2019
nevermind, i got it working. thanks!
Re: when a player dies -
Gforcez - 10.02.2019
Sorry I couldn't respond earlier. I'm glad you solved the issue!