Author Topic: Purchasing Weaponry  (Read 699 times)

I'm in the middle of making a Farm TDM, and I realize I forgot how to Event to where you have to get kills, then you can purchase weapons/ new vehicles. So, how do you do it?

Bump in need of assistance.

I don't the exact events, but I know what needs to be done.
You need to use variables for this. VCE would probably work, but what do I know.

With variables, you would have a variable called 'points' or something, and you would have it set up so everytime a player gets a kill, they would get a point. When you go to buy a weapon, it checks to see if you have enough points to buy the weapon. You would also set the weapons cost with variables. If you have enough points, the amount of points that the weapon costs, will be taken from your point total.

i would just check the score for the player, using VCE, instead of giving them points, much easier i say

Code: [Select]
OnActivate > Self > VCE_IfValue [<var:cl:Score>] == [50]
OnVariableTrue > Client > VCE_ModVariable [<var:cl:Score>] Subtract [50]
OnVariableTrue > Player > AddItem [Sword]
OnVariableFalse > Client > ChatMessage [YOU POOR SON OF A forget stuff TWAT]

Code: [Select]
OnActivate > Self > VCE_IfValue [<var:cl:Score>] == [50]
OnVariableTrue > Client > VCE_ModVariable [<var:cl:Score>] Subtract [50]
OnVariableTrue > Player > AddItem [Sword]
OnVariableFalse > Client > ChatMessage [YOU POOR SON OF A forget stuff TWAT]

Thanks. Locking...