Nem egy ilyen téma van már, de ittvan
CMD:vrespawn(playerid)
{
GameTextForAll(\"~n~~n~~n~~n~~n~~n~~r~J˜rm«vek ~g~Respawnolva!\", 3000,3);
for(new i; i < MAX_VEHICLES; i++)
{
if(i == INVALID_VEHICLE_ID) continue;
if(!VehicleOccupied(i))
{
SetVehicleToRespawn(i);
}
}
return 1;
}
stock VehicleOccupied(vehicleid)
{
for(new ai; ai < MAX_PLAYERS; ai++;//foreach(Character, ai)
{
if(!IsPlayerConnected(ai)) continue;
if(IsPlayerInVehicle(ai, vehicleid)) return true;
}
return false;
}