26.01.2010, 23:13
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.
When the player clicks spawn, it sets spawn info and spawns the player.
Код:
if (strcmp("/mainmenu", cmdtext, true, 9) == 0) { SaveCharacter(playerid); ForceClassSelection(playerid); SetPlayerHealth(playerid,0); ResetPlayerCharacterVariables(playerid); MasterAccount[playerid][mCharacterSlotInUse] = 0; ShowMenuDialog(playerid); return 1; }