[HELP] Takedamage help
terrorist > counter terrorist in hits
PHP Code:
I want to have to hit the terrorist ct sorry bad english:cry::cry: |
Re: [HELP] Takedamage help
You must check the team of both attacker and victim by using cs_get_user_team()... see cstrike.inc for values and stuff.
Also, you don't have all params placed into the function, see ham_const.inc. And note, attacker may be a non-player entity aswell, you need to check if is a player, easiest way is to is_user_connected() on attacker. |
Re: [HELP] Takedamage help
editttttttttttttttt
|
Re: [HELP] Takedamage help
Explain what your trying to do?
|
Re: [HELP] Takedamage help
That is the correct call back
PHP Code:
|
Re: [HELP] Takedamage help
Quote:
|
Re: [HELP] Takedamage help
get_user_team returns false results some time, to stay on the safe side, use cs_get_user_team or FM to retrieve player's team
|
Re: [HELP] Takedamage help
Oh really? Didn't know that, hasn't happened to me yet :p
In that case stick with the Doc ;) |
Re: [HELP] Takedamage help
Not only that he uses CS_TEAM_CT so hes already using cstrike.
|
Re: [HELP] Takedamage help
PHP Code:
|
| All times are GMT -4. The time now is 03:20. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.