Raised This Month: $ Target: $400
 0% 

Check Target Infront of you


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Styles
Veteran Member
Join Date: Jul 2004
Location: California
Old 02-26-2007 , 20:12   Check Target Infront of you
Reply With Quote #1

How would you check if a player is infront of you?

Also the other thing is how do you show somebody is taking damage and possibly died from something else like a Kick in cs?
Saw this code in a ClusterGernade..Don't get it.. Can't remeber how this stuff works. To much ( GAY ) Java.

//http://www.amxmodx.org/funcwiki.php?go=func&id=262
How do you know all the different types?
Code:
		//Displays who killed who
		message_begin( 2, 83 )
		write_byte( WhatDoYouPut? )
		write_byte( WhatDoYouPut )
		write_byte( 0 ) //No idea what this does
		write_string( "grenade" )
		message_end()
I was going to try something like:
Code:
		new origin[3], target[3];
		if(cmd_target(id, target))
		{
			get_user_origin(id,origin)
			if(get_distance(origin,target) > 2)
			{
			}
		}

Last edited by Styles; 02-26-2007 at 20:27.
Styles is offline
Send a message via AIM to Styles
 


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 00:41.


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