SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 16/01/2009, 06:18 PM   #1
Cezar
Big Clucker
 
Join Date: Mar 2008
Posts: 67
Reputation: 0
Default [INC] CezAccounts - Account managing system - powered by DJson


Player account managing system


What is CezAccounts?
CezAccounts is an account managing system. It's an include that you can use to easily save player data.

Why use CezAccounts?
C-ACC uses DracoBlue's DJson, which is Fast and Secure. It saves all the accounts in a single file called accounts.cez and makes your script look tidier .

New Functions:

Code:
AccountExists(nickname[]) - checks if the player's account exists
AccountCreate(nickname[],pwd[]) - creates an account for the player with the password pwd[] 
AccountRemove(nickname[]) - removes a player's account
AccountCheckLogin(nickname[],pwd[]) - checks if user's login password is correct (used for /login)

AccountSetInt(nickname[],key[],value) - sets a player's item int value, eg: AccountSetInt("Cezar","money",100)
AccountSetFloat(nickname[],key[],Float:value) - same as AccountSetInt but for a float
AccountSet(nickname[],key[],Float:value) - same as AccountSetInt but for a string

AccountGetInt(nickname[],key[]) - gets a player's item int value, eg: AccountGetInt("Cezar","money") 
AccountGetFloat(nickname[],key[]) - same as AccountGetInt but for a float
AccountGet(nickname[],key[]) - same as AccountGetInt but for a string
Credits:
DracoBlue for his DJson

Other:
This release also includes a small gamemode script with a register and login system created using CezAccounts and DracoBlue's DJson used for this release.

Download:
Look bellow at the attachments.


If you find any bugs please post them here. If you have a suggestion also post them here. I am not related to DracoBlue in any way...he just rocks
Cezar is offline   Reply With Quote
Old 16/01/2009, 06:22 PM   #2
ettans
Huge Clucker
 
ettans's Avatar
 
Join Date: Feb 2008
Posts: 467
Reputation: 29
Default Re: [INC] CezAccounts - Account managing system - powered by DJson

Looks nice. Great job!
__________________
ettans is offline   Reply With Quote
Old 16/01/2009, 06:25 PM   #3
Snyper18
Huge Clucker
 
Join Date: Oct 2007
Posts: 365
Reputation: 0
Default Re: [INC] CezAccounts - Account managing system - powered by DJson

Nice mate. :P
Goodie Job eh?
Snyper18 is offline   Reply With Quote
Old 17/01/2009, 03:26 PM   #4
beyondless
Little Clucker
 
Join Date: Nov 2007
Posts: 4
Reputation: 0
Default Re: [INC] CezAccounts - Account managing system - powered by DJson

Wow this is nice cez. I'll use this =)
beyondless is offline   Reply With Quote
Old 17/01/2009, 05:31 PM   #5
rafay
High-roller
 
rafay's Avatar
 
Join Date: Mar 2008
Location: Pakistan
Posts: 1,492
Reputation: 1
Default Re: [INC] CezAccounts - Account managing system - powered by DJson

Nice & thanks
__________________
rafay is offline   Reply With Quote
Old 17/01/2009, 05:49 PM   #6
romeotheboss
Little Clucker
 
Join Date: Dec 2007
Posts: 42
Reputation: 8
Default Re: [INC] CezAccounts - Account managing system - powered by DJson

wow great! i think i might use this










RESPECT
romeotheboss is offline   Reply With Quote
Old 17/01/2009, 06:16 PM   #7
Cezar
Big Clucker
 
Join Date: Mar 2008
Posts: 67
Reputation: 0
Default Re: [INC] CezAccounts - Account managing system - powered by DJson

Thank you for the nice comments . I'm working on a new feature for this, when the player accounts in the accounts.cez reaches 1000 (this number will be editable) it will create a accounts2.cez and will save the next accounts to it. This would only be required by really big servers as they could have 10 000 or more accounts.
Cezar is offline   Reply With Quote
Old 17/01/2009, 06:20 PM   #8
Flo_White
Huge Clucker
 
Join Date: Jul 2008
Location: Germany
Posts: 267
Reputation: 0
Default Re: [INC] CezAccounts - Account managing system - powered by DJson

good job cezar =)
__________________
GunGame Server: 217.18.70.74:7777 (click to play)
Zombie Apocalypse: 176.9.7.149:7777 (click to play) (at HostedTab)
Forum: www.sampdm.com
Flo_White is offline   Reply With Quote
Old 26/01/2009, 08:46 PM   #9
GORE
Little Clucker
 
Join Date: Jun 2008
Posts: 27
Reputation: 0
Default Re: [INC] CezAccounts - Account managing system - powered by DJson

this save the score?
GORE is offline   Reply With Quote
Old 26/01/2009, 08:56 PM   #10
DracoBlue
Gangsta
 
Join Date: Apr 2006
Posts: 817
Reputation: 48
Default Re: [INC] CezAccounts - Account managing system - powered by DJson

Quote:
Originally Posted by Cezar
Thank you for the nice comments . I'm working on a new feature for this, when the player accounts in the accounts.cez reaches 1000 (this number will be editable) it will create a accounts2.cez and will save the next accounts to it. This would only be required by really big servers as they could have 10 000 or more accounts.
Pretty good idea to handle the amount of data, and keep it still fast for writing!

- Draco
__________________
Auto-Indent Your Code online with TidyPawn

dcmd 1.0 | dini 1.6 | djson 1.6.2 (The offic. Dini▓) | DMap 0.4 | DModule 0.13 (Dynamic GM/FS) | DUDB 2.4 | DTest 1.2 | Dutils 1.10

[dracoblue's dev-diary] Ľ [php + javascript developer] Ľ [serverside javascript mvc framework]

DracoBlue 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
[Tutorial] Register/Login System Using DJson *Includes DUDB Conversion! lavamike Scripting Help 25 10/04/2012 05:46 PM
Help with account system Torran Help Archive 4 13/03/2010 02:15 PM
[Solved]Djson Register System Error sant Help Archive 1 29/11/2009 04:15 AM
DJson register system Ritchie999 Help Archive 2 17/10/2009 02:14 PM
account system! mevi Help Archive 1 15/03/2009 01:07 PM


All times are GMT. The time now is 07:36 AM.


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