SA-MP Forums Archive
Specing after death - 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: Specing after death (/showthread.php?tid=176224)



Specing after death - Face9000 - 12.09.2010

Hi all,i need a FS.

When a player death,they will spec a random player for 10 seconds..

Thanks


Re: Specing after death - Cameltoe - 12.09.2010

pawn Код:
new pID = random(MAX_PLAYERS);
TogglePlayerSpectating(playerid, 1);
PlayerSpectatePlayer(playerid, pID);

// start a timer with no repeat that starts after 10 sec's.
now
TogglePlayerSpectating(playerid, 0);
// spawn the player
BTW: this should be in the request section....


Re: Specing after death - Face9000 - 12.09.2010

Thanks but..where i need to paste that code?


Re: Specing after death - Cameltoe - 12.09.2010

Lol excuse me, ur advertising about THE BEST TDM EVER..

"OIN NOW AT CRAZY TDM SERVER!

THE BEST TDM EVER! ADD IT TO YOUR FAVOURITES!

=> 94.23.146.149:3500 <="

And you don't even know where to put the single piece of code?

Under OnPlayerDeath ofc..


Re: Specing after death - Face9000 - 12.09.2010

ahaha man soz im a beginner scripter..thanks for the help