Raised This Month: $32 Target: $400
 8% 

[HELP]Zombie Nemesis Problem


Post New Thread Reply   
 
Thread Tools Display Modes
great0418
Junior Member
Join Date: Aug 2010
Old 05-21-2011 , 03:07   Re: [HELP]Zombie Nemesis Problem
Reply With Quote #11

Quote:
Originally Posted by jc980 View Post
JUST POST THE GODDAMN CODE!!!!!!!!!!! OF INVISO ZOMBIE!!!!!!!!

Im Just Got "Three sections of jump" Code

PHP Code:
CVARS:
 
zp_tight_jump 4 (Default)
*/
#include <amxmodx>
#include <engine>
#include <zombieplague>
#define SUPPORT_BOT_TO_USE
#if defined SUPPORT_BOT_TO_USE
new Float:bot_jump_time[33], Float:bot_jump_wait_time[33]
#endif
// Tight Zombie Atributes
new const zclass_name[] = { "多重跳殭屍" // 喪屍名字
new const zclass_info[] = { "使用多重跳" // 喪屍說明
new const zclass_model[] = { "zombie_resident" // 喪屍模型
new const zclass_clawmodel[] = { "v_knife_zombie.mdl" // 爪的模型
const zclass_health 1800 // 血量
const zclass_speed 250 // 速度
const Float:zclass_gravity 1.0 // 重力
const Float:zclass_knockback 1.25 // 擊退
new g_zclass_tight
new jumpznum[33]
new 
bool:dozjump[33] = false
new jump_count_num[33]
new 
cvar_jumpscvar_max_jumps
new maxplayers
public plugin_init()
{
 
register_plugin("[ZP] Class:Tight""1.0c""http://cs.unethost.com")
 
cvar_jumps register_cvar("zp_tight_jumps""2"// 使用多段跳時,繼續連跳的最大次數
 
cvar_max_jumps register_cvar("zp_tight_max_jumps""0"// 單一回合能使用多段跳的可用次數 (設定成 0 代表不限制次數)
 
 
register_event("ResetHUD","NewRound","be")
 
register_event("DeathMsg""Death""a")
 
 
maxplayers get_maxplayers()
}
public 
plugin_precache()
{
 
g_zclass_tight zp_register_zombie_class(zclass_namezclass_infozclass_modelzclass_clawmodelzclass_healthzclass_speedzclass_gravityzclass_knockback)
}
public 
zp_user_infected_post(idinfector)
{
 
// Check if the infected player is using our custom zombie class
 
if (zp_get_user_zombie_class(id) == g_zclass_tight)
 {
  
client_print(idprint_chat"[殭屍功能提示] 您能使用%d次多重跳!"get_pcvar_num(cvar_jumps))
 }
}
public 
zp_user_humanized_post(id)
{
 
jumpznum[id] = 0
 dozjump
[id] = false
 jump_count_num
[id] = get_pcvar_num(cvar_max_jumps)
}
public 
client_putinserver(id)
{
 
jumpznum[id] = 0
 dozjump
[id] = false
 jump_count_num
[id] = get_pcvar_num(cvar_max_jumps)
}
public 
client_disconnect(id)
{
 
jumpznum[id] = 0
 dozjump
[id] = false
 jump_count_num
[id] = get_pcvar_num(cvar_max_jumps)
}
public 
NewRound(id)
{
 
jumpznum[id] = 0
 dozjump
[id] = false
 jump_count_num
[id] = get_pcvar_num(cvar_max_jumps)
}
public 
Death()
{
 new 
player read_data(2)
 if ((
player <= 0) || (player maxplayers))
  return;
 
 
jumpznum[player] = 0
 dozjump
[player] = false
 jump_count_num
[player] = get_pcvar_num(cvar_max_jumps)
}
public 
client_PreThink(id)
{
 if(!
is_user_alive(id)) 
  return 
PLUGIN_CONTINUE
 
 
if (zp_get_user_nemesis(id))
  return 
PLUGIN_CONTINUE
 
 
if(!zp_get_user_zombie(id) || (zp_get_user_zombie_class(id) != g_zclass_tight))
  return 
PLUGIN_CONTINUE
 
 
if (get_pcvar_num(cvar_max_jumps) > 0)
 {
  
show_message_center(id"[多重跳次數剩餘:%d]"jump_count_num[id])
  
  if (
jump_count_num[id] <= 0)
   return 
PLUGIN_CONTINUE
 
}
 
 new 
nzbut get_user_button(id)
 new 
ozbut get_user_oldbutton(id)
 
 
#if defined SUPPORT_BOT_TO_USE
 
if (is_user_bot(id))
 {
  if ((
nzbut IN_JUMP) && (get_entity_flags(id) & FL_ONGROUND))
  {
   
jumpznum[id] = random_num(1get_pcvar_num(cvar_jumps))
   
bot_jump_time[id] = get_gametime()
   
bot_jump_wait_time[id] = float(0)
  }
  
  if (
jumpznum[id]>0)
  {
   if (
get_gametime() - bot_jump_time[id] >= bot_jump_wait_time[id])  
   {
    
dozjump[id] = true
    jumpznum
[id]--
    
    if (
get_pcvar_num(cvar_max_jumps) > 0)
    {
     
jump_count_num[id]--
     
     if (
jump_count_num[id] <= 0)
      return 
PLUGIN_CONTINUE
    
}
    
    
bot_jump_wait_time[id] = random_float(0.41.2)
    
bot_jump_time[id] = get_gametime()
    
    return 
PLUGIN_CONTINUE
   
}
  }
  
  if (
get_entity_flags(id) & FL_ONGROUND)
   
jumpznum[id] = 0
  
  
return PLUGIN_CONTINUE
 
}
 
#endif
 
 
if((nzbut IN_JUMP) && !(get_entity_flags(id) & FL_ONGROUND) && !(ozbut IN_JUMP))
 {
  if (
jumpznum[id] < get_pcvar_num(cvar_jumps))
  {
   
dozjump[id] = true
   jumpznum
[id]++
   
   if (
get_pcvar_num(cvar_max_jumps) > 0)
   {
    
jump_count_num[id]--
    
    if (
jump_count_num[id] <= 0)
     
client_print(idprint_center"[您已用完多重跳次數]")
   }
   
   return 
PLUGIN_CONTINUE
  
}
 }
 
 if((
nzbut IN_JUMP) && (get_entity_flags(id) & FL_ONGROUND))
 {
  
jumpznum[id] = 0
  
return PLUGIN_CONTINUE
 
}
 
 return 
PLUGIN_CONTINUE
}
public 
client_PostThink(id)
{
 if(!
is_user_alive(id))
  return 
PLUGIN_CONTINUE
 
 
if (zp_get_user_nemesis(id))
  return 
PLUGIN_CONTINUE
 
 
if(!zp_get_user_zombie(id) || (zp_get_user_zombie_class(id) != g_zclass_tight))
  return 
PLUGIN_CONTINUE
 
 
if(dozjump[id] == true)
 {
  new 
Float:vezlocityz[3
  
entity_get_vector(idEV_VEC_velocityvezlocityz)
  
vezlocityz[2] = random_float(265.0285.0)
  
entity_set_vector(idEV_VEC_velocityvezlocityz)
  
dozjump[id] = false
  
return PLUGIN_CONTINUE
 
}
 
 return 
PLUGIN_CONTINUE
}
show_message_center(target, const message[], any:...)
{
 new 
buffer[256]
 
vformat(buffersizeof buffer 1message3)
 
message_begin(MSG_ONEget_user_msgid("StatusText"), {000}, target)
 
write_byte(0)
 
write_string(buffer)
 
message_end()

great0418 is offline
jc980
Veteran Member
Join Date: Jan 2010
Location: God is with us...
Old 05-21-2011 , 03:21   Re: [HELP]Zombie Nemesis Problem
Reply With Quote #12

Quote:
Originally Posted by great0418 View Post
That Problem is:
If I Choose Invisible Of Zombies Skill
Next Round System Will Random Choose A Player To Nemesis
If System Choosen Me To Nemesis
I Wan That Invisible SKill To Nemesis.
how can we help you, if you dont even have the invisible zombie class code!
__________________
jc980 is offline
great0418
Junior Member
Join Date: Aug 2010
Old 05-21-2011 , 03:34   Re: [HELP]Zombie Nemesis Problem
Reply With Quote #13

Quote:
Originally Posted by jc980 View Post
how can we help you, if you dont even have the invisible zombie class code!

If Invisible Zombie change to "Three sections of jump"of zombie~ can? Invisible Zombie Just A Simple~
great0418 is offline
yokomo
Surprise Ascot!
Join Date: May 2010
Location: Malaysia
Old 05-21-2011 , 09:48   Re: [HELP]Zombie Nemesis Problem
Reply With Quote #14

Quote:
Originally Posted by great0418 View Post
If Invisible Zombie change to "Three sections of jump"of zombie~ can? Invisible Zombie Just A Simple~
Ok you won't upload the code right? ok follow this:

At invisible command add this, for example:

PHP Code:
public InvisibleCommand(id)
{
      if (
zp_get_user_nemesis(id)) return PLUGIN_HANDLED;

      
// your code must be start here

__________________
Team-MMG CS1.6 Servers:
✅ MultiMod -- 103.179.44.152:27016
✅ Zombie Plague -- 103.179.44.152:27015
✅ Zombie Escape -- 103.179.44.152:27017
✅ Klassik Kombat -- 103.179.44.152:27018
✅ Boss-Battle -- 103.179.44.152:27019
yokomo is offline
great0418
Junior Member
Join Date: Aug 2010
Old 05-22-2011 , 04:30   Re: [HELP]Zombie Nemesis Problem
Reply With Quote #15

Quote:
Originally Posted by yokomo View Post
Ok you won't upload the code right? ok follow this:

At invisible command add this, for example:

PHP Code:
public InvisibleCommand(id)
{
      if (
zp_get_user_nemesis(id)) return PLUGIN_HANDLED;
 
      
// your code must be start here

Add in the zombie_plague40.sma inside?

PHP Code:
public InvisibleCommand(id)
{
      if (
zp_get_user_nemesis(id)) return PLUGIN_HANDLED;
 
      
// your code must be start here

great0418 is offline
DJHD!
Veteran Member
Join Date: Dec 2009
Location: Santiago, Chile
Old 05-22-2011 , 19:26   Re: [HELP]Zombie Nemesis Problem
Reply With Quote #16

Quote:
Originally Posted by great0418 View Post
Add in the zombie_plague40.sma inside?

PHP Code:
public InvisibleCommand(id)
{
      if (
zp_get_user_nemesis(id)) return PLUGIN_HANDLED;
 
      
// your code must be start here

WTF is in the zombie class.
__________________
Quote:
Originally Posted by XINLEI View Post
Porque rocccos trata de ser el metalicross que nunca va a poder ser.
DJHD! is offline
Send a message via MSN to DJHD!
sunx
Veteran Member
Join Date: Mar 2009
Location: Germany
Old 05-23-2011 , 02:59   Re: [HELP]Zombie Nemesis Problem
Reply With Quote #17

Go to allied modders, find a thread like this and have sth. to laugh about. Priceless !
__________________

sunx is offline
georgik57
Veteran Member
Join Date: Oct 2008
Location: 🎧Music World
Old 05-23-2011 , 04:55   Re: [HELP]Zombie Nemesis Problem
Reply With Quote #18

Quote:
Originally Posted by sunx View Post
Go to allied modders, find a thread like this and have sth. to laugh about. Priceless !
for the others, there is master card
__________________
georgik57 is offline
Send a message via MSN to georgik57 Send a message via Yahoo to georgik57 Send a message via Skype™ to georgik57
ErrorStereotype
Senior Member
Join Date: Feb 2011
Location: Bosnia and Herzegovina
Old 05-23-2011 , 06:43   Re: [HELP]Zombie Nemesis Problem
Reply With Quote #19

omg its cat zombie .. cat zombie is invisible defined by cvar command ----> CAT ZM
ErrorStereotype is offline
.Dare Devil.
Veteran Member
Join Date: Sep 2010
Old 05-23-2011 , 13:24   Re: [HELP]Zombie Nemesis Problem
Reply With Quote #20

Haha, feil.

Just upload your invisible zombie class here not jumper or hunter xD
.Dare Devil. is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 20:40.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode