Quote:
Originally Posted by Liverwiz
What i want to do is set the cost of something via CVAR. -1 represents not needing to purchase (equip automatically) 0 would be free (still has to choose to equip it) and anything above that, obviously, would be the set price.
Code:
new pcvar_cost = register_cvar("Cost", 0)
if(get_pcvar_num(pcvar_cost) == -1)
print("THAT SHIT'S FREE!")
else
print("Fat chicks need love too....they just gotta pay.")
I'd test it myself....but i recently lost my test server due to god knows what. In the process of fixing it.....
|
You already know what to do it sounds like. Also, your code doesn't match your words, FYI.
__________________