yea awp is working fine but its using as default and it has 0 magazine only 10 bullets and working on sniper class :$ and i can't even switch my weapons! nades
#define NAME "[ZP] Extra Item : Thunder awp" #define VERSION "v1.6" #define CREATOR "lucas_7_94"
// Put Your Model =D new const v_thunder[] = "models/v_thunder_awp.mdl" new const p_thunder[] = "models/p_thunder_awp.mdl"
// Put The Cost For The Plugin new const g_thunder_cost = 25
/*==========Customization==========*/ new bool: g_HasThunderCarabine[33] new Thunder, g_thunder, g_maxplayers new cvar_carbine_damage new cvar_say, cvar_sounds new cvar_round_started, cvar_logs /*===== End Customization ======*/
public zp_extra_item_selected(player, itemid) { if (itemid == g_thunder) { if(get_pcvar_num(cvar_round_started) == 1) { if (!zp_has_round_started()) { Color(player, "^x04[ZoD*|]^x01 You need to buy this item after the start of the round.") zp_set_user_ammo_packs(player, zp_get_user_ammo_packs(player) + g_thunder_cost)
return; } } if(g_HasThunderCarabine[player]) { Color(player, "^04[ZoD*|]^x01 You've got the Thunder Awp") zp_set_user_ammo_packs(player, zp_get_user_ammo_packs(player) + g_thunder_cost) return; } else { g_HasThunderCarabine[player] = true strip_user_weapons(player) give_item(player, "weapon_awp") cs_set_user_bpammo(player, CSW_AWP, 52); Color(player, "^x04[ZoD*|]^x01 You purchased a Thunder Awp Destory Zombies with your Thunder") } } }
public fw_TakeDamage(victim, inflictor, attacker, Float:damage, damage_type) { new weapid = read_data(2)
if(get_pcvar_num(cvar_say) == 1) { Color(attacker, "^x04[Thunder Carabine]^x01 You've Removed to ^x04%s", victimname) Color(victim, "^x04[Thunder Carabine]^x01 You have been eliminated by %s", killername) }
// Info On Attacker get_user_name(attacker,namea,23) get_user_team(attacker,teama,7) get_user_authid(attacker,authida,19) new attackerid = get_user_userid(attacker)
// Info On Victim get_user_name(victim,namev,23) get_user_team(victim,teamv,7) get_user_authid(victim,authidv,19) new victimid = get_user_userid(victim)
// Log This Kill log_message("^"%s<%d><%s><%s>^" killed ^"%s<%d><%s><%s>^" with ^"Thunder Carabine^"", namea, attackerid, authida, teama, namev, victimid, authidv, teamv) }
replace_all(msg, 190, "^x04", "^4") // Green Color replace_all(msg, 190, "^x01", "^1") // Default Color replace_all(msg, 190, "!team", "^3") // Team Color replace_all(msg, 190, "!team2", "^0") // Team2 Color
if (id) players[0] = id; else get_players(players, count, "ch") { for (new i = 0; i < count; i++) { if (is_user_connected(players[i])) { message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"), _, players[i]) write_byte(players[i]); write_string(msg); message_end(); } } } }
stock bool:fm_strip_user_gun(index, wid = 0, const wname[] = "") { new ent_class[32]; if (!wid && wname[0]) copy(ent_class, sizeof ent_class - 1, wname); else { new weapon = wid, clip, ammo; if (!weapon && !(weapon = get_user_weapon(index, clip, ammo))) return false;