TogglePlayerSpectating 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)
+--- Thread: TogglePlayerSpectating problem (
/showthread.php?tid=632588)
TogglePlayerSpectating problem -
Kraeror - 16.04.2017
Hello all! I have problem with TogglePlayerSpectating- at the OnPlayerClass I added
Quote:
TogglePlayerSpectating(playerid,1);
|
and in the end I set timer for
Quote:
TogglePlayerSpectating(playerid,0);
|
Quote:
SetTimerEx("Neshto2k14",5000,false,"i",playerid);
|
After the timer I spawned and the server banned me with no reason! I need to restart the server from console, to enter the server again! How can I fix it?
Please help me. +1REP!!!
Re: TogglePlayerSpectating problem -
X337 - 16.04.2017
Show us full code under OnPlayerSpawn and OnPlayerRequestClass callbacks.
Re: TogglePlayerSpectating problem -
Kraeror - 16.04.2017
I fixed, but thanks for your attention!
Re: TogglePlayerSpectating problem -
Melktert - 16.04.2017
Quote:
Originally Posted by Kraeror
I fixed, but thanks for your attention!
|
Maybe post the solution?
Re: TogglePlayerSpectating problem -
Sew_Sumi - 16.04.2017
The server wouldn't likely ban him over his spectating via a script... It was more likely his AntiCheat not being told that he was doing something unusual.
Re: TogglePlayerSpectating problem -
Kraeror - 16.04.2017
The solution:
I added SetSpawnInfo between the:
Quote:
TogglePlayerSpectating(playerid,1);
|
and
Quote:
TogglePlayerSpectating(playerid,0);
|