Author Topic: If palyer doesnt have enough points to get item  (Read 729 times)

i know how to script where the playergives 50 poin ts for somthings but what if they dont have enough points to buy item? i know theres a addon or somthing but i dont know where to find plz help


Variable events, then <var:client:score> or something.

Wait, are you talking about events? Because you have another topic involving events.

If so, use variable events.

Aww crap, space guy beat me to it. D:


http://www.mediafire.com/download.php?wmnmhyfnmzd
That's the old (better) variable/conditional events.
Here's what to do.

onActivate - Self - ifVariable: "Gold" (GreaterEquals) [5]
variableTrue - Client - addVariable: "Gold" [-5]
variableTrue - Player - addItem: "Sword"
variableTrue - Client - CenterPrint: "Have a nice day!"
variableFalse - Client - CenterPrint: "You don't have enough gold!"

My bad.

onActivate - Self - ifVariable: (CLIENT) "Gold" (GreaterEquals) [5]
variableTrue - Client - addVariable: "Gold" [-5]
variableTrue - Player - addItem: "Sword"
variableTrue - Client - CenterPrint: "Have a nice day!"
variableFalse - Client - CenterPrint: "You don't have enough gold!"