Raised This Month: $ Target: $400
 0% 

Comparing players origin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 10-21-2011 , 11:53   Re: Comparing players origin
Reply With Quote #1

Not sure if I understood correctly but you can get both origins and then check the distance apart which will determine if there was a change. To check all just use a loop with get_players().
PHP Code:
new Float:fOriginBefore33 ][ ];
new 
Float:fOriginAfter33 ][ ];

pevid pev_origin fOriginBeforeid ] );
//Same for after origin

new Float:fDistanceApart get_distance_ffOriginBefore fOriginAfter ); 
__________________

Last edited by Bugsy; 10-21-2011 at 12:00.
Bugsy is offline
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 23:39.


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