I'm trying to give all T C4 everytime they spawn using Ham_Spawn but it seems don't work at all, what's wrong? Also when all the T have C4, their C4 don't show on their back?
PHP Code:
public plugin_init()
{
register_clcmd("say /c4", "give_c4")
}
PHP Code:
public give_c4(id)
{
new players[32], playersnum
get_players(players, playersnum, "e", "TERRORIST")
new i
for (i = 0 ; i < playersnum ; ++i)
{
new x = players[i]
if (is_user_alive(x))
{
give_item(x, "weapon_c4")
cs_set_user_plant(x, 1, 1)
}
}
}
EDIT: SOLVED