Posts: 190
Threads: 8
Joined: Oct 2010
Reputation:
0
I don't really understand what you're trying to do, but why would you call a native callback like that? Also OnPlayerRequestClass also has a 'classid' parameter.
Maybe a bit more code would help?
Posts: 539
Threads: 82
Joined: Sep 2009
Reputation:
0
I'm just trying to figure out the problem: After i call the function like that it doesn't allow me to spawn until i start to choose some other character, get it?
Posts: 539
Threads: 82
Joined: Sep 2009
Reputation:
0
Then what should I do for it to work?
Posts: 539
Threads: 82
Joined: Sep 2009
Reputation:
0
It starts to move persons camera when person joins the server and starts to show some textdraws with timers, after textdraws are shown i want the person to be in the requestclass screen and be available to choose the skin he is now looking at. I really don't know how to explain this but he just can't spawn unless he starts to select skins, the position,camera is fine.
Posts: 1,429
Threads: 50
Joined: Feb 2009
Reputation:
0
Delete all your code you've done so far (regarding this thing, ofcourse), except the camera movement/rotation thing. After the script is done with rotating the player camera / animating textdraw, set the PVar "Done" to 1.
Then simply return the value of PVar "Done" in OnPlayerRequestSpawn callback. If the camera rotating is not done, player will be not able to spawn, and if it's done, player will be able to spawn.
Posts: 539
Threads: 82
Joined: Sep 2009
Reputation:
0
Nah that isn't my problem, here a video i made to u and ******
[ame]http://www.youtube.com/watch?v=Yf-S2O7r3_I[/ame]
Posts: 1,429
Threads: 50
Joined: Feb 2009
Reputation:
0
Post your OnPlayerRequestSpawn callback
Posts: 1,429
Threads: 50
Joined: Feb 2009
Reputation:
0
I don't see anything wrong there
Posts: 539
Threads: 82
Joined: Sep 2009
Reputation:
0
Cause the requestspawn has nothing to do with it. I think I'm calling the function wrong or I have to add something more, I heard spectating works pretty good, tried to look at grandlarc gamemode 'nd did the same but i ended up with broken gm, i put him into spectate when he gets onrequestclass and then movecameras,showtextdraws etc. etc. but then as i try to untogglespectate him before the requestclass or in requestclass It works but I can't log in, I can't register, the functions doesn't work at all.
Posts: 1,429
Threads: 50
Joined: Feb 2009
Reputation:
0
See a definition of CALLBACK, it is not a function that will show the class selection screen.
Posts: 539
Threads: 82
Joined: Sep 2009
Reputation:
0
Still didn't work, As i said it's not the requestspawn problem, It's requestclass because i think he doesn't get transfered to that callback.
Posts: 1,130
Threads: 77
Joined: Jan 2010
Reputation:
0
You don't have to call it manually, it get's called when you hit the button 'Spawn' in game.
Posts: 539
Threads: 82
Joined: Sep 2009
Reputation:
0
Did you see the video moddler? Cause it does nothing at all when i press Spawn, i need to reselect the skin.
Posts: 60
Threads: 4
Joined: Jul 2007
Reputation:
0
The video is deleted.
As Y_Less said, to put player on class selection skin, you must ForceClassSelection of that player and kill them or TogglePlayerSpectating to false ( 0 ).
If that doesn't resolve your problem, then what it is?