menu

Mostrando postagens com marcador Tutoriais. Mostrar todas as postagens
Mostrando postagens com marcador Tutoriais. Mostrar todas as postagens

27 de setembro de 2024

[ TUTORIAL ] ADICIONANDO SEU ITEM EXTRA PARA MENU ADMIN

   -------------------------------------------------------------------

No Topo da sma Adicione

#include <zmadmin>

-------------------------------------------------

Use o CTRL + F e Procure

zp_register_extra_item( g_item_name, g_item_cost, ZP_TEAM_HUMAN)

E Mude Para

za_register_extra_item("NOME DO ITEM", "DESCRIÇAO AQUI", PREÇO AQUI, ZA_TEAM_HUMAN)

-------------------------------------------------

Agora Procure

public zp_extra_item_selected(player, itemid)

E Edite Para

public za_extra_item_selected(player, itemid)

------------------------------------------------

Pronto, Você Transformou Seu Item Para Admin

Creditos Por Henrique Weber. 27/09/2024

[ TUTORIAL ] Colocando Efeito Nas Granadas [P]erfec[T] [S]cr[@]s[H]

Tutorial:
Quando você baixar zombie_plague40.sma. Abra o AMX Studio ou o Bloco de Notas
em seguida, procure por:
-----------------------------------------------------------------------------------------------------------------------------

new g_trailSpr, g_exploSpr, g_flameSpr, g_smokeSpr, g_glassSpr

-----------------------------------------------------------------------------------------------------------------------------

E abaixo coloque:

new g_fire_explode, g_frost_explode, g_fire_gib, g_frost_gib, g_fire_trail, g_frost_trail, g_flare_trail

-----------------------------------------------------------------------------------------------------------------------------

E em seguida vai la no plugin_precache e coloque:

g_fire_explode = precache_model ("sprites/zp_n_sprites/fire_explode.spr")
g_frost_explode = precache_model ("sprites/zp_n_sprites/frost_explode.spr")
g_fire_gib = precache_model ("sprites/zp_n_sprites/fire_gib.spr")
g_frost_gib = precache_model ("sprites/zp_n_sprites/frost_gib.spr ")
g_fire_trail = precache_model ("sprites/zp_n_sprites/fire_trail.spr")
g_frost_trail = precache_model ("sprites/zp_n_sprites/frost_trail.spr")
g_flare_trail = precache_model ("sprites/zp_n_sprites/flare_trail.spr")

-----------------------------------------------------------------------------------------------------------------------------

Depois procure por:

else if (model[9] == 'h' && model[10] == 'e' && get_pcvar_num(cvar_firegrenades)) // Napalm Grenade
 {
 // Give it a glow
 fm_set_rendering(entity, kRenderFxGlowShell, 200, 0, 0, kRenderNormal, 16);
 
// And a colored trail
 message_begin(MSG_BROADCAST, SVC_TEMPENTITY)
 write_byte(TE_BEAMFOLLOW) // TE id
 write_short(entity) // entity
 write_short(g_trailSpr) // sprite
 write_byte(10) // life
 write_byte(10) // width
 write_byte(200) // r
 write_byte(0) // g
 write_byte(0) // b
 write_byte(200) // brightness
 message_end()
 
// Set grenade type on the thrown grenade entity
 set_pev(entity, PEV_NADE_TYPE, NADE_TYPE_NAPALM)
 }

-----------------------------------------------------------------------------------------------------------------------------

E Substitua por:

  else if (model[9] == 'h' && model[10] == 'e' && get_pcvar_num(cvar_firegrenades)) // Napalm Grenade
   {
      // Give it a glow
      fm_set_rendering(entity, kRenderFxGlowShell, 200, 0, 0, kRenderNormal, 16);
      
      // And a colored trail
      message_begin(MSG_BROADCAST, SVC_TEMPENTITY)
      write_byte(TE_BEAMFOLLOW) // TE id
      write_short(entity) // entity
      write_short(g_fire_trail) // sprite
      write_byte(10) // life
      write_byte(10) // width
      write_byte(200) // r
      write_byte(0) // g
      write_byte(0) // b
      write_byte(200) // brightness
      message_end()
      
      // Set grenade type on the thrown grenade entity
      set_pev(entity, PEV_NADE_TYPE, NADE_TYPE_NAPALM)
   }
-----------------------------------------------------------------------------------------------------------------------------

Feito isso Agora procure por:

