mp_friendlyfire float and other question
Ok well i got the second part solved buddy of mine was able to test.
Now just gotta make mp_friendlyfire as a float |
Re: mp_friendlyfire float and other question
Use get_[p]cvar_float().
|
Re: mp_friendlyfire float and other question
Quote:
mp_friendlyfire = 0.10 is there a way to set mp_friendlyfire by this plugin since its in amxx not in this plugin PHP Code:
|
Re: mp_friendlyfire float and other question
mp_friendlyfire is not a ratio...
It's either 1 or 0. Meaning 1 you can hurt teammates, 0 you can't. |
Re: mp_friendlyfire float and other question
Quote:
right and i need to make it a float. |
Re: mp_friendlyfire float and other question
To retrieve the value as float, use #2.
|
Re: mp_friendlyfire float and other question
Quote:
mp_ff 0.25 if(mp_ff > 0) mp_friendlyfire 1 |
Re: mp_friendlyfire float and other question
I was meant that you can't change the fact that mp_friendlyfire is either 1 or 0 and you can't to turn out it in a float.
For your question, just use #2, but with set_*. |
| All times are GMT -4. The time now is 17:37. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.