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

[ZP] Extra item: Dynamic Deagle (UPD to v 1.0.4)


Post New Thread Reply   
 
Thread Tools Display Modes
abdul-rehman
Veteran Member
Join Date: Jan 2010
Location: Khi, Pakistan
Old 09-14-2010 , 12:31   Re: [ZP] Extra item: Dynamic Deagle
Reply With Quote #11

Code:
public client_connect(id)     has_deagle[id] = false public client_disconnect(id) {     has_deagle[id] = false } public death(id) {     has_deagle[id] = false } public zp_user_infected_post(id, infector) {     has_deagle[id] = false } public zp_round_started ( GameMode, id ) {     has_deagle[id] = false }
to
Code:
public client_disconnect(id)     has_deagle[id] = false public death(id)     has_deagle[id] = false public zp_user_infected_post(id, infector)     has_deagle[id] = false
And if you want to remove it on round start you need to loop through all players using register_event and dont use zp_round_started to set it false since sometimes the player id is 0 in the second parameter


And change this:
PHP Code:
entity_set_vector(this EV_VEC_punchangle fVec); 
To this:
PHP Code:
pevthis pev_punchangle fVec 
So you can remove the engine module

And remove this:
PHP Code:
 set_user_health 
With this:
PHP Code:
 set_pevidpev_health, ... ) 
To retrieve player's health use pev( id , pev_health, Float:Value )

So you can remove the fun module as well
So the includes will look like this:
Code:
#include <amxmodx> #include <zombieplague> #include <hamsandwich> #include <cstrike> #include <fakemeta> #include <xs>
Instead of this:
Code:
#include <amxmodx> #include <zombieplague> #include <hamsandwich> #include <cstrike> #include <fakemeta> #include <xs> #include <fun> #include <engine>
__________________

My Plugins For ZP

Inactive due to College and Studies

Last edited by abdul-rehman; 09-14-2010 at 12:34.
abdul-rehman is offline
Send a message via Yahoo to abdul-rehman Send a message via Skype™ to abdul-rehman
papyrus_kn
Senior Member
Join Date: Feb 2009
Location: Bulgaria
Old 09-14-2010 , 12:42   Re: [ZP] Extra item: Dynamic Deagle
Reply With Quote #12

Code:
L 09/14/2010 - 19:40:07: [AMXX]    [0] Dynamic_deagle.sma::HamPreDamage (line 74)
L 09/14/2010 - 19:40:34: [AMXX] Displaying debug trace (plugin "Dynamic_deagle.amxx")
L 09/14/2010 - 19:40:34: [AMXX] Run time error 4: index out of bounds 
L 09/14/2010 - 19:40:34: [AMXX]    [0] Dynamic_deagle.sma::HamPreDamage (line 74)
__________________
papyrus_kn is offline
Send a message via Skype™ to papyrus_kn
abdul-rehman
Veteran Member
Join Date: Jan 2010
Location: Khi, Pakistan
Old 09-14-2010 , 13:04   Re: [ZP] Extra item: Dynamic Deagle
Reply With Quote #13

Just add a check in ham take damage that whether player is a connected and is also valid ( 1 <= id <= 32 )
__________________

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
teobrvt1995
Senior Member
Join Date: Aug 2010
Location: Việt Nam
Old 09-15-2010 , 02:40   Re: [ZP] Extra item: Dynamic Deagle
Reply With Quote #14

nice
teobrvt1995 is offline
Send a message via Yahoo to teobrvt1995
Welgericht
Member
Join Date: Jul 2010
Old 09-15-2010 , 06:05   Re: [ZP] Extra item: Dynamic Deagle (UPD to v 1.0.1)
Reply With Quote #15

Update to ver 1.0.1
check first post for more information
Welgericht is offline
Excalibur.007
Veteran Member
Join Date: Sep 2009
Location: Singapore
Old 09-16-2010 , 10:11   Re: [ZP] Extra item: Dynamic Deagle (UPD to v 1.0.2)
Reply With Quote #16

Simple yet good.
@abdul
Btw, I prefer { } no matter the public function has only 1 line because the readability is better although 2 lines is added. Everybody has different style of coding so I'm not saying anything more. Just to say { } is better than lesser than 2 lines.
Excalibur.007 is offline
abdul-rehman
Veteran Member
Join Date: Jan 2010
Location: Khi, Pakistan
Old 09-16-2010 , 13:16   Re: [ZP] Extra item: Dynamic Deagle (UPD to v 1.0.2)
Reply With Quote #17

Quote:
Originally Posted by Excalibur.007 View Post
Simple yet good.
@abdul
Btw, I prefer { } no matter the public function has only 1 line because the readability is better although 2 lines is added. Everybody has different style of coding so I'm not saying anything more. Just to say { } is better than lesser than 2 lines.
I agree that its better but i also like it like this:
Code:
public client_is_dancing( no_one ) g_isalive[ no_one ] = true
__________________

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
Shaw
Junior Member
Join Date: Jun 2010
Old 09-16-2010 , 22:35   Re: [ZP] Extra item: Dynamic Deagle (UPD to v 1.0.2)
Reply With Quote #18

Small copy of another plug-in. Congrats on originality. (sarcasm)
__________________
Shaw is offline
Welgericht
Member
Join Date: Jul 2010
Old 09-17-2010 , 02:33   Re: [ZP] Extra item: Dynamic Deagle (UPD to v 1.0.2)
Reply With Quote #19

Shaw Yeah i agree, it is not full of originality or smth. else but Not everybody wants to have plug-in SAP Bank on their server.
I don't say it is bad, but it creates a big disbalans, and is not something special.

Last edited by Welgericht; 09-17-2010 at 17:01.
Welgericht is offline
Old 09-17-2010, 15:27
mottzi
This message has been deleted by mottzi. Reason: False
mottzi
Veteran Member
Join Date: May 2010
Location: Switzerland
Old 09-17-2010 , 15:28   Re: [ZP] Extra item: Dynamic Deagle (UPD to v 1.0.2)
Reply With Quote #20

Your
Indentation

is horrible
__________________
Quote:
#define true ((rand() % 2)? true: false) //Happy debugging suckers
mottzi is offline
Send a message via MSN to mottzi
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 19:34.


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