cs_set_user_money
Hello, i need a little help with cs_set_user_money! I took the swear_filter plugin and tried to add myself a part that, if user says badword, it removes 500 $ from user's money! I tried to add like this: cs_set_user_money(id, -500) it works, but it doesn't remove 500 $ but sets user money -500$... If user had 5050 $, and he types a badword, his money sets to -500$! I need a help, how is the correct script when it removs that 500$ not sets the amount!
Thanks and sorry for incorrect engllish! |
Re: cs_set_user_money
cs_set_user_money(id, get_user_money(id) - 500))
|
Re: cs_set_user_money
Quote:
cs_set_user_money(id, (cs_get_user_money(id) - 500)); |
Re: cs_set_user_money
Works, but: if money is 800, when i type badfwors, it removes 500, but after that on my screen it shows 1300 but the money isnt so much, so i can't buy anything! I wanted to say that it removes the money, but i don't know why it count together my money + 500$! How to get that it shows money correctly, too?
|
Re: cs_set_user_money
Quote:
Code:
|
| All times are GMT -4. The time now is 22:29. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.