Posts: 338
Threads: 44
Joined: Dec 2007
Reputation:
0
Player doesn't get to class request.. atleast looks like that.
(I have no problems with that and have close syntax to that)
Posts: 517
Threads: 22
Joined: Mar 2010
Reputation:
0
Mhhh... I dunno.
One thing I see is you're making the camera look at the camera position, not the player position.
yeah and as above said, it looks like your login system is stopping OnPlayerRequestClass, and when you login, you must spawn or something, try disabling your login system and see if it works, if it does, try moving your "must login" to OnPlayerRequestSpawn.
Posts: 465
Threads: 34
Joined: Sep 2009
Reputation:
0
UPDATE:
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid, 2341.8713,1725.1122,25.2689);
SetPlayerCameraPos(playerid, 2335.43,1718.92,23);
SetPlayerCameraLookAt(playerid, 2342.11,1724.43,23);
SetPlayerFacingAngle(playerid, 140);
if(!GetPVarInt(playerid, "Logged")) SetPlayerSkin(playerid, GetPVarInt(playerid, "Skin"));
return 1;
}
New stuff, still old problem.
Posts: 517
Threads: 22
Joined: Mar 2010
Reputation:
0
I don't think you can set a players skin if he's not spawned either, set the skin when the person requests to spawn, or skip class selection all together for the player and give him his skin.
Posts: 202
Threads: 0
Joined: May 2007
Reputation:
0
Didn't someone mention something about toggling spectate off?
Posts: 121
Threads: 19
Joined: Dec 2009
Reputation:
0
I think it's because you use GUI.
Posts: 465
Threads: 34
Joined: Sep 2009
Reputation:
0
That's exactly right. I removed the dialog and it worked fine. Thanks guys.