Spectate other players - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Spectate other players (
/showthread.php?tid=96397)
Spectate other players -
Hot - 07.09.2009
I know that this functions already exists:
Код:
TogglePlayerSpectating(playerid, 1);
PlayerSpectatePlayer(playerid, killerid);
But how to apply smething like, when the player dies he spectate a random player and if he press for example, L-Shift he will ramdomly spactate another one, and so on...(derby server)
how to do it?
Re: Spectate other players -
Calgon - 07.09.2009
Make a variable to verify a dead player is spectating, make sure a value is set for it. Then OnPlayerDeath() should probably run SetPlayerSpawn(), make something to make like 1 round, so they can only play once per round etc.
Re: Spectate other players -
Hot - 07.09.2009
Can you give me a code example?
Re: Spectate other players -
Hot - 08.09.2009
*bump*
Re: Spectate other players -
Clavius - 08.09.2009
Check the "barron" gamemode, which comes with the sa-mp server package by default. It has something like that, you just need to convers it from vehicle spectating to player spectating.
Re: Spectate other players -
Hot - 12.09.2009
Ok, but I would need to change gVehicle and Stuff... can you show me an easy way? and like barron gm, when press fire key change to the enxt? please
Re: Spectate other players -
Hot - 12.09.2009
*bump* (I bumped within 10 hours.)