Zplague
Gostaria de reagir a esta mensagem? Crie uma conta em poucos cliques ou inicie sessão para continuar.

Zplague Entrar

Seu portal de Zombie Plague no Brasil


description[ PLUGIN ] Boomer & Crawler (Sem Buga Assassin | Nemesis) Empty[ PLUGIN ] Boomer & Crawler (Sem Buga Assassin | Nemesis)

more_horiz
Crawler:

(Te Vira Na Models)

Código:

#include <amxmodx>
#include <fakemeta>
#include <hamsandwich>
#include <zombie_plague_advance>

new const zclass_name[] = "Crawl Zombie"
new const zclass_info[] = "Full-Time Duck"
new const zclass_model[] = "zombie_scrawler"
new const zclass_clawmodel[] = "v_knife_zombie.mdl"
const zclass_health = 957
const zclass_speed = 975
const Float:zclass_gravity = 0.5
const Float:zclass_knockback = 1.15

new g_zcrawl

new g_ducked[33]

new g_maxplayers, g_maxspeed, g_msgSayText

public plugin_init()
{
 register_event("HLTV", "event_round_start", "a", "1=0", "2=0")
 register_logevent("logevent_round_end", 2, "1=Round_End")
 
register_forward(FM_PlayerPreThink, "fw_PlayerPreThink")
 RegisterHam(Ham_Killed, "player", "fw_PlayerKilled")
 
g_maxplayers = get_maxplayers()
 g_maxspeed = get_cvar_pointer("sv_maxspeed")
 
g_msgSayText = get_user_msgid("SayText")
}

public plugin_precache()
{
 register_plugin("[ZP] Zombie Class: Crawler", "1.4", "93()|29!/<")
 
g_zcrawl = zp_register_zombie_class(zclass_name, zclass_info, zclass_model, zclass_clawmodel, zclass_health, zclass_speed, zclass_gravity, zclass_knockback)
}

public zp_user_infected_post(id,infector, nemesis)
{
 if (nemesis)
 {
 unduck_player(id)
 
g_ducked[id] = false
 
return;
 }
 
new assassin
 
if (assassin)
 {
 unduck_player(id)
 
g_ducked[id] = false
 
return;
 }
 
if (zp_get_user_zombie_class(id) != g_zcrawl)
 {
 g_ducked[id] = false
 
return;
 }
 
client_cmd(id, "cl_forwardspeed %d; cl_backspeed %d; cl_sidespeed %d", Float:zclass_speed, Float:zclass_speed, Float:zclass_speed)
 
zp_colored_print(id, "^x04[ZP]^x03 Voce Esta Usando o Zombie Crawler")
 
g_ducked[id] = true
}

public zp_user_humanized_post(id, survivor)
{
 unduck_player(id)
 
g_ducked[id] = false
}

public client_connect(id)
 g_ducked[id] = false

public client_disconnect(id)

 unduck_player(id)

public fw_PlayerPreThink(id)
{
 if (zp_get_user_nemesis(id) || zp_get_user_assassin(id) || !zp_get_user_zombie(id) || is_user_bot(id)
 || zp_get_user_zombie_class(id) != g_zcrawl || !is_user_alive(id))
 return;
 
set_pev(id, pev_bInDuck, 1)
 client_cmd(id, "+duck")
 
g_ducked[id] = true
}

public fw_PlayerKilled(id)
{
 unduck_player(id)
 
g_ducked[id] = false
}

public logevent_round_end()
{
 static id
 
for (id = 1; id <= g_maxplayers; id++)
 {
 if (zp_get_user_nemesis(id) || zp_get_user_assassin(id) || !zp_get_user_zombie(id) || zp_get_user_zombie_class(id) != g_zcrawl || !is_user_alive(id))
 g_ducked[id] = false
 else
 g_ducked[id] = true
 }
}

public event_round_start()
{
 if (get_pcvar_float(g_maxspeed) < Float:zclass_speed)
 server_cmd("sv_maxspeed 99999")
 
static id
 
for (id = 1; id <= g_maxplayers; id++)
 {
 unduck_player(id)
 
g_ducked[id] = false
 }
}

public unduck_player(id)
{
 if (!g_ducked[id] || is_user_bot(id))
 return;
 
set_pev(id, pev_bInDuck, 0)
 client_cmd(id, "-duck")
 client_cmd(id, "-duck")
}

