Raised This Month: $ Target: $400
 0% 

My code doens't work :(


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Liverwiz
Veteran Member
Join Date: Feb 2010
Location: Maryland
Old 09-04-2012 , 11:00   Re: My code doens't work :(
Reply With Quote #8

Quote:
Originally Posted by Torge View Post
Shouldn't be the target alive if you're checking for moving ?

PHP Code:
if(!is_user_alive(id
I think that's wrong..
Quote:
Originally Posted by Apokalipsisa View Post
Well i check if player is alive whats wrong ?
That's checking if the user is dead ( [not]is_user_alive ). I was saying to print the velocity to the user, when it checks it. But, though velocity theoretically should work, it isn't as good as origin. You want to know if a user has moved, rather than is moving. So cache the user's origin and compare current origin to the cached origin.
it'll slap them off the bomb if they're defusing also. So youll have to keep that into account.
I say put a check of pev_button & IN_USE to see if they're defusing.

EDIT: Just read the other comments. use this line
Code:
if(is_user_alive(id) && cs_get_user_team(id) == CS_TEAM_T)
instead of what you have there now.
__________________
What an elegant solution to a problem that doesn't need solving....

Last edited by Liverwiz; 09-04-2012 at 11:03.
Liverwiz 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 08:10.


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