SA-MP Forums Archive
[HELP] Put your password directly in , instead of /login pass - 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] Put your password directly in , instead of /login pass (/showthread.php?tid=116047)



[HELP] Put your password directly in , instead of /login pass - Evangek - 27.12.2009

Hey guys ,,

i got my server but i want that if you connect to the server you just have to put your pass in (because a popup comes up and says: Welcome (name)! Please register here your password. (After that Please login with the password.)
But my server got /login and /register.
how can i change that ? please help.


Re: [HELP] Put your password directly in , instead of /login pass - jamesb93 - 27.12.2009

You need to make dialogs


Re: [HELP] Put your password directly in , instead of /login pass - Evangek - 27.12.2009

And how do i make dialogs? im new to scripting can someone please help?


Re: [HELP] Put your password directly in , instead of /login pass - Grim_ - 27.12.2009

Search? There is even a filterscript using Dialogs for a registration system.


Re: [HELP] Put your password directly in , instead of /login pass - Evangek - 27.12.2009

Thanks , i found one but my server has /login and /register how do i deleete that?


Re: [HELP] Put your password directly in , instead of /login pass - Grim_ - 27.12.2009

Quote:
Originally Posted by Evangek
Thanks , i found one but my server has /login and /register how do i deleete that?
Go through your script and delete everything to do with registering/logging in/saving stats. The filterscript already has everything you need to save stats correctly.


Re: [HELP] Put your password directly in , instead of /login pass - Evangek - 27.12.2009

So i have to deleete all this? :

public LoginTimer()
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) && udb_Exists(PlayerName(i)))
{
if(!PLAYERLIST_authed[i])
{
if(loginchances[i] <= 3) {
GameTextForPlayer(i,"~r~THIS PLAYERNAME IS REGISTERED~n~TYPE /LOGIN OR CHANGE YOUR NAME",5000,5);
SendClientMessage(i,COLOR_ERROR,"This Playername Is Registered. Please Login. Use: /login password");
loginchances[i] ++;
}
else
if(loginchances[i] >= 4) {
new str[100];
GetPlayerName(i, str, 24);
format(str, 100, "**(AUTO KICK)** %s(%d) Failed to login - Registered Playername", str,i);
SendClientMessageToAll(0xFF7F50AA, str);
ircSay(EchoConnection, EchoChan, str);
printf("%s", str);
SetPlayerInterior(i,10);
SetPlayerPos(i,219.6257,111.2549,999.0156);
SetPlayerFacingAngle(i,2.2339);
SetCameraBehindPlayer(i);
ResetPlayerMoney(i);
Kicking[i] =1;
SetTimer("KickPlayer",700,0);
}


Re: [HELP] Put your password directly in , instead of /login pass - Grim_ - 27.12.2009

Everything to do with registering/logging in/saving player stats. I cannot give you anymore information then that, seeing how I don't know how your script is.


Re: [HELP] Put your password directly in , instead of /login pass - Evangek - 27.12.2009

Nvm, i fixed those errors it didnt had any {.


Re: [HELP] Put your password directly in , instead of /login pass - Grim_ - 27.12.2009

The errors are pretty self-explainatory.

It does not recognize the functions `strtok` and `ReturnUser`. It seems like you are missing an include file. Are you sure you got all of the required files?