else if (model[9] == 'f' && model[10] == 'l' && get_pcvar_num(cvar_frostgrenades)) // Frost Grenade
 {
 // Give it a glow
 fm_set_rendering(entity, kRenderFxGlowShell, 0, 100, 200, kRenderNormal, 16);
 
// And a colored trail
 message_begin(MSG_BROADCAST, SVC_TEMPENTITY)
 write_byte(TE_BEAMFOLLOW) // TE id
 write_short(entity) // entity
 write_short(g_trailSpr) // sprite
 write_byte(10) // life
 write_byte(10) // width
 write_byte(0) // r
 write_byte(100) // g
 write_byte(200) // b
 write_byte(200) // brightness
 message_end()
 
// Set grenade type on the thrown grenade entity
 set_pev(entity, PEV_NADE_TYPE, NADE_TYPE_FROST)
 }

-----------------------------------------------------------------------------------------------------------------------------

E Substitua por:

  else if (model[9] == 'f' && model[10] == 'l' && get_pcvar_num(cvar_frostgrenades)) // Frost Grenade
   {
      // Give it a glow
      fm_set_rendering(entity, kRenderFxGlowShell, 0, 100, 200, kRenderNormal, 16);
      
      // And a colored trail
      message_begin(MSG_BROADCAST, SVC_TEMPENTITY)
      write_byte(TE_BEAMFOLLOW) // TE id
      write_short(entity) // entity
      write_short(g_frost_trail) // sprite
      write_byte(10) // life
      write_byte(10) // width
      write_byte(0) // r
      write_byte(100) // g
      write_byte(200) // b
      write_byte(200) // brightness
      message_end()
      
      // Set grenade type on the thrown grenade entity
      set_pev(entity, PEV_NADE_TYPE, NADE_TYPE_FROST)
   }

-----------------------------------------------------------------------------------------------------------------------------

Depois disso agora procure por:

 // Give it a glow
 fm_set_rendering(entity, kRenderFxGlowShell, rgb[0], rgb[1], rgb[2], kRenderNormal, 16);
 
// And a colored trail
 message_begin(MSG_BROADCAST, SVC_TEMPENTITY)
 write_byte(TE_BEAMFOLLOW) // TE id
 write_short(entity) // entity
 write_short(g_trailSpr) // sprite
 write_byte(10) // life
 write_byte(10) // width
 write_byte(rgb[0]) // r
 write_byte(rgb[1]) // g
 write_byte(rgb[2]) // b
 write_byte(200) // brightness
 message_end()
 
// Set grenade type on the thrown grenade entity
 set_pev(entity, PEV_NADE_TYPE, NADE_TYPE_FLARE)
 
// Set flare color on the thrown grenade entity
 set_pev(entity, PEV_FLARE_COLOR, rgb)

-----------------------------------------------------------------------------------------------------------------------------

E substitua por:

 // Give it a glow
 fm_set_rendering(entity, kRenderFxGlowShell, rgb[0], rgb[1], rgb[2], kRenderNormal, 16);
 
// And a colored trail
 message_begin(MSG_BROADCAST, SVC_TEMPENTITY)
 write_byte(TE_BEAMFOLLOW) // TE id
 write_short(entity) // entity
 write_short(g_flare_trail) // sprite
 write_byte(10) // life
 write_byte(10) // width
 write_byte(rgb[0]) // r
 write_byte(rgb[1]) // g
 write_byte(rgb[2]) // b
 write_byte(200) // brightness
 message_end()
 
// Set grenade type on the thrown grenade entity
 set_pev(entity, PEV_NADE_TYPE, NADE_TYPE_FLARE)
 
// Set flare color on the thrown grenade entity
 set_pev(entity, PEV_FLARE_COLOR, rgb)

-----------------------------------------------------------------------------------------------------------------------------

Feito isso agora vamo pro finalzinho e a parte mais importante...
Agora procure por:

