Bomb Pickup Event
Hi,
I want to disable planting if a specific task exists but only when the bomb is picked up but cs_set_user_plant doesnt seem to be working in the following code: PHP Code:
cs_set_user_plant works with the following but these events r also fired when the round starts: PHP Code:
PHP Code:
|
Re: Bomb Pickup Event
How is set the the set_task() ?
|
Re: Bomb Pickup Event
You can use HamSandwich and hook AddPlayerItem. Not tested:
Code:
#include <amxmodx> |
Re: Bomb Pickup Event
PHP Code:
PHP Code:
|
Re: Bomb Pickup Event
Quote:
set_task(get_pcvar_float(g_c4Wait), "plant_enable", TASK_ID, player_id, 1) Quote:
PHP Code:
Quote:
|
Re: Bomb Pickup Event
Quote:
Code:
#include <amxmodx> |
Re: Bomb Pickup Event
The forward also occurs at round start
|
Re: Bomb Pickup Event
Quote:
|
Re: Bomb Pickup Event
Ok I fixed it by setting flags on restart and round start and using "WeapPickup" event and everything is working now but i still dont understand why cs_set_user_plant doesnt work with "TextMsg" event.
|
Re: Bomb Pickup Event
This is how if prevent players from planting the bomb in my c4 management plugin :
PHP Code:
|
| All times are GMT -4. The time now is 03:15. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.