Why this function dont work?
Im trying to do a simple function, if FF is on then CTs cant kill other CTs...
but it dont work.. look at my code.. whats is wrong? or what i need to do? PHP Code:
|
Re: Why this function dont work?
Quote:
|
Re: Why this function dont work?
I forgot to explain a thing...
If FF is on, CTs cant kill CTs and Ts can kill Ts. If i'm a terrorist and a person says "/friendlyfire" friendlyfire will activate/desactivate., then i can kill my friends, otherwise, Im a ct and friendlyfire is ON...then i cant kill the other cts.. I dont know, but.. do you mean the mp_friendlyfire cvar have more options than 1 or 0? anything like that..? for example: mp_friendlyfire 2 - set friendly fire only for terrorists mp_friendlyfire 3 - set friendly fire only for cts |
Re: Why this function dont work?
in your case, you don't have to check mp_friendlyfire is on or off, just make cts can't take damage of cts.
|
Re: Why this function dont work?
If mp_friendlyfire is 0 then nobody can kill their teammates. You have to leave friendlyfire on then handle the damage.
|
Re: Why this function dont work?
Try this anyway :) UNTESTED
PHP Code:
|
Re: Why this function dont work?
what's the point of SetHamParamX before return HAM_SUPERCEDE
|
Re: Why this function dont work?
Quote:
Quote:
|
| All times are GMT -4. The time now is 11:58. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.