// Fire Grenade: Fire Blast
create_blast2(const Float:originF[3])
{
 // Smallest ring
 engfunc(EngFunc_MessageBegin, MSG_PVS, SVC_TEMPENTITY, originF, 0)
 write_byte(TE_BEAMCYLINDER) // TE id
 engfunc(EngFunc_WriteCoord, originF[0]) // x
 engfunc(EngFunc_WriteCoord, originF[1]) // y
 engfunc(EngFunc_WriteCoord, originF[2]) // z
 engfunc(EngFunc_WriteCoord, originF[0]) // x axis
 engfunc(EngFunc_WriteCoord, originF[1]) // y axis
 engfunc(EngFunc_WriteCoord, originF[2]+385.0) // z axis
 write_short(g_exploSpr) // sprite
 write_byte(0) // startframe
 write_byte(0) // framerate
 write_byte(4) // life
 write_byte(60) // width
 write_byte(0) // noise
 write_byte(200) // red
 write_byte(100) // green
 write_byte(0) // blue
 write_byte(200) // brightness
 write_byte(0) // speed
 message_end()
 
// Medium ring
 engfunc(EngFunc_MessageBegin, MSG_PVS, SVC_TEMPENTITY, originF, 0)
 write_byte(TE_BEAMCYLINDER) // TE id
 engfunc(EngFunc_WriteCoord, originF[0]) // x
 engfunc(EngFunc_WriteCoord, originF[1]) // y
 engfunc(EngFunc_WriteCoord, originF[2]) // z
 engfunc(EngFunc_WriteCoord, originF[0]) // x axis
 engfunc(EngFunc_WriteCoord, originF[1]) // y axis
 engfunc(EngFunc_WriteCoord, originF[2]+470.0) // z axis
 write_short(g_exploSpr) // sprite
 write_byte(0) // startframe
 write_byte(0) // framerate
 write_byte(4) // life
 write_byte(60) // width
 write_byte(0) // noise
 write_byte(200) // red
 write_byte(50) // green
 write_byte(0) // blue
 write_byte(200) // brightness
 write_byte(0) // speed
 message_end()
 
// Largest ring
 engfunc(EngFunc_MessageBegin, MSG_PVS, SVC_TEMPENTITY, originF, 0)
 write_byte(TE_BEAMCYLINDER) // TE id
 engfunc(EngFunc_WriteCoord, originF[0]) // x
 engfunc(EngFunc_WriteCoord, originF[1]) // y
 engfunc(EngFunc_WriteCoord, originF[2]) // z
 engfunc(EngFunc_WriteCoord, originF[0]) // x axis
 engfunc(EngFunc_WriteCoord, originF[1]) // y axis
 engfunc(EngFunc_WriteCoord, originF[2]+555.0) // z axis
 write_short(g_exploSpr) // sprite
 write_byte(0) // startframe
 write_byte(0) // framerate
 write_byte(4) // life
 write_byte(60) // width
 write_byte(0) // noise
 write_byte(200) // red
 write_byte(0) // green
 write_byte(0) // blue
 write_byte(200) // brightness
 write_byte(0) // speed
 message_end()
}

// Frost Grenade: Freeze Blast
create_blast3(const Float:originF[3])
{
 // Smallest ring
 engfunc(EngFunc_MessageBegin, MSG_PVS, SVC_TEMPENTITY, originF, 0)
 write_byte(TE_BEAMCYLINDER) // TE id
 engfunc(EngFunc_WriteCoord, originF[0]) // x
 engfunc(EngFunc_WriteCoord, originF[1]) // y
 engfunc(EngFunc_WriteCoord, originF[2]) // z
 engfunc(EngFunc_WriteCoord, originF[0]) // x axis
 engfunc(EngFunc_WriteCoord, originF[1]) // y axis
 engfunc(EngFunc_WriteCoord, originF[2]+385.0) // z axis
 write_short(g_exploSpr) // sprite
 write_byte(0) // startframe
 write_byte(0) // framerate
 write_byte(4) // life
 write_byte(60) // width
 write_byte(0) // noise
 write_byte(0) // red
 write_byte(100) // green
 write_byte(200) // blue
 write_byte(200) // brightness
 write_byte(0) // speed
 message_end()
 
// Medium ring
 engfunc(EngFunc_MessageBegin, MSG_PVS, SVC_TEMPENTITY, originF, 0)
 write_byte(TE_BEAMCYLINDER) // TE id
 engfunc(EngFunc_WriteCoord, originF[0]) // x
 engfunc(EngFunc_WriteCoord, originF[1]) // y
 engfunc(EngFunc_WriteCoord, originF[2]) // z
 engfunc(EngFunc_WriteCoord, originF[0]) // x axis
 engfunc(EngFunc_WriteCoord, originF[1]) // y axis
 engfunc(EngFunc_WriteCoord, originF[2]+470.0) // z axis
 write_short(g_exploSpr) // sprite
 write_byte(0) // startframe
 write_byte(0) // framerate
 write_byte(4) // life
 write_byte(60) // width
 write_byte(0) // noise
 write_byte(0) // red
 write_byte(100) // green
 write_byte(200) // blue
 write_byte(200) // brightness
 write_byte(0) // speed
 message_end()
 
// Largest ring
 engfunc(EngFunc_MessageBegin, MSG_PVS, SVC_TEMPENTITY, originF, 0)
 write_byte(TE_BEAMCYLINDER) // TE id
 engfunc(EngFunc_WriteCoord, originF[0]) // x
 engfunc(EngFunc_WriteCoord, originF[1]) // y
 engfunc(EngFunc_WriteCoord, originF[2]) // z
 engfunc(EngFunc_WriteCoord, originF[0]) // x axis
 engfunc(EngFunc_WriteCoord, originF[1]) // y axis
 engfunc(EngFunc_WriteCoord, originF[2]+555.0) // z axis
 write_short(g_exploSpr) // sprite
 write_byte(0) // startframe
 write_byte(0) // framerate
 write_byte(4) // life
 write_byte(60) // width
 write_byte(0) // noise
 write_byte(0) // red
 write_byte(100) // green
 write_byte(200) // blue
 write_byte(200) // brightness
 write_byte(0) // speed
 message_end()
}

