Zumbis Online
Últimos assuntos
» ADDONS GPEX (COPIA) EM BREVE!!!
por [Dk]Serial-Killer 5/12/2016, 12:09 pm

» [NPC] Teddy Terror Boss
por bruno2016 1/12/2016, 7:48 pm

» Sistema de Registro 1.1 e banco
por Biel-oGrande 20/11/2016, 10:25 am

» [NPC]LightZombie Boss
por devil-square 20/11/2016, 8:05 am

» Vendo /vencimento Privado!
por [Dk]Serial-Killer 19/11/2016, 1:32 pm

» Sistema de /Party
por Biel-oGrande 18/11/2016, 11:03 am

» P[c]T eGames uma revolução no Zombie IP -> 187.108.192.90:27022
por Biel-oGrande 17/11/2016, 8:50 pm

» Knife Skin Menu
por [Dk]Serial-Killer 16/11/2016, 9:46 am

» Banco automático. Nick/Password
por Biel-oGrande 14/11/2016, 11:21 am

» Pedido todos os addonsZM
por Biel-oGrande 7/11/2016, 2:05 pm

Frases filosóficas Zplague:
....
Os membros mais ativos da semana
[Dk]Serial-Killer
 
devil-square
 

Adsense

[ZP] Faca Congelante Para O Survivor

Ver o tópico anterior Ver o tópico seguinte Ir em baixo

[ZP] Faca Congelante Para O Survivor

Mensagem por Dexter em 27/8/2013, 12:15 pm

Ola Galera hoje eu trago a faca congelante pra o Survivor
Uma Demostração Dela:

Descrição:
Código:
-Faca congela os zombies por um tempo
-Apenas Para o Survivor
Configurações
Código:
#define KNIFE_V_MODEL    "models/v_frost_knife.mdl"
#define KNIFE_P_MODEL    "models/p_frost_knife.mdl"

#define KNIFE_SOUND_FROST    "warcraft3/impalehit.wav" //Som Ao Congela
#define KNIFE_SOUND_BREAK    "warcraft3/impalelaunch1.wav" //Som Ao Descongela

#define KNIFE_FROST_DURATION   4.0 //Tempo de Congelamento
#define KNIFE_FROST_DAMAGE   12.0//Damage Da Faca
#define KNIFE_FROST_VELOCITY   300.0//Velocidade
#define KNIFE_FROST_SPEED   350.0//Acelera
#define KNIFE_FROST_KNOCK_POWER 3.0//Impacto

Agradecimentos especiais Bos93 base para o código.

Download: zp_knife_surv.sma [7,93 Kb]

Creditos a Zombie Mod Ru

____________________________________________

http://cs-word.blogspot.com.br/ < Blog de Zombie 1.6 :)

CSWORD

Dexter
Humano
Humano

Nick : Dexter
Masculino Número de Mensagens : 909
'-'
Ammo Packs : 767
Honra : -6
Data de inscrição : 28/04/2013

Ver perfil do usuário http://steamcommunity.com/id/DexterMP/ http://tudo-para-seu-zm.blogspot.com.br/ sly.dexter

Voltar ao Topo Ir em baixo

Re: [ZP] Faca Congelante Para O Survivor

Mensagem por Convidad em 27/8/2013, 12:18 pm

Muito Legal cara.
Posta mais coisas ai!

Convidad
Convidado


Voltar ao Topo Ir em baixo

Re: [ZP] Faca Congelante Para O Survivor

Mensagem por 0VirusOn~~Infecter em 27/8/2013, 12:22 pm

Muito bom dexter vlw

0VirusOn~~Infecter
Humano
Humano

Masculino Número de Mensagens : 8
Ammo Packs : 1200
Honra : 1
Data de inscrição : 27/08/2013

Ver perfil do usuário

Voltar ao Topo Ir em baixo

Re: [ZP] Faca Congelante Para O Survivor

Mensagem por rotam em 27/8/2013, 1:03 pm

bug* Ela congela o nemesis/assassin