zp_colored_print(target, const message[], any:...)
{
 static buffer[512], i, argscount
 argscount = numargs()
 
if (!target)
 {
 static player
 for (player = 1; player <= g_maxplayers; player++)
 {
 if (!is_user_connected(player))
 continue;
 
static changed[5], changedcount
 changedcount = 0
 
for (i = 2; i < argscount; i++)
 {
 if (getarg(i) == LANG_PLAYER)
 {
 setarg(i, 0, player)
 changed[changedcount] = i
 changedcount++
 }
 }
 
vformat(buffer, charsmax(buffer), message, 3)
 
message_begin(MSG_ONE_UNRELIABLE, g_msgSayText, _, player)
 write_byte(player)
 write_string(buffer)
 message_end()
 
for (i = 0; i < changedcount; i++)
 setarg(changed[i], 0, LANG_PLAYER)
 }
 }
 else
 {
 vformat(buffer, charsmax(buffer), message, 3)
 
message_begin(MSG_ONE, g_msgSayText, _, target)
 write_byte(target)
 write_string(buffer)
 message_end()
 }
}
Boomer

(Te Vira Na Models | Sounds)

Código:

#include <amxmodx>
#include <engine>
#include <zombie_plague_advance>

new const zclass_name[ ] = "Boomer"
new const zclass_info[ ] = "- bind [key] boomer_vomit"
new const zclass_model[ ] = "zombie_boomer"
new const zclass_clawmodel[ ] = "v_knife_boomer.mdl"
const zclass_health = 500
const zclass_speed = 200
const Float:zclass_gravity = 1.0
const Float:zclass_knockback = 0.5

new const vomit_sprite[ ] = "sprites/poison.spr"
new const vomit_sounds[ 3 ][ ] =
{ "zombie_plague/male_boomer_vomit_01.wav",
"zombie_plague/male_boomer_vomit_03.wav",
"zombie_plague/male_boomer_vomit_04.wav" }

new const explode_sounds[ 3 ][ ] =
{ "zombie_plague/explo_medium_09.wav",
"zombie_plague/explo_medium_10.wav",
"zombie_plague/explo_medium_14.wav" }

new g_zclass_boomer, g_msgid_ScreenFade, g_iMaxPlayers, vomit, cvar_vomitdist, cvar_explodedist, cvar_wakeuptime, cvar_vomitcooldown, cvar_victimrender, cvar_inuse, cvar_boomer_reward

new Float:g_iLastVomit[ 33 ]

new bool:g_iHateSpam[ 33 ]

public plugin_init( )
{
 register_plugin( "[ZP] Zombie Class: Boomer", "1.2 BETA", "Excalibur.007" )
 
register_clcmd( "boomer_vomit", "clcmd_vomit" )
 
register_event( "DeathMsg", "event_DeathMsg", "a" )
 
cvar_vomitdist = register_cvar( "zp_boomer_vomit_dist", "300" )
 cvar_explodedist = register_cvar( "zp_boomer_explode_dist", "300" )
 cvar_wakeuptime = register_cvar( "zp_boomer_blind_time", "4" )
 cvar_vomitcooldown = register_cvar( "zp_boomer_vomit_cooldown", "10.0" )
 cvar_victimrender = register_cvar( "zp_boomer_victim_render", "1" )
 cvar_inuse = register_cvar( "zp_boomer_in_use_bind", "1" )
 cvar_boomer_reward = register_cvar( "zp_boomer_ap_reward", "2" )
 
g_msgid_ScreenFade = get_user_msgid( "ScreenFade" )
 
g_iMaxPlayers = get_maxplayers( )
}

public plugin_precache( )
{
 g_zclass_boomer = zp_register_zombie_class( zclass_name, zclass_info, zclass_model, zclass_clawmodel, zclass_health, zclass_speed, zclass_gravity, zclass_knockback )
 
vomit = precache_model( vomit_sprite )
 
for( new i = 0; i < sizeof vomit_sounds; i ++ )
 precache_sound( vomit_sounds[ i ] )
 
for( new i = 0; i < sizeof explode_sounds; i ++ )
 precache_sound( explode_sounds[ i ] )
}

public zp_user_infected_post( id, infector )
{
 if( zp_get_user_zombie_class( id ) == g_zclass_boomer && !zp_get_user_nemesis( id ) || !zp_get_user_assassin( id ) )
 {
 if( get_pcvar_num( cvar_inuse ) )
 {
 client_print( id, print_chat, "[ZP] Pressione E Para Vomita" )
 }
 }
}

