Raised This Month: $ Target: $400
 0% 

Possible or Impossible?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
omgdpcwtf
Member
Join Date: Apr 2011
Old 10-12-2014 , 05:19   Re: Possible or Impossible?
Reply With Quote #4

Got it, CTs cant kill T during duel but T can kill other CTs. How to solve it?

CT_Player = id
T_Player = T

Code:
public player_attack(victim, attacker, Float:damage, Float:direction[3], tracehandle, damagebits)
{
	if(!is_user_connected(victim) || !is_user_connected(attacker) || victim == attacker)
		return HAM_IGNORED
		
	if( (CT_Player != attacker ) && ( T_Player != attacker ) )
	{
		if( ( CT_Player == victim ) || ( T_Player == victim ) )
		return HAM_SUPERCEDE;
	}
	return HAM_IGNORED
}
omgdpcwtf is offline
 



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:30.


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