____________________________________________





BANCO+REGISTRO PERSONALIZADO   CLICK AQUI !!! :


VENDO BANCO+SISTEMA DE REGISTRO+BKADMIN -- TOTALMENTE SEM BUGS >>> PREÇO A COMBINAR
POSSUI SONS,ARQUIVO CFG, SALVA POR NFVAULT
ADD SKYPE SE TIVER INTERESSADO ( dougprado13 ) 
Não Disponibilizo de graça, adc pra pedir eu deleto e denuncio.




Ela é amiga da minha mulher, pois é, pois é, mais vive dando em cima de mim, enfim, enfim (8)

rotam
Parceiros
Parceiros

Nick : Rotam
Masculino Número de Mensagens : 1134
Re Loco
Ammo Packs : 1860
Honra : 36
Data de inscrição : 21/04/2012

Ver perfil do usuário dougprado13

Voltar ao Topo Ir em baixo

Re: [ZP] Faca Congelante Para O Survivor

Mensagem por [P]erfec[T] [S]cr[@]s[H] em 27/8/2013, 1:57 pm

rotam escreveu:bug* Ela congela o nemesis/assassin
Vê se agora ta sem bug.

Sma:
Código:
#include <  amxmodx >
#include <  hamsandwich >
#include <  fakemeta >
#include <  zombie_plague_advance >

#define PLUGIN_AUTHOR   "Bos93/ Shurik07kbr"  
#define PLUGIN_NAME      "[ ZP ] Surv Knife "
#define PLUGIN_VERSION   "1.0 - Private "

#define FFADE_IN               0x0000
#define FFADE_STAYOUT         0x0004
#define BREAK_GLASS            0x01
#define UNIT_SECOND            (1<<12)

#define MAX_CLIENTS            32

#define XTRA_OFS_WEAPON       4
#define m_pPlayer               41

#define KNIFE_V_MODEL         "models/v_frost_knife.mdl"
#define KNIFE_P_MODEL         "models/p_frost_knife.mdl"

#define KNIFE_SOUND_FROST      "warcraft3/impalehit.wav" //звук заморозки
#define KNIFE_SOUND_BREAK      "warcraft3/impalelaunch1.wav" //Звук отморозки

#define KNIFE_FROST_DURATION   4.0 //Время заморозки
#define KNIFE_FROST_DAMAGE   12.0//Урон ножа
#define KNIFE_FROST_VELOCITY   300.0//Гравитация
#define KNIFE_FROST_SPEED   350.0//Скорость
#define KNIFE_FROST_KNOCK_POWER 3.0//Отдача

enum
{
   SOUND_NULL,
   SOUND_DRAW,
   SOUND_MISS,
   SOUND_STAB,
   SOUND_HIT,
   SOUND_HIT1,
   SOUND_HIT2,
   SOUND_HITWALL,
   
   SOUND_END
}

enum
{
   KNIFE_ACTIVE,
   
   KNIFE_END
}

new const g_KNIFESounds[SOUND_END][] =
{
   "",
   "weapons/vox/axe_drawww.wav",
   "weapons/vox/axe_miss.wav",
   "weapons/vox/axe_stabb.wav",
   "weapons/vox/axe_hitwal.wav",
   "weapons/vox/axe_hit1.wav",
   "weapons/vox/axe_hit22.wav",
   "weapons/vox/axe_hitwal.wav"
}

new Ham:Ham_Player_ResetMaxSpeed = Ham_Item_PreFrame

new Trie: g_ReplacedSounds

new g_KnifeData [MAX_CLIENTS + 1][KNIFE_END]
new g_iFrozen [ MAX_CLIENTS + 1 ]
new g_glassSpr
new g_iMaxPlayers