-----------------------------------------------------------------------------------------------------------------------------

E Substitua por:

// Fire Grenade: Fire Blast
create_blast2(const Float:originF[3])
{
   // Smallest ring
   engfunc(EngFunc_MessageBegin, MSG_PVS, SVC_TEMPENTITY, originF, 0)
   write_byte(TE_BEAMCYLINDER) // TE id
   engfunc(EngFunc_WriteCoord, originF[0]) // x
   engfunc(EngFunc_WriteCoord, originF[1]) // y
   engfunc(EngFunc_WriteCoord, originF[2]) // z
   engfunc(EngFunc_WriteCoord, originF[0]) // x axis
   engfunc(EngFunc_WriteCoord, originF[1]) // y axis
   engfunc(EngFunc_WriteCoord, originF[2]+385.0) // z axis
   write_short(g_exploSpr) // sprite
   write_byte(0) // startframe
   write_byte(0) // framerate
   write_byte(4) // life
   write_byte(60) // width
   write_byte(0) // noise
   write_byte(200) // red
   write_byte(100) // green
   write_byte(0) // blue
   write_byte(200) // brightness
   write_byte(0) // speed
   message_end()
   
   // Medium ring
   engfunc(EngFunc_MessageBegin, MSG_PVS, SVC_TEMPENTITY, originF, 0)
   write_byte(TE_BEAMCYLINDER) // TE id
   engfunc(EngFunc_WriteCoord, originF[0]) // x
   engfunc(EngFunc_WriteCoord, originF[1]) // y
   engfunc(EngFunc_WriteCoord, originF[2]) // z
   engfunc(EngFunc_WriteCoord, originF[0]) // x axis
   engfunc(EngFunc_WriteCoord, originF[1]) // y axis
   engfunc(EngFunc_WriteCoord, originF[2]+470.0) // z axis
   write_short(g_exploSpr) // sprite
   write_byte(0) // startframe
   write_byte(0) // framerate
   write_byte(4) // life
   write_byte(60) // width
   write_byte(0) // noise
   write_byte(200) // red
   write_byte(50) // green
   write_byte(0) // blue
   write_byte(200) // brightness
   write_byte(0) // speed
   message_end()
   
   // Largest ring
   engfunc(EngFunc_MessageBegin, MSG_PVS, SVC_TEMPENTITY, originF, 0)
   write_byte(TE_BEAMCYLINDER) // TE id
   engfunc(EngFunc_WriteCoord, originF[0]) // x
   engfunc(EngFunc_WriteCoord, originF[1]) // y
   engfunc(EngFunc_WriteCoord, originF[2]) // z
   engfunc(EngFunc_WriteCoord, originF[0]) // x axis
   engfunc(EngFunc_WriteCoord, originF[1]) // y axis
   engfunc(EngFunc_WriteCoord, originF[2]+555.0) // z axis
   write_short(g_exploSpr) // sprite
   write_byte(0) // startframe
   write_byte(0) // framerate
   write_byte(4) // life
   write_byte(60) // width
   write_byte(0) // noise
   write_byte(200) // red
   write_byte(0) // green
   write_byte(0) // blue
   write_byte(200) // brightness
   write_byte(0) // speed
   message_end()
   
   // TE_SPRITETRAIL
   engfunc(EngFunc_MessageBegin, MSG_BROADCAST ,SVC_TEMPENTITY, originF, 0)
   write_byte(TE_SPRITETRAIL) // TE ID
   engfunc(EngFunc_WriteCoord, originF[0]) // x axis
   engfunc(EngFunc_WriteCoord, originF[1]) // y axis
   engfunc(EngFunc_WriteCoord, originF[2]+70) // z axis
   engfunc(EngFunc_WriteCoord, originF[0]) // x axis
   engfunc(EngFunc_WriteCoord, originF[1]) // y axis
   engfunc(EngFunc_WriteCoord, originF[2]) // z axis
   write_short(g_fire_gib) // Sprite Index
   write_byte(80) // Count
   write_byte(20) // Life
   write_byte(2) // Scale
   write_byte(50) // Velocity Along Vector
   write_byte(10) // Rendomness of Velocity
   message_end();    

   // TE_EXPLOSION  
   engfunc(EngFunc_MessageBegin, MSG_BROADCAST,SVC_TEMPENTITY, originF, 0)
   write_byte(TE_EXPLOSION)
   engfunc(EngFunc_WriteCoord, originF[0]) // x axis
   engfunc(EngFunc_WriteCoord, originF[1]) // y axis
   engfunc(EngFunc_WriteCoord, originF[2]+75) // z axis
   write_short(g_fire_explode)
   write_byte(22)
   write_byte(35)
   write_byte(TE_EXPLFLAG_NOSOUND)
   message_end()
}

