Quote:
Originally Posted by wrecked_
@OP - You don't need to create a variable if that's all you're doing with the entity. You can simply do
Code:
cs_set_weapon_ammo( give_item( id, "weapon_scout" ), 0 )
|
You are wrong.
You need to create a variable, and check if it's not null before you send cs_set_weapon_ammo.
Code:
new wpn = give_item(id, "weapon_scout")
if( wpn > 0 )
{
cs_set_weapon_ammo(wpn, 0)
}
cs_set_user_bpammo(id, CSW_SCOUT, 0)
__________________