public plugin_precache( )
{
   new i

   g_ReplacedSounds = TrieCreate()
   
   TrieSetCell(g_ReplacedSounds, "weapons/knife_deploy1.wav", SOUND_DRAW)
   TrieSetCell(g_ReplacedSounds, "weapons/knife_hit1.wav", SOUND_HIT)
   TrieSetCell(g_ReplacedSounds, "weapons/knife_hit2.wav", SOUND_HIT1)
   TrieSetCell(g_ReplacedSounds, "weapons/knife_hit3.wav", SOUND_HIT2)
   TrieSetCell(g_ReplacedSounds, "weapons/knife_hit4.wav", SOUND_HIT)
   TrieSetCell(g_ReplacedSounds, "weapons/knife_hitwall1.wav", SOUND_HITWALL)
   TrieSetCell(g_ReplacedSounds, "weapons/knife_slash1.wav", SOUND_MISS)
   TrieSetCell(g_ReplacedSounds, "weapons/knife_slash2.wav", SOUND_MISS)
   TrieSetCell(g_ReplacedSounds, "weapons/knife_stab.wav", SOUND_STAB)

   precache_model(KNIFE_V_MODEL); precache_model(KNIFE_P_MODEL)
   precache_sound(KNIFE_SOUND_FROST); precache_sound(KNIFE_SOUND_BREAK)
   
   g_glassSpr = engfunc(EngFunc_PrecacheModel, "models/glassgibs.mdl")

   for (i = SOUND_DRAW; i < SOUND_END; i++)
   {
      precache_sound(g_KNIFESounds[i])
   }
}

public plugin_init( )
{
   register_plugin
   (
      PLUGIN_NAME ,
      PLUGIN_VERSION ,
      PLUGIN_AUTHOR
   );

   RegisterHam( Ham_Item_Deploy, "weapon_knife", "Knife_Deploy_Post", 1)
   RegisterHam( Ham_Player_PreThink, "player", "Player_PreThink")
   RegisterHam( Ham_TraceAttack,   "player",       "Knife_TraceAttack" );
   
   register_event( "DeathMsg", "EV_DeathMsg", "a" );
   
   register_forward(FM_EmitSound, "EmitSound")

   g_iMaxPlayers = get_maxplayers( );
}

public plugin_end()
{
   TrieDestroy(g_ReplacedSounds)
}

public client_disconnect(iPlayer)
{
   arrayset(g_KnifeData[iPlayer], 0, KNIFE_END)
}

public zp_user_infected_post(iPlayer, Infector)
{
   arrayset(g_KnifeData[iPlayer], 0, KNIFE_END)
}

public zp_user_humanized_post( iPlayer )
{
   if( zp_get_user_survivor( iPlayer ) )
   {
      g_KnifeData[iPlayer][KNIFE_ACTIVE] = true
   }
   else arrayset(g_KnifeData[iPlayer], 0, KNIFE_END)
}

public EV_DeathMsg( )
{
   static pevVictim;
   pevVictim = read_data( 2 )
   
   if( !is_user_connected( pevVictim ) )
      return
      
   arrayset(g_KnifeData[pevVictim], 0, KNIFE_END)   
}

public Knife_TraceAttack(const iEntity, const iAttacker, const Float: flDamage)
{
   if( !( 1 <= iAttacker <= g_iMaxPlayers ) )
      return;
      
   if( !is_user_alive( iAttacker )  )
      return;
      
   if( zp_get_user_zombie( iAttacker ) )
      return;

   if ( !g_KnifeData[iAttacker][KNIFE_ACTIVE])  return
   
   if( get_user_weapon( iAttacker ) != CSW_KNIFE )
      return
   
   SetHamParamFloat( 3 ,  flDamage * KNIFE_FROST_DAMAGE );
   
   frost_process( iEntity )
}

public Knife_Deploy_Post(iItem)
{
   new iPlayer
   
   if (CheckItem(iItem, iPlayer))
   {
      if ( zp_get_user_zombie ( iPlayer )   ) return HAM_IGNORED
      
      set_pev(iPlayer, pev_viewmodel2, KNIFE_V_MODEL)
      set_pev(iPlayer, pev_weaponmodel2, KNIFE_P_MODEL)
   }
   
   return HAM_IGNORED
}

