SA-MP Forums Archive
login system - 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: login system (/showthread.php?tid=254892)



login system - marik1599 - 13.05.2011

how can i do that my login system Will be in a black window.
and not to use the commands
like: /login /register .
Thanks to helpers
Quote:

gPlayerAccount[playerid] = 1;
SendClientMessage(playerid, COLOR_LIGHTBLUE, "*** That Passport is registered please /login [password] to continue.");
return 1;
}
else
{
gPlayerAccount[playerid] = 0;
SendClientMessage(playerid,COLOR_LIGHTBLUE,"That Passport is not registered, please use /register [password] to continue.");
return 1;
}
}
public JoinChannel(playerid, number, line[])
{
if(IsPlayerConnected(playerid))
{
if(strcmp(IRCInfo[number][iPassword],line, true ) == 0 )
{
JoinChannelNr(playerid, number);
}
else
{
SendClientMessage(playerid, COLOR_GREY, " Wrong Channel Password !");
}
}
return 1;
}




Re: login system - Alby Fire - 13.05.2011

https://sampwiki.blast.hk/wiki/ShowPlayerDialog

DIALOG_STYLE_INPUT is what you're looking for, just check if the password is the same as the account's one though the inputtext


Re: login system - marik1599 - 13.05.2011

Yes thanks I understand
But how can I attach it to my login system


Re: login system - Elka_Blazer - 13.05.2011

You can learn it from here
URP Registration - *MODED+DIALOGS*

Or any other registration system ...



Re: login system - marik1599 - 13.05.2011

thanks man you very help me!!!