native

cs_set_user_plant

Syntax

native cs_set_user_plant(index, plant = 1, showbombicon = 1);

Description

If plant is 1, a user will be set to be able to plant bomb within the usual bomb target areas if having one.
You should use this if you give a player a weapon_c4, or he won't be able to plant it
without dropping it and picking it up again (only possible for terrorists).
If showbombicon is 1, the green C4 icon will be shown on user hud (if plant "skill" was enabled).