Help me slightly please
#1

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;
Reply
#2

well if a player should register i recommand it before spawning...

pawn Код:
public OnPlayerConnect(playerid)
{
ShowPlayerDialog(playerid, DIALOG_ID_REGISTER, DIALOG_STYLE_INPUT, "Register", "Account not registered.\nPlease type a password", "Register", "Leave");
return 1;
Ondialogresponse

pawn Код:
// Your register part here...
SpawnPlayer(playerid);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)