Zumbis Online
Últimos assuntos
» [ZP AMXX] CSO Shop Costumes
por Eclipse 13/12/2017, 9:32 pm

» Servidores da P[c]T eGames
por scho 3/12/2017, 4:22 pm

» (Ajuda) ZM VIP com Status do Perfect por Menssagem para Dono tambem!
por scho 26/11/2017, 9:09 am

» Voltei ao fórum
por zgd.dll 25/11/2017, 12:20 am

» plugin gamemode infection
por cancels 21/11/2017, 10:22 pm

» plugin ap force_jump
por cancels 21/11/2017, 9:29 pm

» plugin gamemode sniper
por cancels 21/11/2017, 7:58 pm

» plugin class zm_climb
por [P]erfec[T] [S]cr[@]s[H] 17/11/2017, 5:46 pm

» plugin item t-virus
por [P]erfec[T] [S]cr[@]s[H] 17/11/2017, 5:39 pm

» Hide Sheek Supply Box
por cancels 12/11/2017, 9:00 pm

Frases filosóficas Zplague:
....
Os membros mais ativos da semana
Eclipse
 

Adsense

duvida da up xm1014

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

duvida da up xm1014

Mensagem por Taledo12 em 3/10/2013, 5:57 pm

galera olha essa sma que eu editei, eu peguei a sma da ak que upa e mudei tudo  para xm1014, para ela upar mais quando eu fui compilar dava 1 erro

olha a sma


Código:
#include <amxmodx>
#include <engine>
#include <zombieplague>
#include <hamsandwich>

#define PLUGIN "Uper_xm1014"
#define VERSION "1.0"
#define AUTHOR ".."
#define is_valid_player(%1) (1 <= %1 <= 32)

new v_stix_xm1014[]="models/zombie_plague/v_ak47_thunder.mdl"
new const p_stix_xm1014[] = "models/zombie_plague/p_ak47_thunder.mdl"

new bool:g_bHasStixxm1014[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", "4.0")
   
   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", "fwakeDamage")
      
   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_bHasStixxm1014[attacker] )
   {
      SetHamParamFloat(2, damage * get_pcvar_float( cvar_dmgmultiplier ) )
   }
}

public plugin_precache()
{
   precache_model(v_stix_xm1014)
   precache_model(p_stix_xm1014)
   precache_sound(sound_thunder)
   g_Lightning = precache_model("sprites/lgtning.spr");
   g_Smoke = precache_model("sprites/steam1.spr");
}

public client_connect(id)
{
   g_bHasStixxm1014[id] = false
}

public client_disconnect(id)
{
   g_bHasStixxm1014[id] = false
}

public zp_user_infected_post(infected, infector)
{
   if (g_bHasStixxm1014[infected])
   {
      g_bHasStixxm1014[infected] = false
   }
}

public fw_PlayerKilled(victim, attacker, shouldgib)
{
   g_bHasStixxm1014[victim] = false
}

public ham_PlayerSpawn_Post(id)
{
   g_bHasStixxm1014[id] = false
   
   return PLUGIN_CONTINUE
}

