Author Topic: Points shop for vehicles  (Read 1000 times)

There should be a simple script to buy vehicles with points earned from a minigame. Can anyone make this happen?

Use vce. Literally takes 2 minutes to make.

I can make a prototype for you if you don't know how to use it.

Well I've seen several servers where you buy weapons with your minigame points, so I don't see how hard could it be, the problem is how to spawn the vehicle, maybe with an item that spawns it infront of you.

Use vce. Literally takes 2 minutes to make.

I can make a prototype for you if you don't know how to use it.
I'd much rather have a gui edit or script, but pls explain. also can you upload the vce events I can't find a download
« Last Edit: April 27, 2017, 09:46:41 AM by kez »

Onactivate > Self > VCEretrocheck > Ifplayerscore >= X Points

Onvariabletrue > Client > incscore > - X Points

Onvariabletrue > namedbrick(vehiclespawn) > setvehicle > vehicle

Onvariabletrue > client > chatmsg > "You bought this vehicle."

Onvariablefalse > client > chatmsg > "You need X points for this."

First line checks if player has enough points.
Second decreases by however many it costs.
Third spawns vehicle.

Change the bolded things to whatever you want them to be.
The bottom two lines are not needed, they're just there for added effect.

https://m.mediafire.com/view/zegm847f0urv5yd < There's VCE

if you want there to be more than one vehicle from the selector then it gets a bit more complicated if using VCE
if you're using a script though, you can just spawn the vehicle without bricks

I'd much rather have a gui edit or script
a GUI just for selecting the vehicle will limit who can do it and using commands could be a bit clunky, but would allow people to do it anywhere