Author Topic: How do i make a button that gives a player weapon but need like 50 or 100 points  (Read 1595 times)

like the subject says i whant to know how to make a button that gives a player a weapon but he/she need 50 or 100 points to buy it if not a message says that he/she dont have enough money.
So how do i event it?
Also would be nice if you could say how to make a button like this one but that gives a random item/weapon to the player.


For this you will need variable and conditional events.

OnActivate - self - VCE_ifvaule - |<var:cl:score>| >= |50|
Onvariabletrue - self - spawnitem - |Gun| |0| |0| |5|
Onvariablefalse - client - centerprint - |Not enough points!|

Something like that I'm not sure if it's all right but you can expirement with it
So get You can get what you want it to do.

For this you will need variable and conditional events.

OnActivate - self - VCE_ifvaule - |<var:cl:score>| >= |50|
Onvariabletrue - self - spawnitem - |Gun| |0| |0| |5|
Onvariablefalse - client - centerprint - |Not enough points!|

Something like that I'm not sure if it's all right but you can expirement with it
So get You can get what you want it to do.
thanks will try out that :3

hmmm..... it worked but the player dont loose 50 points :C
anyone knows why?
and how to fix it

hmmm..... it worked but the player dont loose 50 points :C
anyone knows why?
and how to fix it
maybe because you never evented it to make them loose points?
events are SIMPLE logic, you can just about read them like it's english
just add an onvariabletrue>client>incscore[-50]

maybe because you never evented it to make them loose points?
events are SIMPLE logic, you can just about read them like it's english
just add an onvariabletrue>client>incscore[-50]
will try it later :P gotta take a shower

events are SIMPLE logic, you can just about read them like it's english

He speaks the truth.

Adding to this, I may recommend using VCE retrocheck instead of <var:cl:score>, because it allows more things such as bricks disappearing and such, which cannot be done using <var:cl:score>.

He speaks the truth.

Adding to this, I may recommend using VCE retrocheck instead of <var:cl:score>, because it allows more things such as bricks disappearing and such, which cannot be done using <var:cl:score>.
does it allows to give the player a random weapon?
if yes then i will download it :3

does it allows to give the player a random weapon?
if yes then i will download it :3
Bumb for that quote plz need to find a way to give the player a random weapon!!!

plz
because of that, and bumping a topic after 10 minutes, which was still on the first page, i won't tell you anymore, although if you were less of an idiot, then i probably would have

because of that, and bumping a topic after 10 minutes, which was still on the first page, i won't tell you anymore, although if you were less of an idiot, then i probably would have
although you're one that whant to spend time to peoples that just whant to ask something

although you're one that whant to spend time to peoples that just whant to ask something


Just don't be going post crazy for help.

There are VCE manuals, you know.
And phflack, you can make something that gives you a random weapon? I would like to know how to do that, if it's possible.

And phflack, you can make something that gives you a random weapon? I would like to know how to do that, if it's possible.
and now that somebody has asked (ignoring sentences with people just pounding their keyboard (to get words like plz or u)), this will have 4 random items, and if you're smart, you can edit it for more or less:

[0]onvariabletrue>self>vce_modvariable[random][set][1]
[1]onvaraibletrue>self>vce_modvariable[random][randnum][4]
[2]onvariabletrue>self>vce_ifvaraible[random][==][1][3 4]
[3]onvariabletrue>player>additem[item name]
[4]onvariablefalse>self>vce_ifvariable[random][==][2][5 6]
[5]onvariabletrue>player>additem[item name]
[6]onvariablefalse>self>vce_ifvariable[random][==][3][7 8]
[7]onvariabletrue>player>additem[item name]
[8]onvariablefalse>self>vce_ifvariable[random][==][4][9 9]
[9]onvariabletrue>player>additem[item name]

and now that somebody has asked (ignoring sentences with people just pounding their keyboard (to get words like plz or u)), this will have 4 random items, and if you're smart, you can edit it for more or less:

[0]onvariabletrue>self>vce_modvariable[random][set][1]
[1]onvaraibletrue>self>vce_modvariable[random][randnum][4]
[2]onvariabletrue>self>vce_ifvaraible[random][==][1][3 4]
[3]onvariabletrue>player>additem[item name]
[4]onvariablefalse>self>vce_ifvariable[random][==][2][5 6]
[5]onvariabletrue>player>additem[item name]
[6]onvariablefalse>self>vce_ifvariable[random][==][3][7 8]
[7]onvariabletrue>player>additem[item name]
[8]onvariablefalse>self>vce_ifvariable[random][==][4][9 9]
[9]onvariabletrue>player>additem[item name]

awww... ok maybe you're right through that my english is bad but yea, gonna try that next time.