Raised This Month: $ Target: $400
 0% 

JUMP


Post New Thread Closed Thread   
 
Thread Tools Display Modes
Author Message
spedd
Junior Member
Join Date: Apr 2009
Old 04-07-2009 , 18:16   JUMP
#1

Hi I have a problem that the plugin I wrote after the terrorists do not jump from a height hp and I took some issue can someone fix it?

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


public  plugin_precache() 

register_plugin("Hp Skok""1.0""Autor")  
RegisterHam(Ham_TakeDamage"player""skok"


public 
skok(idvictiminflictorattackerFloat:damagedamage_type)
  
damage_type

if (!(
damage_type DMG_FALL)) 
return  
HAM_IGNORED

if(
cs_get_user_team (id) == CS_TEAM_T
return  
HAM_IGNORED
  
return 
HAM_SUPERCEDE


Last edited by spedd; 04-07-2009 at 18:21.
spedd is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 04-07-2009 , 18:50   Re: JUMP
#2

As per the Global Forum Rules, you need to have a descriptive topic title. If you wish for this topic to stay open, please correct the topic title before you post again.

As per the Global Forum Rules, you need to have a topic title that is not all caps. If you wish for this topic to stay open, please correct the topic title before you post again.
__________________
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
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 04-08-2009 , 10:01   Re: JUMP
#3

Quote:
Originally Posted by YamiKaitou View Post
If you wish for this topic to stay open, please correct the topic title before you post again.
__________________
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
Starsailor
horrible hahah
Join Date: Aug 2008
Location: Buenos Aires
Old 04-07-2009 , 19:01   Re: JUMP
#4

test this
PHP Code:
#include <amxmodx> 
#include <hamsandwich> 
#include <cstrike> 
#include <fakemeta> 


public  plugin_precache() 

    
register_plugin("Hp Skok""1.0""Autor")  
    
RegisterHam(Ham_TakeDamage"player""skok"


public 
skok(idvictiminflictorattackerFloat:damagedamage_type)

    if (!(
damage_type DMG_FALL)) 
        return  
HAM_IGNORED
    
    if(
cs_get_user_team (id) != CS_TEAM_T
        return  
HAM_IGNORED
    
    return 
HAM_SUPERCEDE

__________________
Find my plugins here..

Ex - Spanish Moderator.
Starsailor is offline
spedd
Junior Member
Join Date: Apr 2009
Old 04-08-2009 , 04:48   Re: JUMP
#5

Tested unfortunately does not work after stroke is still receiving HP. Do not be in a line down the teatm to? victim
spedd is offline
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 04-08-2009 , 05:40   Re: JUMP
#6

Quote:
Originally Posted by Starsailor View Post
test this
PHP Code:
#include <amxmodx> 
#include <hamsandwich> 
#include <cstrike> 
#include <fakemeta> 
 
 
public  plugin_precache() 

    
register_plugin("Hp Skok""1.0""Autor")  
    
RegisterHam(Ham_TakeDamage"player""skok"

 
public 
skok(idvictiminflictorattackerFloat:damagedamage_type)

    if (!(
damage_type DMG_FALL)) 
        return  
HAM_IGNORED
 
    if(
cs_get_user_team (id) != CS_TEAM_T
        return  
HAM_IGNORED
 
    return 
HAM_SUPERCEDE

Why did you write "!= CS_TEAM_T" when originally it was "== CS_TEAM_T"?
__________________
hleV is offline
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 04-08-2009 , 08:55   Re: JUMP
#7

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

public plugin_init( ) {
    
register_plugin"Terr No fall dmg""1.0""xPaw" );
    
    
RegisterHamHam_TakeDamage"player""fwdPlayerTakeDamage" );
}

public 
fwdPlayerTakeDamageindexidInflictoridAttackerFloat:DamageDamageBits ) {
//    if( ( DamageBits & DMG_FALL ) && get_user_team( index ) == 1 )
    
if( DamageBits DMG_FALL && get_user_teamindex ) == )
        return 
HAM_SUPERCEDE;
    
    return 
HAM_IGNORED;

__________________
xPaw is offline
Closed Thread



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 02:26.


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