SA-MP Forums Archive
OnPlayerLogin / Register ] +rep ] - 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)
+--- Thread: OnPlayerLogin / Register ] +rep ] (/showthread.php?tid=329329)



OnPlayerLogin / Register ] +rep ] - RicaNiel - 28.03.2012

Guys i just made a Login and Register system using Dialog
now i dont want them to be put in OnDialogResponse and Etc..

i want to make a callback

OnPlayerLogin(playerid,password[])
{
}

and

OnPlayerRegister(playerid,passwoerd[])
{
}

now i put my login script on OnPlayerLogin

but nothing happend

what should i do??


Re: OnPlayerLogin / Register ] +rep ] - Reklez - 28.03.2012

What are you really trying to do?, You want them to function after Player Register/Login?


Re: OnPlayerLogin / Register ] +rep ] - RicaNiel - 28.03.2012

i want that the Dialog Id of Login
will respond OnPlayerLogin


Re: OnPlayerLogin / Register ] +rep ] - Jack_Wilson - 28.03.2012

Hello RicaNiel,
In my script, I've did this. I've provided an example below inside a snippet for you.
pawn Код:
switch(dialogid)
    {      
        case 1337:
        {
            if(!response) return Kick(playerid);
            return OnPlayerLogin(playerid, inputtext);
        }