TogglePlayerSpectating problem
#1

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

Show us full code under OnPlayerSpawn and OnPlayerRequestClass callbacks.
Reply
#3

I fixed, but thanks for your attention!
Reply
#4

Quote:
Originally Posted by Kraeror
Посмотреть сообщение
I fixed, but thanks for your attention!
Maybe post the solution?
Reply
#5

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

The solution:
I added SetSpawnInfo between the:
Quote:

TogglePlayerSpectating(playerid,1);

and
Quote:

TogglePlayerSpectating(playerid,0);

Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)