Cezar
16/01/2009, 05: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
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