Raised This Month: $51 Target: $400
 12% 

Block Damage and stock


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Shooting King
RAAASENGAN
Join Date: Mar 2012
Location: India
Old 07-21-2013 , 01:44   Block Damage and stock
Reply With Quote #1

1. Is there a way to block Damage only with <amxmodx> not with ham & fm ?

2. What is the difference btw,
PHP Code:
1. stock function()
2. function() 
__________________
As every time said, don't ever UNDERESTIMATE me.

Donate - Here

Last edited by Shooting King; 07-21-2013 at 01:50.
Shooting King is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 07-21-2013 , 04:11   Re: Block Damage and stock
Reply With Quote #2

1. Tell first the reason ; but it's most likely a retarted one.

2. When using "stock" if function is not found on compilation, it will be ignored.
__________________
Arkshine is offline
Shooting King
RAAASENGAN
Join Date: Mar 2012
Location: India
Old 07-21-2013 , 06:06   Re: Block Damage and stock
Reply With Quote #3

Quote:
Originally Posted by Arkshine View Post
1. Tell first the reason ; but it's most likely a retarted one.
This is actually a request in Suggestion forums, When T's stab CT's then CT's must be changed to T. First I though to hook Damage event and keep on adding the damages to the player's health, but its retarded. So when a CT player hit T and if his damage is >= 100 the player simply dies. (It is because the register_event is called at the end of the event).
Quote:
Originally Posted by Arkshine View Post
When using "stock" if function is not found on compilation, it will be ignored.
Didn't get you Ark
__________________
As every time said, don't ever UNDERESTIMATE me.

Donate - Here
Shooting King is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 07-21-2013 , 06:16   Re: Block Damage and stock
Reply With Quote #4

1. You don't answer to the question.
2. If you have a function which is not called at least one time, when compiling the plugin you will get warning and function will be integrated even though not used. Using "stock" means if a function is not used, it's ignored by the compiler, then you get no warning and function is not integrated.
__________________
Arkshine is offline
Shooting King
RAAASENGAN
Join Date: Mar 2012
Location: India
Old 07-21-2013 , 06:24   Re: Block Damage and stock
Reply With Quote #5

Quote:
Originally Posted by Arkshine View Post
When using "stock" if function is not found on compilation, it will be ignored.
Quote:
Originally Posted by Arkshine View Post
If you have a function which is not called at least one time, when compiling the plugin you will get warning and function will be integrated even though not used. Using "stock" means if a function is not used, it's ignored by the compiler, then you get no warning and function is not integrated.
You should have used "function use" instead of "function" in the previous post . Whatever, Got that point.
Quote:
Originally Posted by Arkshine View Post
You don't answer to the question.
I though you asked the use of Damage Block. If I should use Ham_takeDamage it would be relatively slow compared to amxmodx and I should include ham for only this purpose.
__________________
As every time said, don't ever UNDERESTIMATE me.

Donate - Here

Last edited by Shooting King; 07-21-2013 at 06:26.
Shooting King is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 07-21-2013 , 06:27   Re: Block Damage and stock
Reply With Quote #6

Slow ? What are you're talking about ?
__________________
Arkshine is offline
Shooting King
RAAASENGAN
Join Date: Mar 2012
Location: India
Old 07-21-2013 , 06:55   Re: Block Damage and stock
Reply With Quote #7

Quote:
Originally Posted by Shooting King View Post
I should include ham for only this purpose.
__________________
As every time said, don't ever UNDERESTIMATE me.

Donate - Here
Shooting King is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 07-21-2013 , 07:15   Re: Block Damage and stock
Reply With Quote #8

And ? So at the end it's well for a retarded reason. If you don't understand how works things you should not make assumptions. Saying it's "slow" doesn't make sense and is wrong. Just use the available tool for your needs.
__________________
Arkshine is offline
devWaleed
Member
Join Date: Apr 2013
Location: Karachi, Pakistan
Old 07-21-2013 , 07:36  
Reply With Quote #9

Correct me if I am wrong but wouldn't HAM_SUPERCEDE work on Ham_TraceAttack or with Ham_TakeDamage?


MERGE EDIT
PHP Code:
RegisterHam(Ham_TakeDamage"player""onDamage"0);

public 
onDamage(id){
    return 
HAM_SUPERCEDE;

Yup! Tried it, This will do your work if you want to use Ham.

Last edited by YamiKaitou; 07-21-2013 at 07:43.
devWaleed is offline
Send a message via Skype™ to devWaleed
Shooting King
RAAASENGAN
Join Date: Mar 2012
Location: India
Old 07-21-2013 , 07:50   Re: Block Damage and stock
Reply With Quote #10

Quote:
Originally Posted by Arkshine View Post
And ? So at the end it's well for a retarded reason. If you don't understand how works things you should not make assumptions. Saying it's "slow" doesn't make sense and is wrong. Just use the available tool for your needs.
Ok Ok Its faster than amx. Is there a way with amx ??
__________________
As every time said, don't ever UNDERESTIMATE me.

Donate - Here
Shooting King 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 18:24.


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