ForceClassSelection bug
#1

I've got a problem, i have a command which will despawn the player and show a character selection dialog. But the problem is once the person has clicked spawn on the dialog and spawn's fine (on first connect), if the player uses the command to go back to choose another character and click spawn it'll just stay at the character selection screen and not spawn.

Код:
	if (strcmp("/mainmenu", cmdtext, true, 9) == 0)
	{
		SaveCharacter(playerid);
		ForceClassSelection(playerid);
		SetPlayerHealth(playerid,0);
		ResetPlayerCharacterVariables(playerid);
		MasterAccount[playerid][mCharacterSlotInUse] = 0;
		ShowMenuDialog(playerid);
		return 1;
	}
When the player clicks spawn, it sets spawn info and spawns the player.
Reply
#2

i had something similar to this, i had it so it set a players position when class selection and it streamed my object's then when a player went back to class selection it would do exactly the same thing but the player's position saved as there last position before they died.
Reply
#3

Quote:
Originally Posted by Shady91
i had something similar to this, i had it so it set a players position when class selection and it streamed my object's then when a player went back to class selection it would do exactly the same thing but the player's position saved as there last position before they died.
Anyway around it?
Reply
#4

Quote:
Originally Posted by Norn
Quote:
Originally Posted by Shady91
i had something similar to this, i had it so it set a players position when class selection and it streamed my object's then when a player went back to class selection it would do exactly the same thing but the player's position saved as there last position before they died.
Anyway around it?
not that i know of, what ill do is try your command and see if i get the same problem and try to work away around it.
Reply
#5

Quote:
Originally Posted by Shady91
Quote:
Originally Posted by Norn
Quote:
Originally Posted by Shady91
i had something similar to this, i had it so it set a players position when class selection and it streamed my object's then when a player went back to class selection it would do exactly the same thing but the player's position saved as there last position before they died.
Anyway around it?
not that i know of, what ill do is try your command and see if i get the same problem and try to work away around it.
Cheers.
Reply
#6

when the do /mainmenu does it show them a dialog box? as i'm not getting a problem
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)