Is vehicle flying
#1

Anyway to check is player's vehicle flying? I mean - ex. from ramp.
Reply
#2

Yeah, by using mapandreas.
Reply
#3

You can try checking the vehicle's velocity, however there is no native / surefire(to my knowledge) way to detect it.
Reply
#4

by mapandreas

PHP код:
#include <a_samp>
#include <mapandreas>
OnFilterScriptInit()
{
    
MapAndreas_Init(MAP_ANDREAS_MODE_FULL);
    return 
1;
}
public 
OnPlayerUpdate(playerid)
{
    new 
Float:Pos[4];
     
GetPlayerPos(playeridPos[0], Pos[1], Pos[2]);
     
MapAndreas_FindZ_For2DCoord(Pos[0], Pos[1], Pos[3]);
     if(
Pos[2] > Pos[3] && Pos[2] < Pos[3])
     {
         
// FLAYY
    
}
    return 
1;

Golf,
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)