26.07.2012, 13:07
Steps for creation:
1.) Make a new variable using the "new" function.
2.) Put GetPlayerCash function under OnPlayerDisconnect callback.
3.) And, GivePlayerCash function under OnPlayerSpawn callback.
Example :
new pMoney;
OnPlayerSpawn - GivePlayerCash(playerid, {variable} );
OnPlayerDisconnect - - GetPlayerCash(playerid);
---------------------------------------------
Get a database system to store the variable of the cash onto player accounts.
1.) Make a new variable using the "new" function.
2.) Put GetPlayerCash function under OnPlayerDisconnect callback.
3.) And, GivePlayerCash function under OnPlayerSpawn callback.
Example :
new pMoney;
OnPlayerSpawn - GivePlayerCash(playerid, {variable} );
OnPlayerDisconnect - - GetPlayerCash(playerid);
---------------------------------------------
Get a database system to store the variable of the cash onto player accounts.