Hello. I read some topics about this..
But a can't find a better way.
1. Is possible remove bomb from spawned players without any text\chat messages (player dropped the bomb), red icons (when you lose c4 with
cs_set_user_bpammo(player, CSW_C4, 0)), etc?
I tried some variants.. For example:
PHP Code:
register_logevent("logevent_function_p", 3, "2=Spawned_With_The_Bomb");
public logevent_function_p()
{
new players[32], inum
get_players(players, inum)
for (new i = 0; i < inum; ++i)
{
if(user_has_weapon(players[i], CSW_C4))
{
cs_set_user_bpammo(players[i], CSW_C4, 0)
cs_set_user_plant(players[i], 0, 0)
}
}
}
This way is good, when you playing alone (or with 1 enemy). When count of players > 2, every spawn of T player adds c4 to you. Or red point on radar does not removes, or bomb can not be removed, if bomb is dropped, or player marked as a "BOMB" in scoreboard (when player did't have a c4)..
One note: do not use removing func / info _bomb_target. Plugin-remover C4 should work some time (ex. 2 minutes from map start (warm up mod)).
2. when i use cs_set_user_plant, player's status in scoreboard updates ONLY AFTER death. Is possible to update status immediately?
__________________