07.03.2015, 15:17
Anyway to check is player's vehicle flying? I mean - ex. from ramp.

#include <a_samp>
#include <mapandreas>
OnFilterScriptInit()
{
MapAndreas_Init(MAP_ANDREAS_MODE_FULL);
return 1;
}
public OnPlayerUpdate(playerid)
{
new Float:Pos[4];
GetPlayerPos(playerid, Pos[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;
}