public client_PreThink( id )
{
 if( !is_user_alive( id ) || !is_user_connected( id ) || !zp_get_user_zombie( id ) || zp_get_user_nemesis( id ) || zp_get_user_assassin( id ) || zp_get_user_zombie_class( id ) != g_zclass_boomer || !get_pcvar_num( cvar_inuse ) || g_iHateSpam[ id ] )
 return PLUGIN_HANDLED
 
if( ( get_user_button( id ) & IN_USE ) )
 {
 g_iHateSpam[ id ] = true
 clcmd_vomit( id )
 set_task( 1.0, "StopSpam_XD", id )
 }
 return PLUGIN_HANDLED
}

public clcmd_vomit( id )
{
 if( !is_user_alive( id ) || !is_user_connected( id ) || !zp_get_user_zombie( id ) || zp_get_user_nemesis( id ) || zp_get_user_assassin( id ) || zp_get_user_zombie_class( id ) != g_zclass_boomer )
 return PLUGIN_HANDLED
 
if( get_gametime( ) - g_iLastVomit[ id ] < get_pcvar_float( cvar_vomitcooldown ) )
 {
 client_print( id, print_chat, "[ZP] Voce precisa esperar %.f0 sec. para vomitar novamente!", get_pcvar_float( cvar_vomitcooldown ) - ( get_gametime( ) - g_iLastVomit[ id ] ) )
 return PLUGIN_HANDLED
 }
 
g_iLastVomit[ id ] = get_gametime( )
 
new target, body, dist = get_pcvar_num( cvar_vomitdist )
 get_user_aiming( id, target, body, dist )
 
new vec[ 3 ], aimvec[ 3 ], velocityvec[ 3 ]
 new length
 
get_user_origin( id, vec )
 get_user_origin( id, aimvec, 2 )
 
velocityvec[ 0 ] = aimvec[ 0 ] - vec[ 0 ]
 velocityvec[ 1 ] = aimvec[ 1 ] - vec[ 1 ]
 velocityvec[ 2 ] = aimvec[ 2 ] - vec[ 2 ]
 length = sqrt( velocityvec[ 0 ] * velocityvec[ 0 ] + velocityvec[ 1 ] * velocityvec[ 1 ] + velocityvec[ 2 ] * velocityvec[ 2 ] )
 velocityvec[ 0 ] = velocityvec[ 0 ] * 10 / length
 velocityvec[ 1 ] = velocityvec[ 1 ] * 10 / length
 velocityvec[ 2 ] = velocityvec[ 2 ] * 10 / length
 
new args[ 8 ]
 args[ 0 ] = vec[ 0 ]
 args[ 1 ] = vec[ 1 ]
 args[ 2 ] = vec[ 2 ]
 args[ 3 ] = velocityvec[ 0 ]
 args[ 4 ] = velocityvec[ 1 ]
 args[ 5 ] = velocityvec[ 2 ]
 
set_task( 0.1, "create_sprite", 0, args, 8, "a", 3 )
 
emit_sound( id, CHAN_STREAM, vomit_sounds[ random_num( 0, 2 ) ], 1.0, ATTN_NORM, 0, PITCH_HIGH )
 
if( is_valid_ent( target ) && is_user_alive( target ) && is_user_connected( target ) && !zp_get_user_zombie( target ) && get_entity_distance( id, target ) <= dist )
 {
 message_begin( MSG_ONE_UNRELIABLE, g_msgid_ScreenFade, _, target )
 write_short( get_pcvar_num( cvar_wakeuptime ) )
 write_short( get_pcvar_num( cvar_wakeuptime ) )
 write_short( 0x0004 )
 write_byte( 79 )
 write_byte( 180 )
 write_byte( 61 )
 write_byte( 255 )
 message_end( )
 
if( get_pcvar_num( cvar_victimrender ) )
 {
 set_rendering( target, kRenderFxGlowShell, 79, 180, 61, kRenderNormal, 25 )
}
 set_task( get_pcvar_float( cvar_wakeuptime ), "victim_wakeup", target )
 
if( !get_pcvar_num( cvar_boomer_reward ) )
 return PLUGIN_HANDLED
 
zp_set_user_ammo_packs( id, zp_get_user_ammo_packs( id ) + get_pcvar_num( cvar_boomer_reward ) )
 }
 return PLUGIN_HANDLED
}

