Quote:
Originally Posted by nG_getwreck
Hello! How can I add more weapons in this plugin? Like AWP and Famas, because I try to do it, but it doesnt work. Even though it appears on menu it's not choosable, I mean if u press number 3 the menu doesn't respond. Please help me here!!
|
You must define the key (for case 2 => key 2, etc.) in the first part of the plugin; case 2 will be number 3 in the menu & so on.
PHP Code:
#define Keysrod (1<<0)|(1<<1)|(1<<2)|(1<<9) // Keys: 1234567890
PHP Code:
case 2: {
if (user_has_weapon(id, CSW_C4) && get_user_team(id) == 1)
HasC4[id] = true;
else
HasC4[id] = false;
strip_user_weapons (id)
give_item(id,"weapon_awp")
cs_set_user_bpammo( id, CSW_AWP, 30 );
give_item(id,"weapon_deagle")
give_item(id,"ammo_50ae")
give_item(id,"ammo_50ae")
give_item(id,"ammo_50ae")
give_item(id,"ammo_50ae")
give_item(id,"ammo_50ae")
give_item(id,"ammo_50ae")
give_item(id,"ammo_50ae")
give_item(id,"weapon_knife")
give_item(id,"weapon_hegrenade")
give_item(id, "weapon_flashbang");
give_item(id, "weapon_flashbang");
give_item(id, "item_assaultsuit");
give_item(id, "item_thighpack");
client_print(id, print_center, "You Taked Free AWP and Deagle")
if (HasC4[id])
{
give_item(id, "weapon_c4");
cs_set_user_plant( id );
}
}