PlayerSpectatePlayer Problem - 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: PlayerSpectatePlayer Problem (
/showthread.php?tid=93383)
PlayerSpectatePlayer Problem -
agusfn20 - 25.08.2009
When i spec a player and i change a gamemode, the server stops and never changes the gamemode
Help
Re: PlayerSpectatePlayer Problem -
agusfn20 - 25.08.2009
Any answer?
Re: PlayerSpectatePlayer Problem -
LuxurioN™ - 25.08.2009
Post the script together. It is easier to help.
Re: PlayerSpectatePlayer Problem -
agusfn20 - 25.08.2009
Is not my script problem. I tested it with ladmin4v2 /lspec
Re: PlayerSpectatePlayer Problem -
Joe Staff - 25.08.2009
Then under OnGameModeExit put in a loop to trun of spectating using 'TogglePlayerSpectating(playerid,0);'
Re: PlayerSpectatePlayer Problem -
agusfn20 - 25.08.2009
Playerid is not defined in ongamemodeexit
Re: PlayerSpectatePlayer Problem -
Joe Staff - 25.08.2009
Hence the loop part.
pawn Код:
for(new playerid;playerid<MAX_PLAYERS;playerid++)TogglePlayerSpectating(playerid,0);