AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   JUMP (https://forums.alliedmods.net/showthread.php?t=89564)

spedd 04-07-2009 18:16

JUMP
 
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



YamiKaitou 04-07-2009 18:50

Re: JUMP
 
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.

Starsailor 04-07-2009 19:01

Re: JUMP
 
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



spedd 04-08-2009 04:48

Re: JUMP
 
Tested unfortunately does not work after stroke is still receiving HP. Do not be in a line down the teatm to? victim

hleV 04-08-2009 05:40

Re: JUMP
 
Quote:

Originally Posted by Starsailor (Post 800288)
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"?

xPaw 04-08-2009 08:55

Re: JUMP
 
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;



YamiKaitou 04-08-2009 10:01

Re: JUMP
 
Quote:

Originally Posted by YamiKaitou (Post 800277)
If you wish for this topic to stay open, please correct the topic title before you post again.



All times are GMT -4. The time now is 02:26.

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