Spectate other players
#1

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?
Reply
#2

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.
Reply
#3

Can you give me a code example?
Reply
#4

*bump*
Reply
#5

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.
Reply
#6

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
Reply
#7

*bump* (I bumped within 10 hours.)
Reply


Forum Jump:


Users browsing this thread: 5 Guest(s)