login system
#1

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

Reply
#2

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
Reply
#3

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

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

Or any other registration system ...
Reply
#5

thanks man you very help me!!!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)