Raised This Month: $ Target: $400
 0% 

Touch Kill


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 10-17-2014 , 06:31   Re: Touch Kill
Reply With Quote #1

PHP Code:
new FriendlyFireCvar;

public 
plugin_init()
{
    
FriendlyFireCvar get_cvar_pointer("mp_friendlyfire");
}

public 
Ham_Touch_Grenade_PreiEntityid )
{
          if( 
g_iCurrentGame == GAME_ANGRYBIRDS )
{
          static 
i_owner
          i_owner 
pev(iEntitypev_owner)
          if(
is_user_alive(id) && (get_pcvar_num(FriendlyFireCvar) || (cs_get_user_team(i_owner) != cs_get_user_team(id))))
          {
          
ExecuteHamB(Ham_Killedidi_owner0)
          }
          else 
remove_entity(iEntity)
}

__________________

Last edited by hleV; 10-18-2014 at 10:50.
hleV is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 10-17-2014 , 06:43   Re: Touch Kill
Reply With Quote #2

Quote:
Originally Posted by hleV View Post
PHP Code:

FriendlyFireCvar 
get_cvar_pointer("mp_friendyfire"); 
>>
Code:
FriendlyFireCvar = get_cvar_pointer("mp_friendlyfire");

Last edited by Natsheh; 10-17-2014 at 06:43.
Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
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 17:43.


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