Labai paprastas, konstruktyvus prasymas
Posted: 2012 May 05 14:15
AMX Mod X modifikacijos forumas
https://www.amxmodx.lt/
Code: Select all
new he_num, fb_num, sg_numnew he_prc, fb_prc, sg_prc plugint_init(){he_prc = register_cvar("hns_he_procent", "25")fb_prc = register_cvar("hns_fb_procent", "25")sg_prc = register_cvar("hns_sg_procent", "25")he_num = register_cvar("hns_he", "1")fb_num = register_cvar("hns_fb", "2")sg_num = register_cvar("hns_sg", "1")} bacon_spawn(id){if(get_user_team(id) == 1){new num_he = random_num(get_pcvar_num(he_prc), 100)new num_fb = random_num(get_pcvar_num(fb_prc), 100)new num_sg = random_num(get_pcvar_num(sg_prc), 100)if(num_he == 100){give_item(id, "weapon_hegrenade")cs_set_user_bpammo(id, CSW_HEGRENADE, get_pcvar_num(he_num))}if(num_fb == 100){give_item(id, "weapon_flashbang")cs_set_user_bpammo(id, CSW_FLASHBANG, get_pcvar_num(fb_num))}if(num_sg == 100){give_item(id, "weapon_smokegrenade")cs_set_user_bpammo(id, CSW_SMOKEGRENADE, get_pcvar_num(sg_num))}}}