login dialog
#1

i want to make a dialog to ask to register and login is the start of the server. i dont how to start so pls help.

i have a register system on the gm.
Reply
#2

*sighs*
Reply
#3

no one can help me?
Reply
#4

try out with ShowPlayerDialog();
and then make some functions for login
example:
Код:
login(playerid,password)
{
// code... 
return 1;
}
Reply
#5

i new on scripting. i use a registry system from a gamemode so i dont know how to make it.

i cant understand what do you mean.

sry
Reply
#6

Ok so you could have a look at mine or look at this
To make it come up when the server start you do this
under public OnPlayerConnect(playerid)
you can do something like this
pawn Код:
if(!fexist(file))
{
format(string, sizeof string, "Welcome %s \nPlease Register you account!", name);
ShowPlayerDialog(playerid, Register, DIALOG_STYLE_MSGBOX, "Account", string, "Register", "Cancel.");
}
if(fexist(file))
{
GetPlayerName(playerid, PlayerName, sizeof PlayerName);
format(string, sizeof string, "Please Login to your account!", PlayerName);
ShowPlayerDialog(playerid, Login, DIALOG_STYLE_INPUT, "Account", string, "Login", "Cancel.");
return 0;
}
DONT JUST COPY & PAST it. IT WOULD NOT WORK im just giving you an example you can start building from it
Reply
#7

hm okay... just try to use the wiki... here a link: https://sampwiki.blast.hk/wiki/ShowPlayerDialog
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)