Eai Galerinha da Zplague , Estou Trazendo aqui para voces o Item Chamado Halo Player ao comprar Esse Item você irar Possuir
- P90 Igual a do Jogo Halo (como na imagem)
- Deagle
- Bomba de Fogo
- Bomba de Gelo
- Bomba de Luz.
Prints:
- SMA do Item:
Download Aqui!!
Gostou? de Seu REP+
- P90 Igual a do Jogo Halo (como na imagem)
- Deagle
- Bomba de Fogo
- Bomba de Gelo
- Bomba de Luz.
Prints:
- SMA do Item:
- Código:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include < fun >
#include <cstrike>
#include <engine>
#include <hamsandwich>
#include <fakemeta>
#include <zombieplague>
#define PLUGIN "[ZP] Extra Item : Halo Player"
#define VERSION "v2.0"
#define AUTHOR "Ciio"
#define TASK_AURA 27000
new item
new g_halo[33]
#if cellbits == 32
const OFFSET_CLIPAMMO = 51
#else
const OFFSET_CLIPAMMO = 65
#endif
const OFFSET_LINUX_WEAPONS = 4
new const MAXCLIP[] = { -1, 13, -1, 10, 1, 7, -1, 30, 30, 1, 30, 20, 25, 30, 35, 25, 12, 20,
10, 30, 100, 8, 30, 30, 20, 2, 7, 30, 30, -1, 50 }
new g_has_unlimited_clip[33]
new g_maxplayers
new cvar_aura_on, cvar_aura_size, cvar_aura_colors
new const v_p90_model[] = "models/v_p90_halo.mdl"
new const w_p90_model[] = "models/w_p90_halo.mdl"
new const p_p90_model[] = "models/p_p90_halo.mdl"
new const halo_player_model[] = "models/player/halo_player.mdl"
public plugin_precache ()
{
precache_model (v_p90_model)
precache_model (w_p90_model)
precache_model (p_p90_model)
precache_model (halo_player_model)
}
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
item = zp_register_extra_item ("Halo Player", 45, ZP_TEAM_HUMAN)
register_event("CurWeapon", "event_CurWeapon", "be", "1=1")
register_message(get_user_msgid("CurWeapon"), "message_cur_weapon")
register_event("HLTV", "event_round_start", "a", "1=0", "2=0")
register_forward(FM_PlayerPreThink, "fw_playerprethink");
RegisterHam(Ham_TakeDamage, "player", "fw_TakeDamage");
g_maxplayers = get_maxplayers()
// Cvars
cvar_aura_on = register_cvar("zp_halo_aura", "1")
cvar_aura_size = register_cvar("zp_halo_aura_size", "50")
cvar_aura_colors = register_cvar("zp_halo_aura_color_rgb", "0 255 255")
}
public FW_playerprethink(id)
{
if(g_halo[id])
set_user_maxspeed(id, 350.0)
}
public zp_extra_item_selected (id, itemid)
{
if (itemid == item)
{
g_halo[id] = true
g_has_unlimited_clip[id] = true
strip_user_weapons(id)
set_user_health (id, 400)
set_user_armor (id, 200)
set_user_gravity (id, Float:0.6)
give_item (id, "weapon_p90")
give_item (id, "weapon_deagle")
give_item (id, "weapon_knife")
give_item (id, "weapon_hegrenade")
give_item (id, "weapon_flashbang")
give_item (id, "weapon_smokegrenade")
if(get_pcvar_num(cvar_aura_on))
{
set_task(0.1, "aura", id + TASK_AURA, _, _, "b")
}
}
}
public event_CurWeapon(id)
{
new weapid = read_data(2)
if(!is_user_alive(id))
return;
if(g_halo[id] && weapid == CSW_P90)
{
entity_set_string(id, EV_SZ_viewmodel, v_p90_model)
entity_set_string(id, EV_SZ_weaponmodel, w_p90_model)
entity_set_string(id, EV_SZ_weaponmodel, p_p90_model)
}
}
public message_cur_weapon(msg_id, msg_dest, msg_entity)
{
if (!g_has_unlimited_clip[msg_entity])
return;
if (!is_user_alive(msg_entity) || get_msg_arg_int(1) != 1)
return;
static weapon, clip
weapon = get_msg_arg_int(2)
clip = get_msg_arg_int(3)
if (MAXCLIP[weapon] > 2)
{
set_msg_arg_int(3, get_msg_argtype(3), MAXCLIP[weapon])
if (clip < 2)
{
static wname[32], weapon_ent
get_weaponname(weapon, wname, sizeof wname - 1)
weapon_ent = find_ent_by_owner(-1, wname, msg_entity)
fm_set_weapon_ammo(weapon_ent, MAXCLIP[weapon])
}
}
}
public fw_TakeDamage(victim, inflictor, attacker, Float:damage, damage_type)
{
if (g_halo[attacker])
{
SetHamParamFloat(4, damage * 2.0)
}
else if (!g_halo[attacker])
{
SetHamParamFloat(4, damage * 1.0)
}
return HAM_IGNORED
}
public aura(id)
{
id -= TASK_AURA
if (!is_user_alive(id))
return
new szColors[16]
get_pcvar_string(cvar_aura_colors, szColors, 15)
new gRed[4], gGreen[4], gBlue[4], iRed, iGreen, iBlue
parse(szColors, gRed, 3, gGreen, 3, gBlue, 3)
iRed = clamp(str_to_num(gRed), 0, 255)
iGreen = clamp(str_to_num(gGreen), 0, 255)
iBlue = clamp(str_to_num(gBlue), 0, 255)
static Float:FOrigin[3]
pev(id, pev_origin, FOrigin)
engfunc(EngFunc_MessageBegin, MSG_PVS, SVC_TEMPENTITY, FOrigin, 0)
write_byte(TE_DLIGHT)
engfunc(EngFunc_WriteCoord, FOrigin[0])
engfunc(EngFunc_WriteCoord, FOrigin[1])
engfunc(EngFunc_WriteCoord, FOrigin[2])
write_byte(get_pcvar_num(cvar_aura_size))
write_byte(iRed)
write_byte(iGreen)
write_byte(iBlue)
write_byte(2)
write_byte(0)
message_end()
}
public client_putinserver (id)
{
g_halo[id] = false
g_has_unlimited_clip[id] = false
remove_task(id + TASK_AURA)
}
public event_round_start()
{
for(new id = 1; id <= g_maxplayers; id++)
{
g_halo[id] = false
g_has_unlimited_clip[id] = false;
remove_task(id + TASK_AURA)
}
}
public zp_user_infected_post(id)
{
g_halo[id] = false
remove_task(id + TASK_AURA)
}
stock fm_find_find_ent_by_owner(entity, const classname[], owner)
{
while ((entity = engfunc(EngFunc_FindEntityByString, entity, "classname", classname)) && pev(entity, pev_owner) != owner) {}
return entity;
}
stock fm_set_weapon_ammo(entity, amount)
{
set_pdata_int(entity, OFFSET_CLIPAMMO, amount, OFFSET_LINUX_WEAPONS);
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang3082\\ f0\\ fs16 \n\\ par }
*/
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ ansicpg1252\\ deff0\\ deflang3082{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ f0\\ fs16 \n\\ par }
*/
Download Aqui!!
Gostou? de Seu REP+