Re: VIP pluginas
Posted: 2011 Jul 20 21:24
Ne, tavo variantas netinka, tokiu atveju duoda tik m4a1.. be jokiu pasirinkimu. Prisegu kaip atrode dar pluginas, gal ne taip idejau, kaip sakei.eNeMy wrote:Ne toj vietoj idėjai dabar tau ir taip duoda ginklus ir pasirinkus dar duoda.
Kur------------------------Code: Select all
case 1: { cs_set_weapon_ammo( give_item( id, "weapon_m3" ), 8 ) cs_set_user_bpammo(id, CSW_M3, 32) cs_set_weapon_ammo( give_item( id, "weapon_ak47" ), 30 ) cs_set_user_bpammo(id, CSW_AK47, 90) give_item( id, "weapon_knife" ) cs_set_weapon_ammo( give_item( id, "weapon_deagle" ), 7 ) cs_set_user_bpammo(id, CSW_DEAGLE, 35) }
Code: Select all
case 1: { if (user_has_weapon(id, CSW_C4) && get_user_team(id) == 1) HasC4[id] = true else HasC4[id] = false if (user_has_weapon(id, CSW_FLASHBANG)) HasFLASHBANG[id] = true else HasFLASHBANG[id] = false if (user_has_weapon(id, CSW_HEGRENADE)) HasHEGRENADE[id] = true else HasHEGRENADE[id] = false if (user_has_weapon(id, CSW_SMOKEGRENADE)) HasSMOKEGRENADE[id] = true else HasSMOKEGRENADE[id] = false strip_user_weapons(id) give_item(id, "weapon_m4a1") give_item(id, "ammo_556nato") give_item(id, "ammo_556nato") give_item(id, "ammo_556nato") 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, "weapon_knife") if (HasC4[id]) { give_item(id, "weapon_c4") cs_set_user_plant(id) } if (HasFLASHBANG[id]) { give_item(id, "weapon_flashbang") give_item(id, "weapon_flashbang") } if (HasHEGRENADE[id]) { give_item(id, "weapon_hegrenade") } if (HasSMOKEGRENADE[id]) { give_item(id, "weapon_smokegrenade") } }