Raised This Month: $ Target: $400
 0% 

radius, distance etc..


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
~Ice*shOt
Veteran Member
Join Date: Mar 2009
Location: Lithuania
Old 04-21-2012 , 10:56   radius, distance etc..
Reply With Quote #1

how to do all this? If I death, players near me 100 radius, gets +20 health.
~Ice*shOt is offline
Send a message via Skype™ to ~Ice*shOt
claudiuhks
Yam Inside®™℠
Join Date: Jan 2010
Location: Living Randomly
Old 04-21-2012 , 11:02   Re: radius, distance etc..
Reply With Quote #2

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

public plugin_init( )
{
  
register_event"DeathMsg""OnDeath""a""1!0" );
}

public 
OnDeath( )
{
  static 
iClient;
  
iClient read_data);

  if( 
read_data) ) /* ** Make sure attacker is player */
  
{
     static 
iPlayers32 ], iNumi;
     
get_playersiPlayersiNum"a" );

     for( 
0iNumi++ )
     {
        if( 
iClient != iPlayers] && entity_rangeiClientiPlayers] ) < 100.0 /* && get_user_team( iClient ) == get_user_team( iPlayers[ i ] ) */ )
           
set_peviPlayers], pev_healthpeviPlayers], pev_health ) + 20 );
     }
  }

__________________
claudiuhks is offline
Send a message via MSN to claudiuhks Send a message via Yahoo to claudiuhks Send a message via Skype™ to claudiuhks
Old 04-21-2012, 11:25
BadJoke
This message has been deleted by asherkin. Reason: Spam.
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 07:50.


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