PDA

View Full Version : [Include] [INC] CezAccounts - Account managing system - powered by DJson


Cezar
16/01/2009, 06:18 PM
http://a.imagehost.org/0525/CezAccounts_copy.png
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 (http://forum.sa-mp.com/index.php?topic=71125.0). It saves all the accounts in a single file called accounts.cez and makes your script look tidier :).

New Functions:

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 :D

ettans
16/01/2009, 06:22 PM
Looks nice. Great job! :D

Snyper18
16/01/2009, 06:25 PM
Nice mate. :P
Goodie Job eh?

beyondless
17/01/2009, 03:26 PM
Wow this is nice cez. I'll use this =)

rafay
17/01/2009, 05:31 PM
Nice & thanks ;)

romeotheboss
17/01/2009, 05:49 PM
wow great! i think i might use this :lol:










RESPECT ;)

Cezar
17/01/2009, 06:16 PM
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.

Flo_White
17/01/2009, 06:20 PM
good job cezar =)

GORE
26/01/2009, 08:46 PM
this save the score?

DracoBlue
26/01/2009, 08:56 PM
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

Shadowww
31/01/2009, 02:17 PM
Please, mirror.

Cezar
31/01/2009, 06:47 PM
It works fine for me...

Shadowww
31/01/2009, 06:56 PM
OK, i got it using proxy.

MPKaboose
18/03/2009, 04:12 PM
can someone re upload this? Thanks

MenaceX^
18/03/2009, 04:20 PM
The features really look like the dini.. :o

DracoBlue
07/04/2009, 07:59 PM
The features really look like the dini.. :o

but based on djson -> fast! ;)

- Draco

Cabby
07/04/2009, 08:11 PM
It says "Access Denied - Account Disabled" ??

SEC
07/04/2009, 10:59 PM
Does anybody can reupload this ? I realy need this...

Cezar
11/04/2009, 06:29 PM
Sorry for the late response. The .rar is now as an attachment. See the first post :)

[size=6pt](I honestly hope I am not breaking any rules by adding a forum attachment)

Weirdosport
11/04/2009, 08:46 PM
I don't know about it being like dini, if you ask me it looks exactly like dudb!

Kinetic
12/04/2009, 07:27 AM
Sorry for the late response. The .rar is now as an attachment. See the first post :)

[size=6pt](I honestly hope I am not breaking any rules by adding a forum attachment)


If they didnt want you to post an attachment, they would disable the ability to post attachments...

MasterOfEvil
26/05/2009, 11:23 AM
Hey, Great work. I'm just putting it into my new script.
Thank ya! :) :)

Victor
27/05/2009, 02:16 AM
Nice job Cezar =D

high_flife_420
17/06/2009, 12:39 AM
on compile i get ...

C:\Users\owner\Desktop\gta mods\samp02Xserver.win32\pawno\c-acc.pwn(160) : error 021: symbol already defined: "dcmd_register"
C:\Users\owner\Desktop\gta mods\samp02Xserver.win32\pawno\c-acc.pwn(183) : error 021: symbol already defined: "dcmd_login"
C:\Users\owner\Desktop\gta mods\samp02Xserver.win32\pawno\c-acc.pwn(196) : error 021: symbol already defined: "OnPlayerCommandText"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


3 Errors.

anyone can help? thankyou

Flo_White
17/06/2009, 02:04 PM
just dont copy&paste everything <.<
you have 2 times the OnPlayerCommandText in your script

2-1-d_crew
23/06/2011, 08:37 AM
there's no attatchment on the first post....

where's the download link....

Sasino97
23/06/2011, 01:33 PM
Great Job! :)