Posts: 1,020
Threads: 38
Joined: May 2011
Reputation:
0
TogglePlayerSpectating(playerid,true);
set a timer
togleplayerspectating(playerid,false);
Posts: 122
Threads: 29
Joined: Feb 2011
Reputation:
0
it does not work for me cuz i want to turn Spectating off before the player spawn
i want to hide the buttons during the login period then show them again so the player can select the char and spawn
Posts: 1,253
Threads: 36
Joined: Aug 2011
Reputation:
0
Don't bump.
Then after they login, just TogglePlayerSpectate it off.
If that doesn't work, you're probably doing it wrong.
Posts: 122
Threads: 29
Joined: Feb 2011
Reputation:
0
No man you dont understand me what i am doing is as following
OnPlayerRequestClass i do some camera moving while which the player Registers or logins - this is what i want to hide the spawn while -
Then when he register or login successfully i want the spawn buttons to appear again so the player can select the player he wants and spawn
So i want the SPAWN to be temporarily hidden until the player registers then it must be showed again so the player can spawn
Posts: 783
Threads: 101
Joined: May 2009
Reputation:
0
For future notice, people aren't going to be interested in helping you if you keep bumping your threads.
As for your problem, it's been answered like 3 times.Once they connect turn TogglePlayerSpectate on. Once they register or login set TogglePlayerSpectate to off. Then it should allow them to spawn.