// Frost Grenade: Freeze Blast
create_blast3(const Float:originF[3])
{
   // Smallest ring
   engfunc(EngFunc_MessageBegin, MSG_PVS, SVC_TEMPENTITY, originF, 0)
   write_byte(TE_BEAMCYLINDER) // TE id
   engfunc(EngFunc_WriteCoord, originF[0]) // x
   engfunc(EngFunc_WriteCoord, originF[1]) // y
   engfunc(EngFunc_WriteCoord, originF[2]) // z
   engfunc(EngFunc_WriteCoord, originF[0]) // x axis
   engfunc(EngFunc_WriteCoord, originF[1]) // y axis
   engfunc(EngFunc_WriteCoord, originF[2]+385.0) // z axis
   write_short(g_exploSpr) // sprite
   write_byte(0) // startframe
   write_byte(0) // framerate
   write_byte(4) // life
   write_byte(60) // width
   write_byte(0) // noise
   write_byte(0) // red
   write_byte(100) // green
   write_byte(200) // blue
   write_byte(200) // brightness
   write_byte(0) // speed
   message_end()
   
   // Medium ring
   engfunc(EngFunc_MessageBegin, MSG_PVS, SVC_TEMPENTITY, originF, 0)
   write_byte(TE_BEAMCYLINDER) // TE id
   engfunc(EngFunc_WriteCoord, originF[0]) // x
   engfunc(EngFunc_WriteCoord, originF[1]) // y
   engfunc(EngFunc_WriteCoord, originF[2]) // z
   engfunc(EngFunc_WriteCoord, originF[0]) // x axis
   engfunc(EngFunc_WriteCoord, originF[1]) // y axis
   engfunc(EngFunc_WriteCoord, originF[2]+470.0) // z axis
   write_short(g_exploSpr) // sprite
   write_byte(0) // startframe
   write_byte(0) // framerate
   write_byte(4) // life
   write_byte(60) // width
   write_byte(0) // noise
   write_byte(0) // red
   write_byte(100) // green
   write_byte(200) // blue
   write_byte(200) // brightness
   write_byte(0) // speed
   message_end()
   
   // Largest ring
   engfunc(EngFunc_MessageBegin, MSG_PVS, SVC_TEMPENTITY, originF, 0)
   write_byte(TE_BEAMCYLINDER) // TE id
   engfunc(EngFunc_WriteCoord, originF[0]) // x
   engfunc(EngFunc_WriteCoord, originF[1]) // y
   engfunc(EngFunc_WriteCoord, originF[2]) // z
   engfunc(EngFunc_WriteCoord, originF[0]) // x axis
   engfunc(EngFunc_WriteCoord, originF[1]) // y axis
   engfunc(EngFunc_WriteCoord, originF[2]+555.0) // z axis
   write_short(g_exploSpr) // sprite
   write_byte(0) // startframe
   write_byte(0) // framerate
   write_byte(4) // life
   write_byte(60) // width
   write_byte(0) // noise
   write_byte(0) // red
   write_byte(100) // green
   write_byte(200) // blue
   write_byte(200) // brightness
   write_byte(0) // speed
   message_end()
   
   // TE_SPRITETRAIL
   engfunc(EngFunc_MessageBegin, MSG_BROADCAST ,SVC_TEMPENTITY, originF, 0)
   write_byte(TE_SPRITETRAIL) // TE ID
   engfunc(EngFunc_WriteCoord, originF[0]) // x axis
   engfunc(EngFunc_WriteCoord, originF[1]) // y axis
   engfunc(EngFunc_WriteCoord, originF[2]+70) // z axis
   engfunc(EngFunc_WriteCoord, originF[0]) // x axis
   engfunc(EngFunc_WriteCoord, originF[1]) // y axis
   engfunc(EngFunc_WriteCoord, originF[2]) // z axis
   write_short(g_frost_gib) // Sprite Index
   write_byte(80) // Count
   write_byte(20) // Life
   write_byte(2) // Scale
   write_byte(50) // Velocity Along Vector
   write_byte(10) // Rendomness of Velocity
   message_end();    

   // TE_EXPLOSION  
   engfunc(EngFunc_MessageBegin, MSG_BROADCAST,SVC_TEMPENTITY, originF, 0)
   write_byte(TE_EXPLOSION)
   engfunc(EngFunc_WriteCoord, originF[0]) // x axis
   engfunc(EngFunc_WriteCoord, originF[1]) // y axis
   engfunc(EngFunc_WriteCoord, originF[2]+75) // z axis
   write_short(g_frost_explode)
   write_byte(22)
   write_byte(35)
   write_byte(TE_EXPLFLAG_NOSOUND)
   message_end()
}

