Author Topic: VCE Minigame help  (Read 961 times)

i need when a minigame round start all the players will get a certain amount of Cash Variable but i don't really know how to do it i saw it on a server so i know it's possible anyone knows how to do this ?

Its pretty simple.

OnMinigamestart-->Minigame-->addVariable[cash][100]

Tell me if you have ModVariables

Yea but i need it to be a Client variable is it possible ?

Best way to achieve this would be code.

onPlayerSpawn - client - vceModVariable - [cash] {set/add/blah} [100/1000/blah]
assuming the minigame uses lives, or you want the cash to change every time you die.

Make an info button at the spawn. Add these events
Code: [Select]
DELAY         INPUT            OUTPUT
0 OnPlayerActivate > Client > VCEIfVar > Clicked = 1
0 OnVarTrue > Client > CenterPrint > Welcome to the server!
0 OnVarFalse > Client > VCEmodVar > Cash SET 100
0 OnVarFlase > Client > BottomPrint > Cash: <color:00cc00>$<var:cl:Cash>
0 OnVarFalse > Client > CenterPrint > Welcome to the server! You start with $100
2 OnVarFalse > Client > VCEmodVar > Clicked SET 1

I forgot you wanted the cash to restart every round?

Make it so when the minigame resets the CLICKED var is set back to 0 on all clients