AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   ZP+Crysis problem with zp_deathmatch 2 and the nanosuit. (https://forums.alliedmods.net/showthread.php?t=162797)

darkbad945 07-23-2011 05:54

ZP+Crysis problem with zp_deathmatch 2 and the nanosuit.
 
So when you are zombie and the zp_deathmatch command is set to respawn zombies only the zombies respawn with the nanosuit . Fix ?

.Dare Devil. 07-23-2011 07:01

Re: ZP+Crysis problem with zp_deathmatch 2 and the nanosuit.
 
I will upload my edit nanosuit versioon "Zp_nanosuit"
just wait and look zombie plague forum

darkbad945 07-23-2011 07:07

Re: ZP+Crysis problem with zp_deathmatch 2 and the nanosuit.
 
Just pls tell me how to do the check for respawning zombies to not have nano please ;\

Thats all I need.

.Dare Devil. 07-23-2011 07:17

Re: ZP+Crysis problem with zp_deathmatch 2 and the nanosuit.
 
Quote:

Originally Posted by darkbad945 (Post 1516577)
Just pls tell me how to do the check for respawning zombies to not have nano please ;\

Thats all I need.

PHP Code:

public fw_spawn(id)
{
 if (
is_user_alive(id))
 {
  
msg_shadowidx(id,SHADOW_CREATE)
  
nanosuit_reset(id,true)
  
cl_nn_zombie[id] = false
  
  
if (cl_nn_has[id] == NANO_NO && !cl_is_bot[id] && (get_pcvar_num(pcv_nn_team) == _:cs_get_user_team(id) || get_pcvar_num(pcv_nn_team) != 3) && get_pcvar_num(pcv_nn_price) <= 0)
  {
   if (!
zp_get_user_zombie(id))
   {
    
cl_nn_has[id] = NANO_YES
    nanosuit_reset
(id,true)
   }
  }
  
  if (
cl_is_bot[id] && get_pcvar_num(pcv_nn_price) > && get_pcvar_num(pcv_nn_bot) && get_pcvar_num(pcv_nn_bot_buy))
   
nanosuit_buy(id)
 }
 
 return 
HAM_IGNORED


just find fw_spawn
and paste all

but add #include <zombieplague> :)

darkbad945 07-23-2011 07:25

Re: ZP+Crysis problem with zp_deathmatch 2 and the nanosuit.
 
Aww 10x bro !!! I love you. But i found another bug ! If i am using max speed and i got infected my zp is VERY slow and its speed is 300

.Dare Devil. 07-23-2011 07:48

Re: ZP+Crysis problem with zp_deathmatch 2 and the nanosuit.
 
Here is the my versioon
http://forums.alliedmods.net/showthread.php?t=162807

This has running in my server and working fine.


Just check my plugin.

Find fw_prethink
then i think just check how i have done this and edit by your-self your own plugin : )

I learned that way how to scripting : )

darkbad945 07-23-2011 07:51

Re: ZP+Crysis problem with zp_deathmatch 2 and the nanosuit.
 
great but is this fixed "If i am using max speed and i got infected my zp is VERY slow and its speed is 300" and if it is can u show me where ? trying to learn scripting (:

.Dare Devil. 07-23-2011 07:53

Re: ZP+Crysis problem with zp_deathmatch 2 and the nanosuit.
 
yeah, my plugin is fine.
i dont remember what is that problem so i cant help now.
need to find and test original plugin again .

darkbad945 07-23-2011 07:54

Re: ZP+Crysis problem with zp_deathmatch 2 and the nanosuit.
 
Even your plugin has that bug ;\

.Dare Devil. 07-23-2011 07:58

Re: ZP+Crysis problem with zp_deathmatch 2 and the nanosuit.
 
Quote:

Originally Posted by darkbad945 (Post 1516609)
Even your plugin has that bug ;\

what you mean "my zp is VERY slow "
like lag?

In my server this working fine, are you sure this bug is in my or original nanosuit plugin ?


All times are GMT -4. The time now is 00:48.

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