16/03/2022 16:52
Código PHP:
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
for(new i; i <= GetVehiclePoolSize(); i++)
{
if(!IsValidVehicle(i)) continue; // pular id's nao usados
if(IsVehicleOccupied(vehicleid)) continue; // pular veiculos ocupados
new Float:dist = GetVehicleDistanceFromPoint(i, x, y, z);
if(dist <= 10.0) SetVehicleToRespawn(i);
}
Kick(playerid);