Raised This Month: $51 Target: $400
 12% 

If not aiming (solved)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Buckshot
Senior Member
Join Date: Mar 2014
Location: Sweden
Old 03-10-2014 , 05:20   If not aiming (solved)
Reply With Quote #1

How do i check if the user is NOT aiming at a certain player? i've already found out how to check if the user IS aiming at a target, whoever it is.. But that was get_user_aiming. There is no is_user_aiming that i can use with an if statement that can check if i'm aiming at the player i've already chosen.

I want something that would do this:
PHP Code:
if(!is_user_aiming(idtarget))
{
    
//bla


Last edited by Buckshot; 03-10-2014 at 07:41.
Buckshot is offline
Send a message via Skype™ to Buckshot
Kiske
Veteran Member
Join Date: May 2009
Old 03-10-2014 , 06:32   Re: If not aiming
Reply With Quote #2

PHP Code:
new iTarget;
new 
iBody;

get_user_aiming(idiTargetiBody);

if(
iTarget != player_chosen) {
      
// bla

__________________


Last edited by Kiske; 03-10-2014 at 06:32.
Kiske is offline
Send a message via Skype™ to Kiske
Buckshot
Senior Member
Join Date: Mar 2014
Location: Sweden
Old 03-10-2014 , 07:06   Re: If not aiming
Reply With Quote #3

Quote:
Originally Posted by Kiske View Post
PHP Code:
new iTarget;
new 
iBody;

get_user_aiming(idiTargetiBody);

if(
iTarget != player_chosen) {
      
// bla

That only checks if i'm not aiming at a certain player.. I want to check if i'm not aiming at anyone at all.


Nevermind. Fixed.

Last edited by Buckshot; 03-10-2014 at 07:42.
Buckshot is offline
Send a message via Skype™ to Buckshot
Kiske
Veteran Member
Join Date: May 2009
Old 03-10-2014 , 09:34   Re: If not aiming
Reply With Quote #4

Quote:
Originally Posted by Buckshot View Post
How do i check if the user is NOT aiming at a certain player?
Quote:
Originally Posted by Buckshot View Post
That only checks if i'm not aiming at a certain player..
...
__________________

Kiske is offline
Send a message via Skype™ to Kiske
Buckshot
Senior Member
Join Date: Mar 2014
Location: Sweden
Old 03-10-2014 , 09:57   Re: If not aiming
Reply With Quote #5

Quote:
Originally Posted by Kiske View Post
...

Mistake, Sorry

Last edited by Buckshot; 03-10-2014 at 09:57.
Buckshot is offline
Send a message via Skype™ to Buckshot
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 18:31.


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