public create_sprite( args[ ] )
{
 message_begin( MSG_BROADCAST, SVC_TEMPENTITY )
 write_byte( 120 )
 write_coord( args[ 0 ] )
 write_coord( args[ 1 ] )
 write_coord( args[ 2 ] )
 write_coord( args[ 3 ] )
 write_coord( args[ 4 ] )
 write_coord( args[ 5 ] )
 write_short( vomit )
 write_byte( 8 )
 write_byte( 70 )
 write_byte( 100 )
 write_byte( 5 )
 message_end( )
 
return PLUGIN_CONTINUE
}

public victim_wakeup( id )
{
 if( !is_user_connected( id ) )
 return PLUGIN_HANDLED
 
message_begin( MSG_ONE_UNRELIABLE, g_msgid_ScreenFade, _, id )
 write_short( ( 1<<12 ) )
 write_short( 0 )
 write_short( 0x0000 )
 write_byte( 0 )
 write_byte( 0 )
 write_byte( 0 )
 write_byte( 255 )
 message_end( )
 
if( get_pcvar_num( cvar_victimrender ) )
 {
 set_rendering( id )
 }
 return PLUGIN_HANDLED
}

public StopSpam_XD( id )
{
 if( is_user_connected( id ) )
 {
g_iHateSpam[ id ] = false
 }
}
public event_DeathMsg( )
{
 new id = read_data( 2 )
 
if( !is_user_connected( id ) || !zp_get_user_zombie( id ) || zp_get_user_nemesis( id ) || zp_get_user_assassin( id ) || zp_get_user_zombie_class( id ) != g_zclass_boomer )
 return PLUGIN_HANDLED
 
emit_sound( id, CHAN_STREAM, explode_sounds[ random_num( 0, 2 ) ], 1.0, ATTN_NORM, 0, PITCH_HIGH )
 
for( new i = 1; i <= g_iMaxPlayers; i ++ )
 {
 if( !is_valid_ent( i ) || !is_user_alive( i ) || !is_user_connected( i ) || zp_get_user_zombie( i ) || get_entity_distance( id, i ) > get_pcvar_num( cvar_explodedist ) )
 return PLUGIN_HANDLED
 
message_begin( MSG_ONE_UNRELIABLE, g_msgid_ScreenFade, _, i )
 write_short( get_pcvar_num( cvar_wakeuptime ) )
 write_short( get_pcvar_num( cvar_wakeuptime ) )
 write_short( 0x0004 )
 write_byte( 79 )
 write_byte( 180 )
 write_byte( 61 )
 write_byte( 255 )
 message_end( )
 
if( get_pcvar_num( cvar_victimrender ) )
 {
 set_rendering( i, kRenderFxGlowShell, 79, 180, 61, kRenderNormal, 25 )
 }
 
set_task( get_pcvar_float( cvar_wakeuptime ), "victim_wakeup", i )
 
if( !get_pcvar_num( cvar_boomer_reward ) )
 return PLUGIN_HANDLED
 
zp_set_user_ammo_packs( id, zp_get_user_ammo_packs( id ) + ( get_pcvar_num( cvar_boomer_reward ) * i ) )
 }
 return PLUGIN_HANDLED
}

public sqrt( num )
{
 new div = num
 new result = 1
 while( div > result )
 {
 div = ( div + result ) / 2
 result = num / div
 }
 return div
}
Classes De ZM Editada Por : Dexter

description[ PLUGIN ] Boomer & Crawler (Sem Buga Assassin | Nemesis) EmptyRe: [ PLUGIN ] Boomer & Crawler (Sem Buga Assassin | Nemesis)

more_horiz
boa eu tinha um problema q o bommer bugava multijump vip acho tomara q isso tenha saido

description[ PLUGIN ] Boomer & Crawler (Sem Buga Assassin | Nemesis) EmptyRe: [ PLUGIN ] Boomer & Crawler (Sem Buga Assassin | Nemesis)

more_horiz
Soukito escreveu:
boa eu tinha um problema q o bommer bugava multijump vip acho tomara q isso tenha saido
eu testei, nao buga o pulo do vip

description[ PLUGIN ] Boomer & Crawler (Sem Buga Assassin | Nemesis) EmptyRe: [ PLUGIN ] Boomer & Crawler (Sem Buga Assassin | Nemesis)

more_horiz
privacy_tip Permissões neste sub-fórum
Não podes responder a tópicos
power_settings_newInicie sessão para responder