ola galera hoje eu trago as Thunders toltamente modificada,eu tinha 1 topico atras com as thunder xm1014 e mp5 mas essas eu as editei por completo e ainda eu trago a m4a1 e ak47 e deagle
Sma M4a1:
Sma Ak47:
Sma Xm1014:
Sma Mp5:
Sma Deagle:
Sma M4a1:
Código:
#include <amxmodx>
#include <engine>
#include <zombieplague>
#include <hamsandwich>
#define PLUGIN "[ZP] Plugin: Switch M4a1 Model"
#define VERSION "2.5"
#define AUTHOR "Beuller/ Edit By Slayer."
#define is_valid_player(%1) (1 <= %1 <= 32)
new v_m4a1[]="models/v_m4a1.mdl"
new const p_m4a1[] = "models/p_m4a1.mdl"
new bool:g_has_m4a1[33]
new g_Smoke,g_Lightning
new const sound_thunder[] = "ambience/thunder_clap.wav"
new cvar_dmgmultiplier
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
cvar_dmgmultiplier = register_cvar("zp_thunderdmg_m4a1", "1.5")
register_event("HLTV", "event_round_start", "a", "1=0", "2=0")
register_event("DeathMsg", "DeathMsg", "a")
RegisterHam(Ham_Spawn, "player", "ham_PlayerSpawn_Post", 1)
RegisterHam(Ham_Killed, "player", "fw_PlayerKilled")
RegisterHam(Ham_TakeDamage, "player", "fwHamTakeDamage")
register_event("CurWeapon", "event_CurWeapon", "be", "1=1")
}
public fwHamTakeDamage(victim, inflictor, attacker, Float:damage)
{
if ( is_valid_player( attacker ) && get_user_weapon(attacker) == CSW_M4A1 && g_has_m4a1[attacker] )
{
SetHamParamFloat(4, damage * get_pcvar_float( cvar_dmgmultiplier ) )
}
}
public plugin_precache()
{
precache_model(v_m4a1)
precache_model(p_m4a1)
precache_sound(sound_thunder)
g_Lightning = precache_model("sprites/lgtning.spr");
g_Smoke = precache_model("sprites/steam1.spr");
}
public client_connect(id)
{
g_has_m4a1[id] = false
}
public client_disconnect(id)
{
g_has_m4a1[id] = false
}
public zp_user_infected_post(infected, infector)
{
if (g_has_m4a1[infected])
{
g_has_m4a1[infected] = false
}
}
public fw_PlayerKilled(victim, attacker, shouldgib)
{
g_has_m4a1[victim] = false
}
public ham_PlayerSpawn_Post(id)
{
g_has_m4a1[id] = false
return PLUGIN_CONTINUE
}
public event_round_start()
{
for (new i = 1; i <= 32; i++)
{
g_has_m4a1[i] = false
}
}
public DeathMsg()
{
new Killer = read_data(1) // Assassin
new vOrigin[3],coord[3];
new victim = read_data(2);
get_user_origin(victim,vOrigin);
vOrigin[2] -= 26
coord[0] = vOrigin[0] + 150;
coord[1] = vOrigin[1] + 150;
coord[2] = vOrigin[2] + 800;
if(get_user_weapon(Killer) == CSW_M4A1) // If use the m4a1 weapon
{
create_thunder(coord,vOrigin);
emit_sound(victim,CHAN_ITEM, sound_thunder, 1.0, ATTN_NORM, 0, PITCH_NORM);
emit_sound(Killer,CHAN_ITEM, sound_thunder, 1.0, ATTN_NORM, 0, PITCH_NORM);
set_model(Killer)
}
}
create_thunder(vec1[3],vec2[3])
{
message_begin(MSG_BROADCAST,SVC_TEMPENTITY);
write_byte(0);
write_coord(vec1[0]);
write_coord(vec1[1]);
write_coord(vec1[2]);
write_coord(vec2[0]);
write_coord(vec2[1]);
write_coord(vec2[2]);
write_short(g_Lightning);
write_byte(1);
write_byte(5);
write_byte(2);
write_byte(20);
write_byte(30);
write_byte(200);
write_byte(200);
write_byte(200);
write_byte(200);
write_byte(200);
message_end();
message_begin( MSG_PVS, SVC_TEMPENTITY,vec2);
write_byte(TE_SPARKS);
write_coord(vec2[0]);
write_coord(vec2[1]);
write_coord(vec2[2]);
message_end();
message_begin(MSG_BROADCAST,SVC_TEMPENTITY,vec2);
write_byte(TE_SMOKE);
write_coord(vec2[0]);
write_coord(vec2[1]);
write_coord(vec2[2]);
write_short(g_Smoke);
write_byte(10);
write_byte(10)
message_end();
}
public set_model(id)
{
g_has_m4a1[id] = true
}
public event_CurWeapon(id)
{
new weapid = read_data(2)
if(!is_user_alive(id))
return;
if(g_has_m4a1[id] && weapid == CSW_M4A1)
{
entity_set_string(id, EV_SZ_viewmodel, v_m4a1)
entity_set_string(id, EV_SZ_weaponmodel, p_m4a1)
}
}
Código:
#include <amxmodx>
#include <engine>
#include <zombieplague>
#include <hamsandwich>
#define PLUGIN "[ZP] Plugin: Switch AK47 Model"
#define VERSION "2.5"
#define AUTHOR "Beuller/ Edit By Slayer."
#define is_valid_player(%1) (1 <= %1 <= 32)
new v_ak47[]="models/v_ak47.mdl"
new const p_ak47[] = "models/p_ak47.mdl"
new bool:g_has_ak47[33]
new g_Smoke,g_Lightning
new const sound_thunder[] = "ambience/thunder_clap.wav"
new cvar_dmgmultiplier
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
cvar_dmgmultiplier = register_cvar("zp_thunderdmg_ak47", "1.5")
register_event("HLTV", "event_round_start", "a", "1=0", "2=0")
register_event("DeathMsg", "DeathMsg", "a")
RegisterHam(Ham_Spawn, "player", "ham_PlayerSpawn_Post", 1)
RegisterHam(Ham_Killed, "player", "fw_PlayerKilled")
RegisterHam(Ham_TakeDamage, "player", "fwHamTakeDamage")
register_event("CurWeapon", "event_CurWeapon", "be", "1=1")
}
public fwHamTakeDamage(victim, inflictor, attacker, Float:damage)
{
if ( is_valid_player( attacker ) && get_user_weapon(attacker) == CSW_AK47 && g_has_ak47[attacker] )
{
SetHamParamFloat(4, damage * get_pcvar_float( cvar_dmgmultiplier ) )
}
}
public plugin_precache()
{
precache_model(v_ak47)
precache_model(p_ak47)
precache_sound(sound_thunder)
g_Lightning = precache_model("sprites/lgtning.spr");
g_Smoke = precache_model("sprites/steam1.spr");
}
public client_connect(id)
{
g_has_ak47[id] = false
}
public client_disconnect(id)
{
g_has_ak47[id] = false
}
public zp_user_infected_post(infected, infector)
{
if (g_has_ak47[infected])
{
g_has_ak47[infected] = false
}
}
public fw_PlayerKilled(victim, attacker, shouldgib)
{
g_has_ak47[victim] = false
}
public ham_PlayerSpawn_Post(id)
{
g_has_ak47[id] = false
return PLUGIN_CONTINUE
}
public event_round_start()
{
for (new i = 1; i <= 32; i++)
{
g_has_ak47[i] = false
}
}
public DeathMsg()
{
new Killer = read_data(1) // Assassin
new vOrigin[3],coord[3];
new victim = read_data(2);
get_user_origin(victim,vOrigin);
vOrigin[2] -= 26
coord[0] = vOrigin[0] + 150;
coord[1] = vOrigin[1] + 150;
coord[2] = vOrigin[2] + 800;
if(get_user_weapon(Killer) == CSW_AK47) // If use the ak47 weapon
{
create_thunder(coord,vOrigin);
emit_sound(victim,CHAN_ITEM, sound_thunder, 1.0, ATTN_NORM, 0, PITCH_NORM);
emit_sound(Killer,CHAN_ITEM, sound_thunder, 1.0, ATTN_NORM, 0, PITCH_NORM);
set_model(Killer)
}
}
create_thunder(vec1[3],vec2[3])
{
message_begin(MSG_BROADCAST,SVC_TEMPENTITY);
write_byte(0);
write_coord(vec1[0]);
write_coord(vec1[1]);
write_coord(vec1[2]);
write_coord(vec2[0]);
write_coord(vec2[1]);
write_coord(vec2[2]);
write_short(g_Lightning);
write_byte(1);
write_byte(5);
write_byte(2);
write_byte(20);
write_byte(30);
write_byte(200);
write_byte(200);
write_byte(200);
write_byte(200);
write_byte(200);
message_end();
message_begin( MSG_PVS, SVC_TEMPENTITY,vec2);
write_byte(TE_SPARKS);
write_coord(vec2[0]);
write_coord(vec2[1]);
write_coord(vec2[2]);
message_end();
message_begin(MSG_BROADCAST,SVC_TEMPENTITY,vec2);
write_byte(TE_SMOKE);
write_coord(vec2[0]);
write_coord(vec2[1]);
write_coord(vec2[2]);
write_short(g_Smoke);
write_byte(10);
write_byte(10)
message_end();
}
public set_model(id)
{
g_has_ak47[id] = true
}
public event_CurWeapon(id)
{
new weapid = read_data(2)
if(!is_user_alive(id))
return;
if(g_has_ak47[id] && weapid == CSW_AK47)
{
entity_set_string(id, EV_SZ_viewmodel, v_ak47)
entity_set_string(id, EV_SZ_weaponmodel, p_ak47)
}
}
Código:
#include <amxmodx>
#include <engine>
#include <zombieplague>
#include <hamsandwich>
#define PLUGIN "[ZP] Plugin: Switch Xm1014 Model"
#define VERSION "2.5"
#define AUTHOR "Beuller/ Edit By Slayer. | Dexter"
#define is_valid_player(%1) (1 <= %1 <= 32)
new v_xm1014[]="models/v_xm1014.mdl"
new const p_xm1014[] = "models/p_xm1014.mdl"
new bool:g_has_xm1014[33]
new g_Smoke,g_Lightning
new const sound_thunder[] = "ambience/thunder_clap.wav"
new cvar_dmgmultiplier
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
cvar_dmgmultiplier = register_cvar("zp_thunderdmg_xm1014", "1.5")
register_event("HLTV", "event_round_start", "a", "1=0", "2=0")
register_event("DeathMsg", "DeathMsg", "a")
RegisterHam(Ham_Spawn, "player", "ham_PlayerSpawn_Post", 1)
RegisterHam(Ham_Killed, "player", "fw_PlayerKilled")
RegisterHam(Ham_TakeDamage, "player", "fwHamTakeDamage")
register_event("CurWeapon", "event_CurWeapon", "be", "1=1")
}
public fwHamTakeDamage(victim, inflictor, attacker, Float:damage)
{
if ( is_valid_player( attacker ) && get_user_weapon(attacker) == CSW_XM1014 && g_has_xm1014[attacker] )
{
SetHamParamFloat(4, damage * get_pcvar_float( cvar_dmgmultiplier ) )
}
}
public plugin_precache()
{
precache_model(v_xm1014)
precache_model(p_xm1014)
precache_sound(sound_thunder)
g_Lightning = precache_model("sprites/lgtning.spr");
g_Smoke = precache_model("sprites/steam1.spr");
}
public client_connect(id)
{
g_has_xm1014[id] = false
}
public client_disconnect(id)
{
g_has_xm1014[id] = false
}
public zp_user_infected_post(infected, infector)
{
if (g_has_xm1014[infected])
{
g_has_xm1014[infected] = false
}
}
public fw_PlayerKilled(victim, attacker, shouldgib)
{
g_has_xm1014[victim] = false
}
public ham_PlayerSpawn_Post(id)
{
g_has_xm1014[id] = false
return PLUGIN_CONTINUE
}
public event_round_start()
{
for (new i = 1; i <= 32; i++)
{
g_has_xm1014[i] = false
}
}
public DeathMsg()
{
new Killer = read_data(1) // Assassin
new vOrigin[3],coord[3];
new victim = read_data(2);
get_user_origin(victim,vOrigin);
vOrigin[2] -= 26
coord[0] = vOrigin[0] + 150;
coord[1] = vOrigin[1] + 150;
coord[2] = vOrigin[2] + 800;
if(get_user_weapon(Killer) == CSW_XM1014) // If use the xm1014 weapon
{
create_thunder(coord,vOrigin);
emit_sound(victim,CHAN_ITEM, sound_thunder, 1.0, ATTN_NORM, 0, PITCH_NORM);
emit_sound(Killer,CHAN_ITEM, sound_thunder, 1.0, ATTN_NORM, 0, PITCH_NORM);
set_model(Killer)
}
}
create_thunder(vec1[3],vec2[3])
{
message_begin(MSG_BROADCAST,SVC_TEMPENTITY);
write_byte(0);
write_coord(vec1[0]);
write_coord(vec1[1]);
write_coord(vec1[2]);
write_coord(vec2[0]);
write_coord(vec2[1]);
write_coord(vec2[2]);
write_short(g_Lightning);
write_byte(1);
write_byte(5);
write_byte(2);
write_byte(20);
write_byte(30);
write_byte(200);
write_byte(200);
write_byte(200);
write_byte(200);
write_byte(200);
message_end();
message_begin( MSG_PVS, SVC_TEMPENTITY,vec2);
write_byte(TE_SPARKS);
write_coord(vec2[0]);
write_coord(vec2[1]);
write_coord(vec2[2]);
message_end();
message_begin(MSG_BROADCAST,SVC_TEMPENTITY,vec2);
write_byte(TE_SMOKE);
write_coord(vec2[0]);
write_coord(vec2[1]);
write_coord(vec2[2]);
write_short(g_Smoke);
write_byte(10);
write_byte(10)
message_end();
}
public set_model(id)
{
g_has_xm1014[id] = true
}
public event_CurWeapon(id)
{
new weapid = read_data(2)
if(!is_user_alive(id))
return;
if(g_has_xm1014[id] && weapid == CSW_XM1014)
{
entity_set_string(id, EV_SZ_viewmodel, v_xm1014)
entity_set_string(id, EV_SZ_weaponmodel, p_xm1014)
}
}
Código:
#include <amxmodx>
#include <engine>
#include <zombieplague>
#include <hamsandwich>
#define PLUGIN "[ZP] Plugin: Switch Mp5 Model"
#define VERSION "2.5"
#define AUTHOR "Beuller/ Edit By Slayer. | Dexter"
#define is_valid_player(%1) (1 <= %1 <= 32)
new v_mp5[]="models/v_mp5.mdl"
new const p_mp5[] = "models/p_mp5.mdl"
new bool:g_has_mp5[33]
new g_Smoke,g_Lightning
new const sound_thunder[] = "ambience/thunder_clap.wav"
new cvar_dmgmultiplier
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
cvar_dmgmultiplier = register_cvar("zp_thunderdmg_mp5", "1.5")
register_event("HLTV", "event_round_start", "a", "1=0", "2=0")
register_event("DeathMsg", "DeathMsg", "a")
RegisterHam(Ham_Spawn, "player", "ham_PlayerSpawn_Post", 1)
RegisterHam(Ham_Killed, "player", "fw_PlayerKilled")
RegisterHam(Ham_TakeDamage, "player", "fwHamTakeDamage")
register_event("CurWeapon", "event_CurWeapon", "be", "1=1")
}
public fwHamTakeDamage(victim, inflictor, attacker, Float:damage)
{
if ( is_valid_player( attacker ) && get_user_weapon(attacker) == CSW_MP5NAVY && g_has_mp5[attacker] )
{
SetHamParamFloat(4, damage * get_pcvar_float( cvar_dmgmultiplier ) )
}
}
public plugin_precache()
{
precache_model(v_mp5)
precache_model(p_mp5)
precache_sound(sound_thunder)
g_Lightning = precache_model("sprites/lgtning.spr");
g_Smoke = precache_model("sprites/steam1.spr");
}
public client_connect(id)
{
g_has_mp5[id] = false
}
public client_disconnect(id)
{
g_has_mp5[id] = false
}
public zp_user_infected_post(infected, infector)
{
if (g_has_mp5[infected])
{
g_has_mp5[infected] = false
}
}
public fw_PlayerKilled(victim, attacker, shouldgib)
{
g_has_mp5[victim] = false
}
public ham_PlayerSpawn_Post(id)
{
g_has_mp5[id] = false
return PLUGIN_CONTINUE
}
public event_round_start()
{
for (new i = 1; i <= 32; i++)
{
g_has_mp5[i] = false
}
}
public DeathMsg()
{
new Killer = read_data(1) // Assassin
new vOrigin[3],coord[3];
new victim = read_data(2);
get_user_origin(victim,vOrigin);
vOrigin[2] -= 26
coord[0] = vOrigin[0] + 150;
coord[1] = vOrigin[1] + 150;
coord[2] = vOrigin[2] + 800;
if(get_user_weapon(Killer) == CSW_MP5NAVY) // If use the mp5 weapon
{
create_thunder(coord,vOrigin);
emit_sound(victim,CHAN_ITEM, sound_thunder, 1.0, ATTN_NORM, 0, PITCH_NORM);
emit_sound(Killer,CHAN_ITEM, sound_thunder, 1.0, ATTN_NORM, 0, PITCH_NORM);
set_model(Killer)
}
}
create_thunder(vec1[3],vec2[3])
{
message_begin(MSG_BROADCAST,SVC_TEMPENTITY);
write_byte(0);
write_coord(vec1[0]);
write_coord(vec1[1]);
write_coord(vec1[2]);
write_coord(vec2[0]);
write_coord(vec2[1]);
write_coord(vec2[2]);
write_short(g_Lightning);
write_byte(1);
write_byte(5);
write_byte(2);
write_byte(20);
write_byte(30);
write_byte(200);
write_byte(200);
write_byte(200);
write_byte(200);
write_byte(200);
message_end();
message_begin( MSG_PVS, SVC_TEMPENTITY,vec2);
write_byte(TE_SPARKS);
write_coord(vec2[0]);
write_coord(vec2[1]);
write_coord(vec2[2]);
message_end();
message_begin(MSG_BROADCAST,SVC_TEMPENTITY,vec2);
write_byte(TE_SMOKE);
write_coord(vec2[0]);
write_coord(vec2[1]);
write_coord(vec2[2]);
write_short(g_Smoke);
write_byte(10);
write_byte(10)
message_end();
}
public set_model(id)
{
g_has_mp5[id] = true
}
public event_CurWeapon(id)
{
new weapid = read_data(2)
if(!is_user_alive(id))
return;
if(g_has_mp5[id] && weapid == CSW_MP5NAVY)
{
entity_set_string(id, EV_SZ_viewmodel, v_mp5)
entity_set_string(id, EV_SZ_weaponmodel, p_mp5)
}
}
Código:
#include <amxmodx>
#include <engine>
#include <zombieplague>
#include <hamsandwich>
#define PLUGIN "[ZP] Plugin: Switch Deagle Model"
#define VERSION "2.5"
#define AUTHOR "Beuller/ Edit By Slayer. | Dexter"
#define is_valid_player(%1) (1 <= %1 <= 32)
new v_deagle[]="models/v_deagle.mdl"
new const p_deagle[] = "models/p_deagle.mdl"
new bool:g_has_deagle[33]
new g_Smoke,g_Lightning
new const sound_thunder[] = "ambience/thunder_clap.wav"
new cvar_dmgmultiplier
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
cvar_dmgmultiplier = register_cvar("zp_thunderdmg_deagle", "1.5")
register_event("HLTV", "event_round_start", "a", "1=0", "2=0")
register_event("DeathMsg", "DeathMsg", "a")
RegisterHam(Ham_Spawn, "player", "ham_PlayerSpawn_Post", 1)
RegisterHam(Ham_Killed, "player", "fw_PlayerKilled")
RegisterHam(Ham_TakeDamage, "player", "fwHamTakeDamage")
register_event("CurWeapon", "event_CurWeapon", "be", "1=1")
}
public fwHamTakeDamage(victim, inflictor, attacker, Float:damage)
{
if ( is_valid_player( attacker ) && get_user_weapon(attacker) == CSW_DEAGLE && g_has_deagle[attacker] )
{
SetHamParamFloat(4, damage * get_pcvar_float( cvar_dmgmultiplier ) )
}
}
public plugin_precache()
{
precache_model(v_deagle)
precache_model(p_deagle)
precache_sound(sound_thunder)
g_Lightning = precache_model("sprites/lgtning.spr");
g_Smoke = precache_model("sprites/steam1.spr");
}
public client_connect(id)
{
g_has_deagle[id] = false
}
public client_disconnect(id)
{
g_has_deagle[id] = false
}
public zp_user_infected_post(infected, infector)
{
if (g_has_deagle[infected])
{
g_has_deagle[infected] = false
}
}
public fw_PlayerKilled(victim, attacker, shouldgib)
{
g_has_deagle[victim] = false
}
public ham_PlayerSpawn_Post(id)
{
g_has_deagle[id] = false
return PLUGIN_CONTINUE
}
public event_round_start()
{
for (new i = 1; i <= 32; i++)
{
g_has_deagle[i] = false
}
}
public DeathMsg()
{
new Killer = read_data(1) // Assassin
new vOrigin[3],coord[3];
new victim = read_data(2);
get_user_origin(victim,vOrigin);
vOrigin[2] -= 26
coord[0] = vOrigin[0] + 150;
coord[1] = vOrigin[1] + 150;
coord[2] = vOrigin[2] + 800;
if(get_user_weapon(Killer) == CSW_DEAGLE) // If use the deagle weapon
{
create_thunder(coord,vOrigin);
emit_sound(victim,CHAN_ITEM, sound_thunder, 1.0, ATTN_NORM, 0, PITCH_NORM);
emit_sound(Killer,CHAN_ITEM, sound_thunder, 1.0, ATTN_NORM, 0, PITCH_NORM);
set_model(Killer)
}
}
create_thunder(vec1[3],vec2[3])
{
message_begin(MSG_BROADCAST,SVC_TEMPENTITY);
write_byte(0);
write_coord(vec1[0]);
write_coord(vec1[1]);
write_coord(vec1[2]);
write_coord(vec2[0]);
write_coord(vec2[1]);
write_coord(vec2[2]);
write_short(g_Lightning);
write_byte(1);
write_byte(5);
write_byte(2);
write_byte(20);
write_byte(30);
write_byte(200);
write_byte(200);
write_byte(200);
write_byte(200);
write_byte(200);
message_end();
message_begin( MSG_PVS, SVC_TEMPENTITY,vec2);
write_byte(TE_SPARKS);
write_coord(vec2[0]);
write_coord(vec2[1]);
write_coord(vec2[2]);
message_end();
message_begin(MSG_BROADCAST,SVC_TEMPENTITY,vec2);
write_byte(TE_SMOKE);
write_coord(vec2[0]);
write_coord(vec2[1]);
write_coord(vec2[2]);
write_short(g_Smoke);
write_byte(10);
write_byte(10)
message_end();
}
public set_model(id)
{
g_has_deagle[id] = true
}
public event_CurWeapon(id)
{
new weapid = read_data(2)
if(!is_user_alive(id))
return;
if(g_has_deagle[id] && weapid == CSW_DEAGLE)
{
entity_set_string(id, EV_SZ_viewmodel, v_deagle)
entity_set_string(id, EV_SZ_weaponmodel, p_deagle)
}
}