Detect c4 carrier
how can I detect if I killed a c4 carrier enemy or not?
I want to print chat message if I killed a c4 carrier PHP Code:
|
Re: Detect c4 carrier
PHP Code:
|
Re: Detect c4 carrier
But will it work? becuz it will be called only after player killed?
Quote:
|
Re: Detect c4 carrier
Quote:
|
Re: Detect c4 carrier
@redivcram Maybe with iVictim != iAttacker check too ?
|
Re: Detect c4 carrier
Quote:
Updated my code above. |
Re: Detect c4 carrier
(just a side note)
You may use "%n" formatting rule in order to get some player's name directly. https://github.com/alliedmodders/amxmodx/pull/93 |
Re: Detect c4 carrier
Not thoroughly tested
PHP Code:
|
Re: Detect c4 carrier
This code working fine but you also need to add code for spawn c4 func and get his id. else its fine.
Thanks @bugsy Quote:
|
Re: Detect c4 carrier
This should hook when a player is spawned with c4.
|
All times are GMT -4. The time now is 22:56. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.