[HELP] Put your password directly in , instead of /login pass
#1

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.
Reply
#2

You need to make dialogs
Reply
#3

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

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

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

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

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);
}
Reply
#8

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.
Reply
#9

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

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?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)