SA-MP Forums Archive
[Include] [INC] CezAccounts - Account managing system - powered by DJson - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+---- Forum: Includes (https://sampforum.blast.hk/forumdisplay.php?fid=83)
+---- Thread: [Include] [INC] CezAccounts - Account managing system - powered by DJson (/showthread.php?tid=61901)



[INC] CezAccounts - Account managing system - powered by DJson - Cezar - 16.01.2009


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



Re: [INC] CezAccounts - Account managing system - powered by DJson - ettans - 16.01.2009

Looks nice. Great job!


Re: [INC] CezAccounts - Account managing system - powered by DJson - Snyper18 - 16.01.2009

Nice mate. :P
Goodie Job eh?


Re: [INC] CezAccounts - Account managing system - powered by DJson - beyondless - 17.01.2009

Wow this is nice cez. I'll use this =)


Re: [INC] CezAccounts - Account managing system - powered by DJson - rafay - 17.01.2009

Nice & thanks


Re: [INC] CezAccounts - Account managing system - powered by DJson - romeotheboss - 17.01.2009

wow great! i think i might use this










RESPECT


Re: [INC] CezAccounts - Account managing system - powered by DJson - Cezar - 17.01.2009

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.


Re: [INC] CezAccounts - Account managing system - powered by DJson - Flo_White - 17.01.2009

good job cezar =)


Re: [INC] CezAccounts - Account managing system - powered by DJson - GORE - 26.01.2009

this save the score?


Re: [INC] CezAccounts - Account managing system - powered by DJson - DracoBlue - 26.01.2009

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