SA-MP Forums Archive
samp TogglePlayerSpectating - 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: samp TogglePlayerSpectating (/showthread.php?tid=604232)



samp TogglePlayerSpectating - ScIrUsna - 02.04.2016

Hi,

I on TogglePlayerSpectating and use PlayerSpectatePlayer that player could spectate other play everything is ok, but i want to make that no player spectate but spectating mode by on, it's like if spectating player disconnect or dies then i not spectate him, but spectating mode will be on.


Re: samp TogglePlayerSpectating - amirm3hdi - 02.04.2016

You need to change spec mode everytime the player state changes...


Re: samp TogglePlayerSpectating - Gammix - 02.04.2016

You have to use TogglePlayerSpeectating every time the player disconnects/dies (if the player spectating was looking at the one who disconnect <- simply means you have to save the spectate id for the player).

This might be a help: https://sampforum.blast.hk/showthread.php?tid=579105