Raised This Month: $ Target: $400
 0% 

Target player closes to crosshair


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Twilight Suzuka
bad
Join Date: Jul 2004
Location: CS lab
Old 03-29-2005 , 09:50  
Reply With Quote #3

Float: get_user_aiming ( index, &id, &body, [ distance ] )

This gets what the player is aiming at. If they are aiming at an entity or a player, it returns the id of the ent into "id".

so, for example:
Code:
new tid,body; get_user_aiming(id,tid,body) if( is_user_alive(tid) { code } return;

Sorry there are no indents. Anyway, you just have to check to see if the entity thats returned is a living player, and then you have the player inside id's crosshairs ^^
__________________
Twilight Suzuka is offline
Send a message via AIM to Twilight Suzuka Send a message via MSN to Twilight Suzuka
 



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 09:58.


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