SA-MP Forums Archive
Help me slightly please - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Help me slightly please (/showthread.php?tid=251009)



Help me slightly please - Andregood - 25.04.2011

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;



AW: Help me slightly please - xerox8521 - 25.04.2011

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);