public EmitSound(iPlayer, iChannel, szSample[], Float: flVolume, Float: flAttn, iFlag, iPitch)
{
   if (is_user_alive(iPlayer) && g_KnifeData[iPlayer][KNIFE_ACTIVE] )
   {
      new iSoundType
      
      TrieGetCell(g_ReplacedSounds, szSample, iSoundType)
      
      if (iSoundType != SOUND_NULL)
      {
         emit_sound(iPlayer, iChannel, g_KNIFESounds[iSoundType], flVolume, flAttn, iFlag, iPitch)
         return FMRES_SUPERCEDE
      }
   }
   
   return FMRES_IGNORED
}

public frost_process(pevVictim)
{
   fm_set_rendering(pevVictim, kRenderFxGlowShell, 0, 100, 200, kRenderNormal, 50)

   emit_sound(pevVictim, CHAN_BODY, KNIFE_SOUND_FROST, 1.0, ATTN_NORM, 0, PITCH_NORM)

   message_begin(MSG_ONE, get_user_msgid("ScreenFade"), _, pevVictim)
   write_short(0)
   write_short(0)
   write_short(FFADE_STAYOUT)
   write_byte(0)
   write_byte(50)
   write_byte(200)
   write_byte(100)
   message_end()

   g_iFrozen[pevVictim] = true

   set_task(KNIFE_FROST_DURATION, "remove_freeze", pevVictim)
   
}

public remove_freeze(pevVictim)
{
   if(!is_user_alive(pevVictim) || !g_iFrozen[pevVictim])
      return;

   g_iFrozen[pevVictim] = false

   fm_set_rendering(pevVictim)

   ExecuteHamB ( Ham_Player_ResetMaxSpeed, pevVictim)

   message_begin(MSG_ONE, get_user_msgid("ScreenFade"), _, pevVictim)
   write_short(UNIT_SECOND)
   write_short(0)
   write_short(FFADE_IN)
   write_byte(0)
   write_byte(50)
   write_byte(200)
   write_byte(100)
   message_end()

   emit_sound(pevVictim, CHAN_BODY, KNIFE_SOUND_BREAK, 1.0, ATTN_NORM, 0, PITCH_NORM)

   static origin2[3]
   get_user_origin(pevVictim, origin2)

   message_begin(MSG_PVS, SVC_TEMPENTITY, origin2)
   write_byte(TE_BREAKMODEL)
   write_coord(origin2[0])
   write_coord(origin2[1])
   write_coord(origin2[2] + 24)
   write_coord(16)
   write_coord(16)
   write_coord(16)
   write_coord(random_num(-50, 50))
   write_coord(random_num(-50, 50))
   write_coord(25)
   write_byte(10)
   write_short(g_glassSpr)
   write_byte(10)
   write_byte(25)
   write_byte(BREAK_GLASS)
   message_end()
}

public Player_PreThink(id)
{
   if( !is_user_alive(id) )
      return HAM_IGNORED
   
   if(zp_get_user_nemesis(id))
   return HAM_IGNORED
   
   if(zp_get_user_assassin(id))
   return HAM_IGNORED

   if(g_iFrozen[id])
   {
      set_pev(id, pev_velocity, Float:{ 0.0, 0.0, 0.0 })
      set_pev(id, pev_maxspeed, 1.0)
   }
   
   if( g_KnifeData[id][KNIFE_ACTIVE]  )
   {
      static iFlags;
      static iWaterlvl;
      static Float: iVelocity[ 3 ]
      
      iFlags = pev( id, pev_flags );
      iWaterlvl = pev( id, pev_waterlevel );
      
      if( get_user_weapon( id ) != CSW_KNIFE )
      {
         return HAM_IGNORED ;
      }
      
      if ( ( ~iFlags & FL_ONGROUND ) || iFlags & FL_WATERJUMP || iWaterlvl > 1 )
      {
         return HAM_IGNORED;
      }
      
      if( ( pev( id, pev_button ) & IN_JUMP ) && !( pev( id, pev_oldbuttons ) & IN_JUMP ) )
      {
         pev( id, pev_velocity, iVelocity )

         iVelocity[ 2 ] += KNIFE_FROST_VELOCITY ;      

         set_pev( id, pev_velocity, iVelocity )
         set_pev( id, pev_gaitsequence, 6 )
      }
      set_pev( id, pev_maxspeed, KNIFE_FROST_SPEED )
   }

   return HAM_IGNORED
}

