Raised This Month: $ Target: $400
 0% 

[REQ] - No Fall Damage [Immune admin]


Post New Thread Reply   
 
Thread Tools Display Modes
Torge
Veteran Member
Join Date: Oct 2011
Old 11-17-2012 , 19:53   Re: [REQ] - No Fall Damage [Immune admin]
Reply With Quote #11

Read my post again.
Torge is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 11-17-2012 , 20:21   Re: [REQ] - No Fall Damage [Immune admin]
Reply With Quote #12

Quote:
Originally Posted by B l e n d View Post
This code is much more stable than yours
How can you tell? They are both equally as stable

Quote:
Your code only works the first playround.
Wrong, it will only block the damage during the first 5 seconds after spawn.
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
B l e n d
BANNED
Join Date: Oct 2012
Location: Somewhere on the planet
Old 11-17-2012 , 20:33   Re: [REQ] - No Fall Damage [Immune admin]
Reply With Quote #13

Quote:
Originally Posted by YamiKaitou View Post
How can you tell? They are both equally as stable


Wrong, it will only block the damage during the first 5 seconds after spawn.
Not more stable but, more clean

Last edited by B l e n d; 11-17-2012 at 20:34.
B l e n d is offline
Send a message via Skype™ to B l e n d
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 11-17-2012 , 20:36   Re: [REQ] - No Fall Damage [Immune admin]
Reply With Quote #14

Quote:
Originally Posted by B l e n d View Post
Okay, so you know how to add VIP text to my plugin? Topic did change in the post on page 1.
1 request per topic, it is much easier to track. Plus, you give very little detail about your new request.

Quote:
Originally Posted by B l e n d View Post
Not more stable but, more clean
Your opinion, both are equally as clean to me
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).

Last edited by YamiKaitou; 11-17-2012 at 20:36.
YamiKaitou is offline
B l e n d
BANNED
Join Date: Oct 2012
Location: Somewhere on the planet
Old 11-17-2012 , 22:30   Re: [REQ] - No Fall Damage [Immune admin]
Reply With Quote #15

Quote:
Originally Posted by YamiKaitou View Post
1 request per topic, it is much easier to track. Plus, you give very little detail about your new request.



Your opinion, both are equally as clean to me
Aha, okey. Lets say.. A bit less of code, a lot more job.
B l e n d is offline
Send a message via Skype™ to B l e n d
pokemonmaster
princess milk
Join Date: Nov 2010
Location: Somewhere in this world
Old 11-17-2012 , 22:45   Re: [REQ] - No Fall Damage [Immune admin]
Reply With Quote #16

Quote:
Originally Posted by YamiKaitou View Post
Wrong, it will only block the damage during the first 5 seconds after spawn.
Correct
__________________
اَشْهَدُ اَنْ لَّآ اِلٰهَ اِلَّا اللہُ وَحْدَه لَا شَرِيْكَ لَه وَ اَشْهَدُ اَنَّ مُحَمَّدًا عَبْدُه وَرَسُوْلُه
No longer active in AMXX. Sorry.
pokemonmaster is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 11-18-2012 , 02:49   Re: [REQ] - No Fall Damage [Immune admin]
Reply With Quote #17

Quote:
Originally Posted by YamiKaitou View Post
Your opinion, both are equally as clean to me
1st one is setting tasks for nothing, variables would do a better job.

If you want a not hardcoded version (admin flag settable by cvar) :

Spoiler
__________________
- tired and retired -

- my plugins -

Last edited by ConnorMcLeod; 11-18-2012 at 02:55.
ConnorMcLeod is offline
B l e n d
BANNED
Join Date: Oct 2012
Location: Somewhere on the planet
Old 11-18-2012 , 09:30   Re: [REQ] - No Fall Damage [Immune admin]
Reply With Quote #18

Quote:
Originally Posted by ConnorMcLeod View Post
1st one is setting tasks for nothing, variables would do a better job.

If you want a not hardcoded version (admin flag settable by cvar) :
Perfect
Thank you Connor!
B l e n d is offline
Send a message via Skype™ to B l e n d
s0s0
Junior Member
Join Date: Oct 2012
Location: VEN
Old 06-22-2013 , 00:54   Re: [REQ] - No Fall Damage [Immune admin]
Reply With Quote #19

Quote:
Originally Posted by pokemonmaster View Post
That's not what he asked for ...
This is what he asked for ...
could be edited, only players with specific names, but are not administrators ... is it possible?

PHP Code:
#include < amxmodx > 
#include < hamsandwich > 
#include < hlsdk_const > 

new name_player[] = "Name here";       // Edited
new name_player2[] = "Name here";       // Edited

public plugin_init( ) 
    
RegisterHamHam_TakeDamage"player""hamTakeDamage" ); 

public 
hamTakeDamagevictiminflictorattackerFloat:damagedamagebits 

    if( 
damagebits == DMG_FALL && get_user_name(victim) & name_player )       // Edited
    
if( damagebits == DMG_FALL && get_user_name(victim) & name_player2 )       // Edited
        
return HAM_SUPERCEDE
     
    return 
HAM_IGNORED

the code is wrong "no compile"
__________________

Last edited by s0s0; 06-22-2013 at 01:09. Reason: space
s0s0 is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 06-22-2013 , 00:57   Re: [REQ] - No Fall Damage [Immune admin]
Reply With Quote #20

Quote:
Originally Posted by s0s0 View Post
could be edited, only players with specific names, but are not administrators ... is it possible?

PHP Code:
#include < amxmodx > 
#include < hamsandwich > 
#include < hlsdk_const > 

new name_player[] = "Name here";       // Edited
new name_player2[] = "Name here";       // Edited

public plugin_init( ) 
    
RegisterHamHam_TakeDamage"player""hamTakeDamage" ); 

public 
hamTakeDamagevictiminflictorattackerFloat:damagedamagebits 

    if( 
damagebits == DMG_FALL && get_user_name(victim) & name_player )       // Edited
    
if( damagebits == DMG_FALL && get_user_name(victim) & name_player2 )       // Edited
        
return HAM_SUPERCEDE
     
    return 
HAM_IGNORED

the code is wrong "no compile"
You are using get_user_name incorrectly
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou 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 09:25.


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