SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts

Reply
 
Thread Tools Display Modes
Old 08/03/2011, 01:01 PM   #1
pantelimonfl
Huge Clucker
 
Join Date: Jul 2010
Posts: 312
Reputation: 0
Default Register/login system (Dini, dialogs)

I made this register/login system to learn dini. It's very simple to use/install/copy/steal/change credits.
Is based on dialogs and saves in scriptfiles. Now it has OnGameModeInit because i tested it as a gamemode. You can change it yourself.

You will need Dini and dutils to use this.

Thanks Zh3r0 for help.

Download: http://pastebin.com/FhwbxT5p
Yes, Zh3r0 inspired me to make this.
__________________
PFServer Control Panel
pantelimonfl is offline   Reply With Quote
Old 08/03/2011, 01:19 PM   #2
HyperZ
High-roller
 
HyperZ's Avatar
 
Join Date: Aug 2009
Location: Pakistan
Posts: 1,405
Reputation: 65
Default Re: Register/login system (Dini, dialogs)

But i'm sorry, its FS or GM?

If its FS than why there is:
pawn Code:
public OnGameModeInit()
{
    SetGameModeText("TEST v1.0");
    print("\n--------------------------------------");
    print("Login & Register system. Made by pantelimonfl");
    print("--------------------------------------\n");
    AddPlayerClass(1,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
    AddPlayerClass(2,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
    AddPlayerClass(269,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
    AddPlayerClass(270,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
    AddPlayerClass(271,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
    AddPlayerClass(272,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
    AddPlayerClass(47,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
    AddPlayerClass(48,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
    AddPlayerClass(49,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
    AddPlayerClass(50,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
    AddPlayerClass(51,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
    AddPlayerClass(52,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
    AddPlayerClass(53,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
    AddPlayerClass(54,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
    AddPlayerClass(55,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
    AddPlayerClass(56,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
    AddPlayerClass(57,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
    AddPlayerClass(58,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
    AddPlayerClass(68,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
    return 1;
}



Edit: you know why i ask'd you? because you're using [FilterScript] tags.
HyperZ is offline   Reply With Quote
Old 08/03/2011, 01:37 PM   #3
kirk
Big Clucker
 
Join Date: Oct 2010
Posts: 195
Reputation: 59
Default Respuesta: Register/login system (Dini, dialogs)

You should take a look into the code, this wont save the user files.
__________________
kirk is offline   Reply With Quote
Old 08/03/2011, 04:07 PM   #4
pantelimonfl
Huge Clucker
 
Join Date: Jul 2010
Posts: 312
Reputation: 0
Default Re: Register/login system (Dini, dialogs)

Quote:
Originally Posted by pantelimonfl View Post
I made this register/login system to learn dini. It's very simple to use/install/copy/steal/change credits.
Is based on dialogs and saves in scriptfiles. Now it has OnGameModeInit because i tested it as a gamemode. You can change it yourself.
.
Got it?
__________________
PFServer Control Panel
pantelimonfl is offline   Reply With Quote
Old 08/03/2011, 04:22 PM   #5
HyperZ
High-roller
 
HyperZ's Avatar
 
Join Date: Aug 2009
Location: Pakistan
Posts: 1,405
Reputation: 65
Default Re: Register/login system (Dini, dialogs)

Why you tested it on GM? its FS test it as FS than post it.
HyperZ is offline   Reply With Quote
Old 08/03/2011, 04:35 PM   #6
Geso
Gangsta
 
Geso's Avatar
 
Join Date: Jan 2010
Location: Mauna Kea, Hawaii
Posts: 535
Reputation: 11
Default Re: Respuesta: Register/login system (Dini, dialogs)

Quote:
Originally Posted by heineken. View Post
You should take a look into the code, this wont save the user files.
It will...

pawn Code:
public OnPlayerUpdate(playerid)
{
        if(IsPlayerConnected(playerid))
        {
            if(gPlayerLogged[playerid] == 1)
            {
                        new string3[64];
                        new playername3[MAX_PLAYER_NAME];
                        GetPlayerName(playerid, playername3, sizeof(playername3));
                        format(string3, sizeof(string3), "%s.ini", playername3);
 
                        dini_IntSet(string3, "Password",PlayerInfo[playerid][Pass]);
                        dini_IntSet(string3, "Level",PlayerInfo[playerid][Level]);
                        dini_IntSet(string3, "Money",PlayerInfo[playerid][Money]);
                }
        }
        return 1;
}

but it's as laggy as it gets, because saving the player's stats every single onplayerupdate, will cause a lot of lag, why not just put it at onplayerdisconnect?
Geso is offline   Reply With Quote
Old 08/03/2011, 05:13 PM   #7
iMonk3y
Huge Clucker
 
iMonk3y's Avatar
 
Join Date: Oct 2008
Location: Asylum
Posts: 323
Reputation: 47
Default Re: Register/login system (Dini, dialogs)

Dini is slowest file writing/saving system.
This isn't even in english.


Sorry for criticism... keep learning and keep smiling
iMonk3y is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[FilterScript] [FS] ERegLog ( Advanced Register/Login System [Dialogs] ) aircombat Filterscripts 27 01/06/2011 06:28 PM
Register & Login Dialogs.. Sky4D Help Archive 12 02/09/2010 08:43 PM
/register /login dialogs geerdinho8 Help Archive 23 01/05/2010 02:31 PM
[Help] Register/Login Dialogs andershh Help Archive 0 20/04/2010 07:09 PM


All times are GMT. The time now is 06:19 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.