CheckItem(const iItem, &iPlayer)
{
   if (pev_valid(iItem) == 2)
   {   
      iPlayer = get_pdata_cbase(iItem, m_pPlayer, XTRA_OFS_WEAPON)
      
      if ( g_KnifeData[iPlayer][KNIFE_ACTIVE] )
      {
         return 1
      }
   }
   return 0
}

stock fm_set_rendering(entity, fx = kRenderFxNone, r = 255, g = 255, b = 255, render = kRenderNormal, amount = 16)
{
   static Float:color[3]
   color[0] = float(r)
   color[1] = float(g)
   color[2] = float(b)
   
   set_pev(entity, pev_renderfx, fx)
   set_pev(entity, pev_rendercolor, color)
   set_pev(entity, pev_rendermode, render)
   set_pev(entity, pev_renderamt, float(amount))
}

____________________________________________


Dicas Para Ser um Bom Scripter:
* Pense no Plugin que ira criar (Seja Inovador)
* Crie um código SMA imaginário na cabeça de como vai ser o plugin
* Passe o Codigo mental para o AMX Studio
* Compile e Teste
* Corrija Todos os Bugs do Plugin (Caso tiver um)
* Poste o Plugin ;)

** Seguindo as Dicas você estara no Padrão [P]erfec[T] [S]cr[@]s[H] **  
Zplague24 Zplague20Zplague12 

[P]erfec[T] [S]cr[@]s[H]
Scripter
Scripter

Masculino Número de Mensagens : 537
Jogador FODA Perfect Scrash entrou na zplague
Ammo Packs : 1629
Honra : 173
Data de inscrição : 04/04/2013

Ver perfil do usuário http://www.steamcommunity.com/id/perfectscrash perfect.scrash

Voltar ao Topo Ir em baixo

Re: [ZP] Faca Congelante Para O Survivor

Mensagem por rotam em 28/8/2013, 4:55 pm

[P]erfec[T] [S]cr[@]s[H] escreveu:
rotam escreveu:bug* Ela congela o nemesis/assassin
Vê se agora ta sem bug.

Sma:
Código:
#include <   amxmodx >
#include <   hamsandwich >
#include <   fakemeta >
#include <   zombie_plague_advance >

#define PLUGIN_AUTHOR   "Bos93/ Shurik07kbr"  
#define PLUGIN_NAME      "[ ZP ] Surv Knife "
#define PLUGIN_VERSION   "1.0 - Private "

#define FFADE_IN               0x0000
#define FFADE_STAYOUT         0x0004
#define BREAK_GLASS            0x01
#define UNIT_SECOND            (1<<12)

#define MAX_CLIENTS            32

#define XTRA_OFS_WEAPON       4
#define m_pPlayer               41

#define KNIFE_V_MODEL         "models/v_frost_knife.mdl"
#define KNIFE_P_MODEL         "models/p_frost_knife.mdl"

#define KNIFE_SOUND_FROST      "warcraft3/impalehit.wav" //звук заморозки
#define KNIFE_SOUND_BREAK      "warcraft3/impalelaunch1.wav" //Звук отморозки

#define KNIFE_FROST_DURATION   4.0 //Время заморозки
#define KNIFE_FROST_DAMAGE   12.0//Урон ножа
#define KNIFE_FROST_VELOCITY   300.0//Гравитация
#define KNIFE_FROST_SPEED   350.0//Скорость
#define KNIFE_FROST_KNOCK_POWER 3.0//Отдача

