If you use orpheu, i think i have seen some usefull function to retrieve either bomb either bomb carrier.
Method above seems fine though.
EDIT :
Excepted flags wrong usage...
PHP Code:
get_bomb_carrier()
{
new iPlayers[32], iNum
get_players(iPlayers, iNum, "ae", "TERRORIST")
for(--iNum; iNum>=0; iNum--)
{
if( user_has_weapon(iPlayers[i], CSW_C4) )
{
return iPlayers[i]
}
}
return 0
}
Note that you could replcae user_has_weapon with cs_get_user_defuse.
Then, do:
engclient_cmd(player, "drop", "weapon_c4")
__________________