02.06.2015, 12:59
Oh u don't use 0.3.7?
You can Update your Includes for this version...or change it to this:
Greekz
You can Update your Includes for this version...or change it to this:
PHP код:
stock GetHydraInRange(playerid)
{
for(new i,Float:p[3]; i<MAX_VEHICLES; i++)
{
if(GetVehicleModel(i) != 520) continue;
GetVehiclePos(i,p[0],p[1],p[2]);
if(IsPlayerInRangeOfPoint(playerid,6.5,p[0],p[1],p[2])) return i;
}
return 0;
}
stock IsHydraSeatFree(veh)
{
for(new i; i<MAX_PLAYERS; i++)
{
if(GetPlayerVehicleID(i) != veh) continue;
if(GetPlayerVehicleSeat(i) == 1) return 0;
}
return 1;
}