-----------------------------------------------------------------------------------------------------------------------------

Última edição por [P]erfec[T] [S]cr[@]s[H] em 28/4/2014, 6:51 pm, editado 2 vez(es)

Link dos Efeitos abaixo

26 de setembro de 2024

[ TUTORIAL ] BLOQUEANDO OS JOGADORES DE ACESSAR O MENU DE COMPRAS ANTES DO ROUND COMEÇAR

Bom pessoal eu irei tentar explicar como bloqueia os jogadores de acessar o menu de compras antes do round comecar (como dito no titulo). Então é só seguir os passos abaixo:

Abra a SMA do Zombie Plague e Procure por:

// No items to display?
if (menu_items(menuid) <= 0)
{
zp_colored_print(id, "^x04[ZP]^x01 %L", id ,"CMD_NOT_EXTRAS")
menu_destroy(menuid)
return;
}


Depois coloque isso abaixo:

else if (!native_has_round_started())
{
zp_colored_print(id, "^4[ZP]^1 Espere o round comecar...")
menu_destroy(menuid)
return
}


Foi Testado Apenas no Zombie Plague Advance Mas Vale a Pena Tentar no 4.3.

Última edição por [P]erfec[T] [S]cr[@]s[H] em 15/6/2013, 6:56 pm, editado 1 vez(es)

25 de setembro de 2024

[ TUTORIAL ] ADICIONANDO SEU ITEM EXTRA PARA VIP

  -------------------------------------------------------------------

No Topo da sma Adicione

#include < zmvip >

-------------------------------------------------

Use o CTRL + F e Procure

zp_register_extra_item( g_item_name, g_item_cost, ZP_TEAM_HUMAN)

E Mude Para

zv_register_extra_item("NOME DO ITEM", "DESCRIÇAO AQUI", PREÇO AQUI, ZV_TEAM_HUMAN)

-------------------------------------------------

Agora Procure

public zp_extra_item_selected(player, itemid)

E Edite Para

public zv_extra_item_selected(player, itemid)

------------------------------------------------

Pronto, Você Transformou Seu Item Para Vips

Última Edição Por Ichigo em 06/03/2012, 11:55 pm, Editado 4 Vez(es)

24 de junho de 2017

[ TUTORIAL ] Mudando A Cor da Hud Automático

bom galera vou ensinar vcs colocar hud piscando canto direito colorido igual a Ready To Kill bom vamos para o tutorial

Procure por:
// Format classname

Abaixo ta assim:
static class[32], red, green, blue

Deixa assim:
static class[32]

Procura Por:
if (g_zombie[id]) // zombies

Vai ter assim
if (g_zombie[id]) // zombies
{
red = 255
green = 255
blue = 0

if (g_nemesis[id])
formatex(class, charsmax(class), "%L", ID_SHOWHUD, "CLASS_NEMESIS")
else if (g_assassin[id])
formatex(class, charsmax(class), "%L", ID_SHOWHUD, "CLASS_ASSASSIN")
else
copy(class, charsmax(class), g_zombie_classname[id])
}

Voce deixa assim:
if (g_zombie[id]) // zombies
{

if (g_nemesis[id])
formatex(class, charsmax(class), "%L", ID_SHOWHUD, "CLASS_NEMESIS")
else if (g_assassin[id])
formatex(class, charsmax(class), "%L", ID_SHOWHUD, "CLASS_ASSASSIN")
else
copy(class, charsmax(class), g_zombie_classname[id])
}

Abaixo vai ter assim:
else // humans
{
red = 0
green = 255
blue = 255

if (g_survivor[id])
formatex(class, charsmax(class), "%L", ID_SHOWHUD, "CLASS_SURVIVOR")
else if (g_sniper[id])
formatex(class, charsmax(class), "%L", ID_SHOWHUD, "CLASS_SNIPER")
else
formatex(class, charsmax(class), "%L", ID_SHOWHUD, "CLASS_HUMAN")
}