public event_round_start()
{
   for (new i = 1; i <= 32; i++)
   {
      g_bHasStixxm1014[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 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_bHasStixxm1014[id] = true
}

public event_CurWeapon(id)
{
new weapid = read_data(2)

if(!is_user_alive(id))
   return;
   
   if(g_bHasStixxm1014[id] && weapid == CSW_XM1014)
   {
      entity_set_string(id, EV_SZ_viewmodel, v_stix_xm1014)
      entity_set_string(id, EV_SZ_weaponmodel, p_stix_xm1014)
   }
}


ta dando erro nessa linha


Código:
if(g_bHasStixxm1014[id] && weapid == CSW_XM1014)
quem puder me ajudar agradeço

____________________________________________

SOU RIPADOR, VEADO E FRESCO
avatar
Taledo12
Humano
Humano

Masculino Número de Mensagens : 63
Ammo Packs : 1525
Honra : -12
Data de inscrição : 19/09/2013

Ver perfil do usuário

Voltar ao Topo Ir em baixo

Re: duvida da up xm1014

Mensagem por Dexter em 3/10/2013, 6:03 pm

era so falta de espaço
olha ae:
Código:
#include <amxmodx>
#include <engine>
#include <zombieplague>
#include <hamsandwich>

#define PLUGIN "Uper_xm1014"
#define VERSION "1.0"
#define AUTHOR ".."
#define is_valid_player(%1) (1 <= %1 <= 32)

new v_stix_xm1014[]="models/zombie_plague/v_ak47_thunder.mdl"
new const p_stix_xm1014[] = "models/zombie_plague/p_ak47_thunder.mdl"

new bool:g_bHasStixxm1014[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", "4.0")
 
  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", "fwakeDamage")
     
  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_bHasStixxm1014[attacker] )
  {
      SetHamParamFloat(2, damage * get_pcvar_float( cvar_dmgmultiplier ) )
  }
}

public plugin_precache()
{
  precache_model(v_stix_xm1014)
  precache_model(p_stix_xm1014)
  precache_sound(sound_thunder)
  g_Lightning = precache_model("sprites/lgtning.spr");
  g_Smoke = precache_model("sprites/steam1.spr");
}

public client_connect(id)
{
  g_bHasStixxm1014[id] = false
}

public client_disconnect(id)
{
  g_bHasStixxm1014[id] = false
}

public zp_user_infected_post(infected, infector)
{
  if (g_bHasStixxm1014[infected])
  {
      g_bHasStixxm1014[infected] = false
  }
}

public fw_PlayerKilled(victim, attacker, shouldgib)
{
  g_bHasStixxm1014[victim] = false
}

public ham_PlayerSpawn_Post(id)
{
  g_bHasStixxm1014[id] = false
 
  return PLUGIN_CONTINUE
}

public event_round_start()
{
  for (new i = 1; i <= 32; i++)
  {
      g_bHasStixxm1014[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 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_bHasStixxm1014[id] = true
}

public event_CurWeapon(id)
{
new weapid = read_data(2)

if(!is_user_alive(id))
  return;
 
if(g_bHasStixxm1014[id] && weapid == CSW_XM1014)
  {
      entity_set_string(id, EV_SZ_viewmodel, v_stix_xm1014)
      entity_set_string(id, EV_SZ_weaponmodel, p_stix_xm1014)
  }
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ ansicpg1252\\ deff0\\ deflang1046{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ f0\\ fs16 \n\\ par }
*/

____________________________________________

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

CSWORD
avatar
Dexter
Humano
Humano

Nick : Dexter
Masculino Número de Mensagens : 913
'-'
Ammo Packs : 1143
Honra : -3
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: duvida da up xm1014

Mensagem por Taledo12 em 3/10/2013, 6:05 pm

Dexter escreveu:era so falta de espaço
olha ae:
Código:
#include <amxmodx>
#include <engine>
#include <zombieplague>
#include <hamsandwich>

#define PLUGIN "Uper_xm1014"
#define VERSION "1.0"
#define AUTHOR ".."
#define is_valid_player(%1) (1 <= %1 <= 32)

new v_stix_xm1014[]="models/zombie_plague/v_ak47_thunder.mdl"
new const p_stix_xm1014[] = "models/zombie_plague/p_ak47_thunder.mdl"

new bool:g_bHasStixxm1014[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", "4.0")
  
   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", "fwakeDamage")
      
   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_bHasStixxm1014[attacker] )
   {
      SetHamParamFloat(2, damage * get_pcvar_float( cvar_dmgmultiplier ) )
   }
}

public plugin_precache()
{
   precache_model(v_stix_xm1014)
   precache_model(p_stix_xm1014)
   precache_sound(sound_thunder)
   g_Lightning = precache_model("sprites/lgtning.spr");
   g_Smoke = precache_model("sprites/steam1.spr");
}

public client_connect(id)
{
   g_bHasStixxm1014[id] = false
}

public client_disconnect(id)
{
   g_bHasStixxm1014[id] = false
}

public zp_user_infected_post(infected, infector)
{
   if (g_bHasStixxm1014[infected])
   {
      g_bHasStixxm1014[infected] = false
   }
}

public fw_PlayerKilled(victim, attacker, shouldgib)
{
   g_bHasStixxm1014[victim] = false
}

public ham_PlayerSpawn_Post(id)
{
   g_bHasStixxm1014[id] = false
  
   return PLUGIN_CONTINUE
}

public event_round_start()
{
   for (new i = 1; i <= 32; i++)
   {
      g_bHasStixxm1014[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 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_bHasStixxm1014[id] = true
}

public event_CurWeapon(id)
{
new weapid = read_data(2)

if(!is_user_alive(id))
   return;
  
if(g_bHasStixxm1014[id] && weapid == CSW_XM1014)
   {
      entity_set_string(id, EV_SZ_viewmodel, v_stix_xm1014)
      entity_set_string(id, EV_SZ_weaponmodel, p_stix_xm1014)
   }
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ ansicpg1252\\ deff0\\ deflang1046{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ f0\\ fs16 \n\\ par }
*/
vlw pode fechar...

____________________________________________

SOU RIPADOR, VEADO E FRESCO
avatar
Taledo12
Humano
Humano

Masculino Número de Mensagens : 63
Ammo Packs : 1525
Honra : -12
Data de inscrição : 19/09/2013

Ver perfil do usuário

Voltar ao Topo Ir em baixo

Re: duvida da up xm1014

Mensagem por Dexter em 3/10/2013, 6:06 pm

Fechado!

____________________________________________

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

CSWORD
avatar
Dexter
Humano
Humano

Nick : Dexter
Masculino Número de Mensagens : 913
'-'
Ammo Packs : 1143
Honra : -3
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: duvida da up xm1014

Mensagem por Conteúdo patrocinado


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