Raised This Month: $ Target: $400
 0% 

Touch Kill


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Snitch
Veteran Member
Join Date: Sep 2013
Location: Kazakhstan
Old 10-16-2014 , 16:31   Touch Kill
Reply With Quote #1

im terorist and i can kill the CT, but he not me

i want ct can kill t, and t kill ct
Code:
public Ham_Touch_Grenade_Pre( iEntity, id )
{
          if( g_iCurrentGame == GAME_ANGRYBIRDS )
{
          static i_owner
          i_owner = pev(iEntity, pev_owner)
          if(is_user_alive(id) && cs_get_user_team(i_owner) == CS_TEAM_T && cs_get_user_team(id) == CS_TEAM_CT)
          {
          ExecuteHamB(Ham_Killed, id, i_owner, 0)
          }
          else remove_entity(iEntity)
}
}

Last edited by Snitch; 10-16-2014 at 16:31.
Snitch is offline
Send a message via Skype™ to Snitch
wickedd
Veteran Member
Join Date: Nov 2009
Old 10-16-2014 , 17:10   Re: Touch Kill
Reply With Quote #2

Just remove the team check.
__________________
Just buy the fucking game!!!!
I hate No-Steamers and lazy ass people.
wickedd is offline
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 10-17-2014 , 06:31   Re: Touch Kill
Reply With Quote #3

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 #4

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


Thread Tools
Display Modes

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