Voce Muda para assim:
else
{

if (g_survivor[id])
formatex(class, charsmax(class), "%L", ID_SHOWHUD, "CLASS_SURVIVOR")
else if (g_sniper[id])
formatex(class, charsmax(class), "%L", ID_SHOWHUD, "CLASS_SNIPER")
else
formatex(class, charsmax(class), "%L", ID_SHOWHUD, "CLASS_HUMAN")
}

Agora Procura por:
// Show health, class and ammo packs and armor

Vai ter assim:
// Show health, class and ammo packs and armor
set_hudmessage(red, green, blue,0.78, 0.18, 0, 6.0, 1.1, 0.0, 0.0, -1)
ShowSyncHudMsg(ID_SHOWHUD, g_MsgSync2, "[ %L: %d ]^n[ %L %s ]^n[ %L %d ]^n[ Colete: %i ]^n[ Mortes: %d ]^n[ Frags: %i ]^n[ Velocidade: %d ]^n[ %s ]", id, "ZOMBIE_ATTRIB1", pev(ID_SHOWHUD, pev_health), ID_SHOWHUD, "CLASS_CLASS", class, ID_SHOWHUD, "AMMO_PACKS1", g_ammopacks[ID_SHOWHUD], get_user_armor(id), get_user_deaths(id), get_user_frags(id), fm_get_speed(id), mode_names[g_Mode]);

Voce Muda assim:
// Show health, class and ammo packs and armor
set_hudmessage(random_num(0, 255), random_num(0, 255), random_num(0, 255),0.78, 0.18, 0, 6.0, 1.1, 0.0, 0.0, -1)
ShowSyncHudMsg(ID_SHOWHUD, g_MsgSync2, "[ %L: %d ]^n[ %L %s ]^n[ %L %d ]^n[ Colete: %i ]^n[ Mortes: %d ]^n[ Frags: %i ]^n[ Velocidade: %d ]^n[ %s ]", id, "ZOMBIE_ATTRIB1", pev(ID_SHOWHUD, pev_health), ID_SHOWHUD, "CLASS_CLASS", class, ID_SHOWHUD, "AMMO_PACKS1", g_ammopacks[ID_SHOWHUD], get_user_armor(id), get_user_deaths(id), get_user_frags(id), fm_get_speed(id), mode_names[g_Mode]);

Pronto feito isso e so compilar e testar a sma

Credito Por Henrique Weber.
Por fazer o Tutorial

SMA Pronta: BAIXAR VIA MEGA - BAIXAR VIA MEDIA FIRE

[ TUTORIAL ] ADICIONAR HUD + INFORMAÇÕES


Nesse tutorial, vou mostrar como deixa o Hud do Zombie Plague com mais informações como: mostrar o modo que esta sendo executado, Colete, Velocidade, Frags etc..


Requisitos: Sma principal do seu zombie mod.

Abra a sua sma principal e procure por:
/*================================================================================ [Constants, Offsets, Macros] =================================================================================*/

Em baixo disso coloque:

Para smas 4.3:
new g_Mode
new const mode_names[][] =
{
"T-Virus a Solta!",
"Modo: Infection",
"Modo: Nemesis",
"Modo: Survivor",
"Modo: Swarm",
"Modo: Multi-Infection",
"Modo: Plague",
"Modo: Indefinido"
}

Para smas Advance 1.6.1:
new g_Mode
new const mode_names[][] =
{
"T-Virus a Solta!",
"Modo: Infection",
"Modo: Nemesis",
"Modo: Assasino",
"Modo: Survivor",
"Modo: Sniper",
"Modo: Swarm",
"Modo: Multi-Infection",
"Modo: Plague",
"Modo: Armagedom",
"Modo: Indefinido"
}

Depois procure por:
// Show health, class and ammo packs

Onde estiver:
ShowSyncHudMsg(ID_SHOWHUD, g_MsgSync2, "%L: %d - %L %s - %L %d", id, "ZOMBIE_ATTRIB1", pev(ID_SHOWHUD, pev_health), ID_SHOWHUD, "CLASS_CLASS", class, ID_SHOWHUD, "AMMO_PACKS1", g_ammopacks[ID_SHOWHUD])