enum
{
   SOUND_NULL,
   SOUND_DRAW,
   SOUND_MISS,
   SOUND_STAB,
   SOUND_HIT,
   SOUND_HIT1,
   SOUND_HIT2,
   SOUND_HITWALL,
   
   SOUND_END
}

enum
{
   KNIFE_ACTIVE,
   
   KNIFE_END
}

new const g_KNIFESounds[SOUND_END][] =
{
   "",
   "weapons/vox/axe_drawww.wav",
   "weapons/vox/axe_miss.wav",
   "weapons/vox/axe_stabb.wav",
   "weapons/vox/axe_hitwal.wav",
   "weapons/vox/axe_hit1.wav",
   "weapons/vox/axe_hit22.wav",
   "weapons/vox/axe_hitwal.wav"
}

new Ham:Ham_Player_ResetMaxSpeed = Ham_Item_PreFrame

new Trie: g_ReplacedSounds

new g_KnifeData [MAX_CLIENTS + 1][KNIFE_END]
new g_iFrozen [ MAX_CLIENTS + 1 ]
new g_glassSpr
new g_iMaxPlayers

public plugin_precache( )
{
   new i

   g_ReplacedSounds = TrieCreate()
   
   TrieSetCell(g_ReplacedSounds, "weapons/knife_deploy1.wav", SOUND_DRAW)
   TrieSetCell(g_ReplacedSounds, "weapons/knife_hit1.wav", SOUND_HIT)
   TrieSetCell(g_ReplacedSounds, "weapons/knife_hit2.wav", SOUND_HIT1)
   TrieSetCell(g_ReplacedSounds, "weapons/knife_hit3.wav", SOUND_HIT2)
   TrieSetCell(g_ReplacedSounds, "weapons/knife_hit4.wav", SOUND_HIT)
   TrieSetCell(g_ReplacedSounds, "weapons/knife_hitwall1.wav", SOUND_HITWALL)
   TrieSetCell(g_ReplacedSounds, "weapons/knife_slash1.wav", SOUND_MISS)
   TrieSetCell(g_ReplacedSounds, "weapons/knife_slash2.wav", SOUND_MISS)
   TrieSetCell(g_ReplacedSounds, "weapons/knife_stab.wav", SOUND_STAB)

   precache_model(KNIFE_V_MODEL); precache_model(KNIFE_P_MODEL)
   precache_sound(KNIFE_SOUND_FROST); precache_sound(KNIFE_SOUND_BREAK)
   
   g_glassSpr = engfunc(EngFunc_PrecacheModel, "models/glassgibs.mdl")

   for (i = SOUND_DRAW; i < SOUND_END; i++)
   {
      precache_sound(g_KNIFESounds[i])
   }
}

public plugin_init( )
{
   register_plugin
   (
      PLUGIN_NAME ,
      PLUGIN_VERSION ,
      PLUGIN_AUTHOR
   );

   RegisterHam( Ham_Item_Deploy, "weapon_knife", "Knife_Deploy_Post", 1)
   RegisterHam( Ham_Player_PreThink, "player", "Player_PreThink")
   RegisterHam( Ham_TraceAttack,   "player",       "Knife_TraceAttack" );
   
   register_event( "DeathMsg", "EV_DeathMsg", "a" );
   
   register_forward(FM_EmitSound, "EmitSound")

   g_iMaxPlayers = get_maxplayers( );
}

public plugin_end()
{
   TrieDestroy(g_ReplacedSounds)
}

public client_disconnect(iPlayer)
{
   arrayset(g_KnifeData[iPlayer], 0, KNIFE_END)
}

public zp_user_infected_post(iPlayer, Infector)
{
   arrayset(g_KnifeData[iPlayer], 0, KNIFE_END)
}

public zp_user_humanized_post( iPlayer )
{
   if( zp_get_user_survivor( iPlayer ) )
   {
      g_KnifeData[iPlayer][KNIFE_ACTIVE] = true
   }
   else arrayset(g_KnifeData[iPlayer], 0, KNIFE_END)
}

