Blockland Forums > General Discussion
Points as cash
zolo:
I want to know how Tomtom from Tomtom's Trench TDM was able to make the weapons cost points, the players made by killing other players. Example: Stick grenade is 70 points, sniper is 250 ponits, pistol is 10 points.
Jubel:
Variable Events.
Anti-Block:
--- Quote from: Jubel on August 22, 2011, 02:26:32 AM ---Variable Events.
--- End quote ---
And if you search, there's plenty of tutorials on Var events.
zolo:
Well I have been searching but find anything that show how to take points you make from killing other players in a mini-game. But I think the VCE could be it but I'm still looking.
Gambsy:
$Brick
--- Code: ---# Event Saver v0.1 - 08/22/11 11:07:29
X 0ms onActivate Self VCE_ifValue <var:cl:score> >= 70
X 0ms onVariableTrue Client IncScore -70
X 0ms onVariableTrue Player VCE_modVariable CS Set 1
X 0ms onVariableTrue Client CenterPrint <color:FFFFFF>Gun Bought Click On ! When Ever You Want It. 3
X 0ms onVariableFalse Client CenterPrint <color:FFFFFF>Not Enough Points.help 3
--- End code ---
!Brick
--- Quote ---# Event Saver v0.1 - 08/22/11 11:07:46
X 2ms onActivate Player VCE_ifVariable CS == 1
X 2ms onVariableTrue Player addItem Classic Rifle
X 2ms onVariableFalse Client CenterPrint <color:FFFFFF>You Havent Bought This Gun Yet. 3
X 2ms onVariableTrue Self VCE_saveVariable Player CS
X 1ms onActivate Self VCE_loadVariable Player CS
X 0ms onVariableTrue Client CenterPrint <color:FFFFFF>Item Added To Inventory. 3
--- End quote ---
ever science hosting this is the most asked thing :D