Raised This Month: $ Target: $400
 0% 

[ZP] Addons: DeathMachine v1.2 (New weapon for Survivor)(Fixed Drop WP For Bot)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
yokomo
Surprise Ascot!
Join Date: May 2010
Location: Malaysia
Old 12-20-2010 , 04:52   Re: [ZP] Addons: DeathMachine (New weapon for Survivor)
Reply With Quote #1

Quote:
Originally Posted by albert123 View Post
Sometime, stupid bot drop his weapon...
Why need to play with bot? just add code is_user_bot --> function block drop cmd.
__________________
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
abdul-rehman
Veteran Member
Join Date: Jan 2010
Location: Khi, Pakistan
Old 12-20-2010 , 02:18   Re: [ZP] Addons: DeathMachine (New weapon for Survivor)
Reply With Quote #2

Code:
(curweapon == CSW_M249)
It isnt nessacary that a survivor haves a machine gun only, he can have any weapon depending on the cvar zp_surv_weapon so it would be better if you would just check if the player is a survivor and then replace the models and other stuff

And:
Code:
public weapon_speedup(id) {     new weaponid = get_user_weapon(id)     if(is_user_alive(id) && weaponid == SurWeapon)     {         // Thanks sontung0         new Ent = get_weapon_ent(id,weaponid)         new Float:N_Speed         if(Ent)         {             N_Speed = get_pcvar_float(cvar_speed)             new Float:Delay = get_pdata_float( Ent, 46, 4) * N_Speed                if (Delay > 0.0) {                 set_pdata_float( Ent, 46, Delay, 4)             }         }     } }
You never actually call this function so remove it or either make a purpose for it ..
__________________

My Plugins For ZP

Inactive due to College and Studies
abdul-rehman is offline
Send a message via Yahoo to abdul-rehman Send a message via Skype™ to abdul-rehman
abdul-rehman
Veteran Member
Join Date: Jan 2010
Location: Khi, Pakistan
Old 12-24-2010 , 09:09   Re: [ZP] Addons: DeathMachine (New weapon for Survivor)
Reply With Quote #3

Quote:
Originally Posted by abdul-rehman View Post
Code:
(curweapon == CSW_M249)
It isnt nessacary that a survivor haves a machine gun only, he can have any weapon depending on the cvar zp_surv_weapon so it would be better if you would just check if the player is a survivor and then replace the models and other stuff
You should consider this i think
__________________

My Plugins For ZP

Inactive due to College and Studies
abdul-rehman is offline
Send a message via Yahoo to abdul-rehman Send a message via Skype™ to abdul-rehman
5c0r-|3i0
Veteran Member
Join Date: Nov 2008
Location: Việt Nam
Old 12-20-2010 , 05:22   Re: [ZP] Addons: DeathMachine (New weapon for Survivor)
Reply With Quote #4

@abdul: +1 .
@yokomo: Some people test plugins with Bots , or some people don't have Internet to play on Dedicated Server.
5c0r-|3i0 is offline
dias
BANNED
Join Date: Jul 2009
Location: South Vietnam
Old 12-20-2010 , 05:42   Re: [ZP] Addons: DeathMachine (New weapon for Survivor)
Reply With Quote #5

@abdul:
Thanks
- I'll fixing now...
dias is offline
Send a message via Yahoo to dias Send a message via Skype™ to dias
F0RCE
Senior Member
Join Date: Oct 2010
Old 12-23-2010 , 15:31   Re: [ZP] Addons: DeathMachine v1.1 (New weapon for Survivor)
Reply With Quote #6

SMA won't compile since you didn't upload zombieplague.inc . Everyone can compile it themselves but it's a pain in ass for newbies.
F0RCE is offline
SonicSonedit
Veteran Member
Join Date: Nov 2008
Location: Silent Hill
Old 12-23-2010 , 15:55   Re: [ZP] Addons: DeathMachine v1.1 (New weapon for Survivor)
Reply With Quote #7

What's the point of this plugin? We already have AWESOME vulcan minigun.
__________________

SonicSonedit is offline
teobrvt1995
Senior Member
Join Date: Aug 2010
Location: Việt Nam
Old 12-24-2010 , 00:58   Re: [ZP] Addons: DeathMachine v1.1 (New weapon for Survivor)
Reply With Quote #8

My zp 4.3 plugjn, survivor can drop his weapon and use flashlight.so plz add w_model.
teobrvt1995 is offline
Send a message via Yahoo to teobrvt1995
dias
BANNED
Join Date: Jul 2009
Location: South Vietnam
Old 12-24-2010 , 05:13   Re: [ZP] Addons: DeathMachine v1.2 (New weapon for Survivor)(Fixed Drop WP For Bot)
Reply With Quote #9

Fixed.
Please download new version
---------------
Now. Bot can't drop his weapon...
dias is offline
Send a message via Yahoo to dias Send a message via Skype™ to dias
Ryokin
Senior Member
Join Date: Jan 2010
Old 12-24-2010 , 05:46   Re: [ZP] Addons: DeathMachine v1.2 (New weapon for Survivor)(Fixed Drop WP For Bot)
Reply With Quote #10

Quote:
Originally Posted by dias View Post
Fixed.

Now. Bot can't drop his weapon...
you should check if player is bot and is survivor or it will block all drop command ( also player is not bot)
__________________
NH4CL + NaOH -> NH3 + H2O + NaCL
Ryokin is offline
Reply



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 15:28.


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