Blockland Forums > Suggestions & Requests
OnWeaponBuy event
Lugnut:
--- Quote from: Mold on August 29, 2012, 04:34:04 PM ---But it shouldn't be that hard ot add a simple event is it
--- End quote ---
try to find a simple stream of functions
function a calls function b, b calls c, c calls d, etc
not in this mod
no, by the time you get to the point where he finally gives the user the weapon, he's checked if you have enough cash about 3 times, and you've lost the %brick variable that the user is calling it on about 4 functions ago
"forget that stuff, no let's misspell half the function names, and have functions for if() checks!" - tomtom
he's essentially obfuscated his code >.>
Mold:
--- Quote from: Lugnut on August 29, 2012, 04:35:27 PM ---try to find a simple stream of functions
function a calls function b, b calls c, c calls d, etc
"forget that stuff, no let's misspell half the function names, and have functions for if() checks!" - tomtom
--- End quote ---
just put the call in that servercmd in purchesaein.cs that gets called when the client clicks 'yes' on 'are you sure you wanna buy'
nerraD:
the script is so messy i do not know where to set my eyes
Mold:
--- Quote from: nerraD on August 29, 2012, 05:00:25 PM ---the script is so messy i do not know where to set my eyes
--- End quote ---
Wtf I just loked through the otehr files
It's worse than ibans crp
Cookiez664:
o.o
i want to download it
but i can't find teh link lol