#1

This system "Health side" does not really work, if afk and pull it nothing happens

PHP код:
public OnPlayerTakeDamageplayeridissueridFloat:amountweaponidbodypart )
{
  if( 
issuerid != INVALID_PLAYER_ID )
  {
    if( 
playerDeathissuerid ] == )
    {
      new 
FloatHPFloatAPFloattotalhp;
       
GetPlayerHealthExplayeridHP );
     
GetPlayerArmourExplayeridAP );
     
printf("wadawda");
      if ( 
AP >= amount )
      {
        
SetPlayerArmourExplayeridAP amount );
        
SetPlayerHealthExplayeridHP );
      }
      else if ( 
AP <= )
      {
        
totalhp HP amount;
        
SetPlayerHealthExplayeridtotalhp );
        if ( 
totalhp <= && playerDeathplayerid ] == )
        {
          
OnPlayerDeathplayeridissueridweaponid );
          
playerDeathplayerid ] = 1;
        }
      }
      else
      {
        
totalhp HP + ( AP amount );
        
SetPlayerArmourExplayerid0.0 );
        
SetPlayerHealthExplayeridtotalhp );
        if ( 
totalhp <= && playerDeathplayerid ] == )
        {
          
OnPlayerDeathplayeridissueridweaponid );
          
playerDeathplayerid ] = 1;
        }
      }
    }
  }
  return 
1;

Reply
#2

help me, please
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)