Author Topic: [VCE] Player, Client, en minigame.  (Read 941 times)

A small question, Im trying to create a banking system but I know if you do on player, Money dissepairs on dead.
On client money dissepairs on disconection...
But on minigame? Is it for the WHOLE minigame (every player in it) or only for the player itself?

its for the whole minigame, but im pretty sure that you can have something to save client variables, and to load them.

Try setting minigame variables with strings.

Say you want to store for BL_ID 37479 (randomly typed), you set the minigame variable "<var:cl_BL_ID>bidstore" as "<var:cl:BL_ID>", so that you have "37479bidstore" (37479 bank ID storage) equal to their BL_ID.  Make sure you check this through VCEifValue before every check or transaction.  Also make sure you make a second variable, "<var:cl:BL_ID>bmastore", which returns "37479bmastore" (37479 bank money amount).  This is where you conduct transactions.  The amount of money that you have in the bank is assigned to that.

Try setting minigame variables with strings.

Say you want to store for BL_ID 37479 (randomly typed), you set the minigame variable "<var:cl_BL_ID>bidstore" as "<var:cl:BL_ID>", so that you have "37479bidstore" (37479 bank ID storage) equal to their BL_ID.  Make sure you check this through VCEifValue before every check or transaction.  Also make sure you make a second variable, "<var:cl:BL_ID>bmastore", which returns "37479bmastore" (37479 bank money amount).  This is where you conduct transactions.  The amount of money that you have in the bank is assigned to that.
Ehh....
The money is called 'Caps' But its just used for buying stuff. There are some ATM's over there? Maybe I can use that to "save" the money?

Trust me, strings take up a lot of space and there are character limits to VCE variables, so you will NEED to abbreviate whenever possible.

Don't listen to those people. Just use onWhatever > Client > Save Variable.

Don't listen to those people. Just use onWhatever > Client > Save Variable.
You.... Are fycking genius... Why didn't I think of that before D: