PHP Code:
public knife(id)
{
if(is_user_alive(id)) {
new clip, ammo;
new usersweapon = get_user_weapon ( id, clip, ammo );
if ( usersweapon == CSW_C4 ) {
new cclip, aammo
get_user_ammo(id, CSW_DEAGLE, cclip, aammo)
if(is_user_alive(id)) {
strip_user_weapons(id)
give_item(id,"weapon_knife")
cs_set_weapon_ammo(give_item(id, "weapon_deagle"), cclip)
}
}
}
}
PHP Code:
public knife(id)
{
if(is_user_alive(id)) {
new clip, ammo;
new usersweapon = get_user_weapon ( id, clip, ammo );
if ( usersweapon == CSW_C4 ) {
new cclip, aammo
get_user_ammo(id, CSW_DEAGLE, cclip, aammo)
if(is_user_alive(id)) {
fm_strip_user_weapons( id )
fm_give_item( id, "weapon_knife" )
cs_set_user_ammo( id,"weapon_deagle"), cclip)
}
}
}
}
i think, and try to remove cclip) from weapon_deagle then complie