[FilterScript] [FS]LLOGIN ~ The New And Simple way to login, and register! ~
#1

Hi folks,

Heres my 6 Filter script (Actually 10th, but most aren't released).

Its a Login system.

All you do is,

(New comers version)
1) Open pawno>> /server folder>>Pawno>>Pawno.exe.
2) Click File>>Open.
3) Navigate to my LLOGIN.pwn file (place it in your filtscripts folder in your servers folder)
4) Then when its opened Go to Tools>>Compile.
5) Then go to your server config, and by filter scripts put LLOGIN.
6) Your done!

(Experienced Users vesion)
1) Open the .pwn file.
2) Compile it.
3) Add LLOGIN to the server config.
4) Your done.


If someone can add pictures, that would be great, thanks.

Download:
http://solidfiles.com/d/9133/

NO MIRRORS PLEASE!
Reply
#2

Can you make pics or pastbin? please
Reply
#3

Piece of shit, do not download, code looks like this:
pawn Код:
//login system by lowrida018

#include <dini>
#include <dudb>

new logged[MAX_PLAYERS];
enum pInfo
{
    AdminLevel,
    cash,
    score,
}
new PlayerInfo[MAX_PLAYERS][pInfo];

new name[MAX_PLAYER_NAME];
    new file[128];
    GetPlayerName(playerid, name, sizeof(name));
    format(file,sizeof(file),"/Users/%s.ini",name);
    if(!fexist(file))
    {
    SendClientMessage(playerid, COLOR_GREEN, "OMGWTFBBQ You arent registered! type /register to save your stats!");
    logged[playerid] = 0;
    }
    if(fexist(file))
    {
    SendClientMessage(playerid, COLOR_GREEN, "hot damn sexy! You are registered! type /login [pass]!!");
    }
   
    new file[128];
    new name[MAX_PLAYER_NAME];
    GetPlayerName(playerid, name, sizeof(name));
    format(file,sizeof(file),"/Users/%s.ini",name);
    if(dini_Exists(file))
    {
  dini_IntSet(file, "score", PlayerInfo[playerid][score]);
  dini_IntSet(file, "money", PlayerInfo[playerid][cash]);
  dini_IntSet(file, "AdminLevel",PlayerInfo[playerid][AdminLevel]);
    }
    logged[playerid] = 0;
   
    dcmd(register, 8, cmdtext);
    dcmd(login, 5, cmdtext);
    dcmd_register(playerid, params[])
{
  new file[128], pname[MAX_PLAYER_NAME];
  GetPlayerName(playerid, pname, sizeof(pname));
  format(file, sizeof(file), "\\Users\\%s.ini", pname);
  if(!strlen(params)) return SendClientMessage(playerid, COLOR_RED, "[SYSTEM]: /register [password]");
  if(dini_Exists(file)) return SendClientMessage(playerid, COLOR_RED, "[SYSTEM]: You are already registered!");
  dini_Create(file);
  dini_IntSet(file, "hashPW", udb_hash(params));
  dini_Set(file, "password", params);
  dini_IntSet(file, "AdminLevel",PlayerInfo[playerid][AdminLevel] = 0);
  dini_IntSet(file, "score", PlayerInfo[playerid][score] = 0);
  dini_IntSet(file, "money", PlayerInfo[playerid][cash] = 500);
  new string[128];
  format(string, 128, "[SYSTEM]: You succesfully registered the nickname %s with password %s", pname, params);
  SendClientMessage(playerid, COLOR_YELLOW, string);
  logged[playerid] = 1;
  SendClientMessage(playerid, COLOR_YELLOW, "[SYSTEM]: You have been automatically logged in!");
  return 1;}
 
 
  dcmd_login(playerid, params[])
{
  new file[128];
  new string[MAX_STRING], pname[MAX_PLAYER_NAME];
  GetPlayerName(playerid, pname, sizeof(pname));
  format(file, sizeof(file), "\\Users\\%s.ini", pname);
  if(!strlen(params)) return SendClientMessage(playerid, COLOR_RED, "[SYSTEM]: /login [password]");
  if(!dini_Exists(file)) return SendClientMessage(playerid, COLOR_RED, "[SYSTEM]: You are not registered!");
  if(logged[playerid]) return SendClientMessage(playerid, COLOR_RED, "[SYSTEM]: You are already logged in!");
  new tmp;
  tmp = dini_Int(file, "hashPW");
  if(udb_hash(params) != tmp)
  {
    format(string, 256, "You specified the wrong password for %s!", pname);
    SendClientMessage(playerid, COLOR_RED, string);
  }
  else
  {
    logged[playerid] = 1;
    PlayerInfo[playerid][AdminLevel] = dini_Int(file, "AdminLevel");
    SetPlayerScore(playerid, PlayerInfo[playerid][score]);
    new lebel = PlayerInfo[playerid][AdminLevel];
    GivePlayerMoney(playerid, dini_Int(file, "money")-GetPlayerMoney(playerid));
    format(string, 256, "[SYSTEM]: Successfully logged in! (level: %d)!", lebel);
        SendClientMessage(playerid,COLOR_RED, string);
    printf("%s (%i) logged in with password %s", pname, playerid, params);
  }
  return 1;}
It is not even unique.. it is poorly scripted..
Reply
#4

These kind of threads and scripts are getting annoying! What the hell can you do with just a reg/log system if there are no features and other commands at all?!!
Reply
#5

You guys are mean.
Reply
#6

Well it's neither good nor bad. Atleast those who are making their own Admin System would be helpful for them.
Reply
#7

What exactly is new about this method of logging in?
Reply
#8

You didn't make this, you copied this from a tutorial that -Rebel Son- made. ( https://sampforum.blast.hk/showthread.php?tid=154852 )

I don't see you gave credits to -Rebel Son-.
Reply
#9

Get the hell out of here! , stealing scripts pathetic asshole. Join another community. This is so not for you.
Reply
#10

Seriously, who is going to use this? It's already getting more views on the Wiki then off this topic.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)