25.04.2011, 13:08
Well I basically got this fuction which I want to work and it does, except for the part that I can't unfreeze the player if he presses Register, even though I've tried like TogglePlayerControllable(playerid, 1); it doesn't work. I believe I have to do it in a certain way, please help me finishing the snippet thanks.
Код:
public OnPlayerConnect(playerid) { SpawnPlayer(playerid); TogglePlayerControllable(playerid, 0); ShowPlayerDialog(playerid, DIALOG_ID_REGISTER, DIALOG_STYLE_INPUT, "Register", "Account not registered.\nPlease type a password", "Register", "Leave"); return 1;