Raised This Month: $ Target: $400
 0% 

[SOLVED] Detect player driving vehicle - for what time?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Mario AR.
Senior Member
Join Date: May 2011
Location: Lima, Perú
Old 07-09-2014 , 13:21   Re: Detect player using rally car key for some time
Reply With Quote #1

Maybe when the ent velocity is 0...
PHP Code:
new Float:velocity[3];
pev(vehicle_entpev_velocityvelocity);
if (
velocity[0] + velocity[1] + velocity[2] < 1)
{
    
// Not moving.
}
else
{
    
// Is moving.

Mario AR. 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 21:17.


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