Subistitua por:
// Show health, class and ammo packs and armor
set_hudmessage(red, green, blue,0.78, 0.18, 0, 6.0, 1.1, 0.0, 0.0, -1)
ShowSyncHudMsg(ID_SHOWHUD, g_MsgSync2, "[%L: %d ]^n[ %L %s ]^n[ %L %d ]^n[ Colete: %i ]^n[ Mortes: %d ]^n[ Frags: %i ]^n[ Velocidade: %d ]^n[ %s ]", id, "ZOMBIE_ATTRIB1", pev(ID_SHOWHUD, pev_health), ID_SHOWHUD, "CLASS_CLASS", class, ID_SHOWHUD, "AMMO_PACKS1", g_ammopacks[ID_SHOWHUD], get_user_armor(id), get_user_deaths(id), get_user_frags(id), fm_get_speed(id), mode_names[g_Mode]);

E no final da sma coloque:
public zp_round_started(mode, id)
{
// Update var with Mode num
g_Mode = mode

// An unofficial mode
if(!(1 <= mode < (sizeof(mode_names) - 1)))
g_Mode = sizeof(mode_names) - 1
}

public event_RoundStart()
{
// Update var (no mode started / in delay)
g_Mode = 0
}

Feito isso compile e teste o seu zombie mod.

30 de maio de 2017

Criando Efeito para a Granada de GELO




Bom gente tava olhando uns tutoriais na AlliedMods e encontrei esse daqui e resolvi compartilhar.

Vamos lá.

1° - Pra começar você precisa abrir a .sma principal do Zombie Plague.

2° - Depois de abrir a .sma procure por [Global Variables] e adicione isso :

new Glowx

3° - Feito isso procure por public plugin_precache() e adicione isso :

Glowx = precache_model("sprites/blueflare1.spr")

4° - Agora procure por // Frost Grenade: Freeze Blast e onde estão os efeitos coloque isso :

// Efeito Gelo
engfunc(EngFunc_MessageBegin, MSG_PVS, SVC_TEMPENTITY, originF, 0)
write_byte(TE_SPRITETRAIL)
engfunc(EngFunc_WriteCoord, originF[0]) // X
engfunc(EngFunc_WriteCoord, originF[1]) // Y
engfunc(EngFunc_WriteCoord, originF[2]) // Z
engfunc(EngFunc_WriteCoord, originF[0]) // X
engfunc(EngFunc_WriteCoord, originF[1]) // Y
engfunc(EngFunc_WriteCoord, originF[2]) // Z
write_short(Glowx) //Sprite que usaremos
write_byte(100) //Cantidades de sprites que generara
write_byte(1) //Vida
write_byte(2) //Tamaño
write_byte(60) //Velocidade
write_byte(60) //Velocidade
message_end()

5° - Também vamos adicionar um efeito de luz pra ficar mais legal o nosso efeito.
Então coloque isso debaixo do que colocamos acima :

// Luz Dinamica
engfunc(EngFunc_MessageBegin, MSG_PVS, SVC_TEMPENTITY, originF, 0)
write_byte(TE_DLIGHT) // TE id
engfunc(EngFunc_WriteCoord, originF[0]) // x
engfunc(EngFunc_WriteCoord, originF[1]) // y
engfunc(EngFunc_WriteCoord, originF[2]) // z
write_byte(50) // radio
write_byte(100) // r
write_byte(200) // g
write_byte(200) // b
write_byte(30) // vida en 0.1, 30 = 3 segundos
write_byte(30) // velocidad de decaimiento
message_end()

Espero que gostem.

Créditos: MisterDeath Criador do Tutorial

Download do Efeito Gelo abaixo:

BAIXAR VIA MEGA - BAIXAR VIA MEDIA FIRE

29 de maio de 2017

[ TUTORIAL ] Aumentando os Danos da m249 do survivor

Abra seu zombieplague_40.sma ou zombie_plague_advance.sma

Procure:

// Armor multiplier for the final damage on normal zombies
if (!g_nemesis[victim])
{
damage *= get_pcvar_float(cvar_zombiearmor)
SetHamParamFloat(4, damage)
}

abaixo coloque:

if (g_survivor[attacker])
{ 
new plrWeapId, plrClip, plrAmmo 
plrWeapId = get_user_weapon(attacker, plrClip, plrAmmo)
static Float:predamage
predamage = damage * get_pcvar_float(cvar_zombiearmor)
static Float:postdamage
if (plrWeapId == CSW_M249)
postdamage = predamage * 4
else
postdamage = predamage
SetHamParamFloat(4, postdamage)
}

[ TUTORIAL ] Muda Nome Do Game




Mude o nome do game que aparece no find serve.
Procure:

// Format mod name

Vai ter Assim

formatex(g_modname, charsmax(g_modname), game_name)

Você Muda:

formatex(g_modname, charsmax(g_modname), "Zombie Plague 4.3")