public EV_DeathMsg( )
{
   static pevVictim;
   pevVictim = read_data( 2 )
   
   if( !is_user_connected( pevVictim ) )
      return
      
   arrayset(g_KnifeData[pevVictim], 0, KNIFE_END)   
}

public Knife_TraceAttack(const iEntity, const iAttacker, const Float: flDamage)
{
   if( !( 1 <= iAttacker <= g_iMaxPlayers ) )
      return;
      
   if( !is_user_alive( iAttacker )  )
      return;
      
   if( zp_get_user_zombie( iAttacker ) )
      return;

   if ( !g_KnifeData[iAttacker][KNIFE_ACTIVE])  return
   
   if( get_user_weapon( iAttacker ) != CSW_KNIFE )
      return
   
   SetHamParamFloat( 3 ,  flDamage * KNIFE_FROST_DAMAGE );
   
   frost_process( iEntity )
}

public Knife_Deploy_Post(iItem)
{
   new iPlayer
   
   if (CheckItem(iItem, iPlayer))
   {
      if ( zp_get_user_zombie ( iPlayer )   ) return HAM_IGNORED
      
      set_pev(iPlayer, pev_viewmodel2, KNIFE_V_MODEL)
      set_pev(iPlayer, pev_weaponmodel2, KNIFE_P_MODEL)
   }
   
   return HAM_IGNORED
}

public EmitSound(iPlayer, iChannel, szSample[], Float: flVolume, Float: flAttn, iFlag, iPitch)
{
   if (is_user_alive(iPlayer) && g_KnifeData[iPlayer][KNIFE_ACTIVE] )
   {
      new iSoundType
      
      TrieGetCell(g_ReplacedSounds, szSample, iSoundType)
      
      if (iSoundType != SOUND_NULL)
      {
         emit_sound(iPlayer, iChannel, g_KNIFESounds[iSoundType], flVolume, flAttn, iFlag, iPitch)
         return FMRES_SUPERCEDE
      }
   }
   
   return FMRES_IGNORED
}

public frost_process(pevVictim)
{
   fm_set_rendering(pevVictim, kRenderFxGlowShell, 0, 100, 200, kRenderNormal, 50)

   emit_sound(pevVictim, CHAN_BODY, KNIFE_SOUND_FROST, 1.0, ATTN_NORM, 0, PITCH_NORM)

   message_begin(MSG_ONE, get_user_msgid("ScreenFade"), _, pevVictim)
   write_short(0)
   write_short(0)
   write_short(FFADE_STAYOUT)
   write_byte(0)
   write_byte(50)
   write_byte(200)
   write_byte(100)
   message_end()

   g_iFrozen[pevVictim] = true

   set_task(KNIFE_FROST_DURATION, "remove_freeze", pevVictim)
   
}

public remove_freeze(pevVictim)
{
   if(!is_user_alive(pevVictim) || !g_iFrozen[pevVictim])
      return;

   g_iFrozen[pevVictim] = false

   fm_set_rendering(pevVictim)

   ExecuteHamB ( Ham_Player_ResetMaxSpeed, pevVictim)

   message_begin(MSG_ONE, get_user_msgid("ScreenFade"), _, pevVictim)
   write_short(UNIT_SECOND)
   write_short(0)
   write_short(FFADE_IN)
   write_byte(0)
   write_byte(50)
   write_byte(200)
   write_byte(100)
   message_end()

   emit_sound(pevVictim, CHAN_BODY, KNIFE_SOUND_BREAK, 1.0, ATTN_NORM, 0, PITCH_NORM)

   static origin2[3]
   get_user_origin(pevVictim, origin2)

   message_begin(MSG_PVS, SVC_TEMPENTITY, origin2)
   write_byte(TE_BREAKMODEL)
   write_coord(origin2[0])
   write_coord(origin2[1])
   write_coord(origin2[2] + 24)
   write_coord(16)
   write_coord(16)
   write_coord(16)
   write_coord(random_num(-50, 50))
   write_coord(random_num(-50, 50))
   write_coord(25)
   write_byte(10)
   write_short(g_glassSpr)
   write_byte(10)
   write_byte(25)
   write_byte(BREAK_GLASS)
   message_end()
}

