Poll

Did you have this problem?

Yes.
1 (100%)
No.
0 (0%)

Total Members Voted: 1

Author Topic: Event Help  (Read 299 times)

Hey guys, I know I've had this problem before, but I can't find my old topic (I used search, but haven't found it). So now I am asking you the events needed to do this.

You activate the brick and if you have enough score/points, it gives you the item.

Example.


The gun costs 5 points.

I have 5 points, but the guy next to me has 4.

I get the gun, using my 5 points.

But he can't because he doesn't have 5 points, so he keeps his 4.

Anybody know?

onactivate>self>vce_ifvalue[<var:cl:score>][>=][5][1 3]
onvariabletrue>player>additem[gun]
onvariabletrue>client>chatmsg[<color:ffffff>You bought a gun.
onvariablefalse>client>chatmsg[<color:ffffff>You need 5 points to buy a gun, you have <var:cl:score> points.]