public Player_PreThink(id)
{
   if( !is_user_alive(id) )
      return HAM_IGNORED
   
   if(zp_get_user_nemesis(id))
   return HAM_IGNORED
   
   if(zp_get_user_assassin(id))
   return HAM_IGNORED

   if(g_iFrozen[id])
   {
      set_pev(id, pev_velocity, Float:{ 0.0, 0.0, 0.0 })
      set_pev(id, pev_maxspeed, 1.0)
   }
   
   if( g_KnifeData[id][KNIFE_ACTIVE]  )
   {
      static iFlags;
      static iWaterlvl;
      static Float: iVelocity[ 3 ]
      
      iFlags = pev( id, pev_flags );
      iWaterlvl = pev( id, pev_waterlevel );
      
      if( get_user_weapon( id ) != CSW_KNIFE )
      {
         return HAM_IGNORED ;
      }
      
      if ( ( ~iFlags & FL_ONGROUND ) || iFlags & FL_WATERJUMP || iWaterlvl > 1 )
      {
         return HAM_IGNORED;
      }
      
      if( ( pev( id, pev_button ) & IN_JUMP ) && !( pev( id, pev_oldbuttons ) & IN_JUMP ) )
      {
         pev( id, pev_velocity, iVelocity )

         iVelocity[ 2 ] += KNIFE_FROST_VELOCITY ;      

         set_pev( id, pev_velocity, iVelocity )
         set_pev( id, pev_gaitsequence, 6 )
      }
      set_pev( id, pev_maxspeed, KNIFE_FROST_SPEED )
   }

   return HAM_IGNORED
}

CheckItem(const iItem, &iPlayer)
{
   if (pev_valid(iItem) == 2)
   {   
      iPlayer = get_pdata_cbase(iItem, m_pPlayer, XTRA_OFS_WEAPON)
      
      if ( g_KnifeData[iPlayer][KNIFE_ACTIVE] )
      {
         return 1
      }
   }
   return 0
}

stock fm_set_rendering(entity, fx = kRenderFxNone, r = 255, g = 255, b = 255, render = kRenderNormal, amount = 16)
{
   static Float:color[3]
   color[0] = float(r)
   color[1] = float(g)
   color[2] = float(b)
   
   set_pev(entity, pev_renderfx, fx)
   set_pev(entity, pev_rendercolor, color)
   set_pev(entity, pev_rendermode, render)
   set_pev(entity, pev_renderamt, float(amount))
}

Ainda ta congelando nemesis/assassin

____________________________________________





BANCO+REGISTRO PERSONALIZADO   CLICK AQUI !!! :


VENDO BANCO+SISTEMA DE REGISTRO+BKADMIN -- TOTALMENTE SEM BUGS >>> PREÇO A COMBINAR
POSSUI SONS,ARQUIVO CFG, SALVA POR NFVAULT
ADD SKYPE SE TIVER INTERESSADO ( dougprado13 ) 
Não Disponibilizo de graça, adc pra pedir eu deleto e denuncio.




Ela é amiga da minha mulher, pois é, pois é, mais vive dando em cima de mim, enfim, enfim (8)

rotam
Parceiros
Parceiros

Nick : Rotam
Masculino Número de Mensagens : 1134
Re Loco
Ammo Packs : 1860
Honra : 36
Data de inscrição : 21/04/2012

Ver perfil do usuário dougprado13

Voltar ao Topo Ir em baixo

Re: [ZP] Faca Congelante Para O Survivor

Mensagem por Conteúdo patrocinado Hoje à(s) 10:59 pm


Conteúdo patrocinado


Voltar ao Topo Ir em baixo

Ver o tópico anterior Ver o tópico seguinte Voltar ao Topo

- Tópicos similares

 
Permissão deste fórum:
Você não pode responder aos tópicos neste fórum