Teleporting vehicle to interior - player not synced
#6

When I teleport back from that interior and use that command again, it works, which made me assume that the interior needs to load before putting player in vehicle. So this is the only way I could make it work:
pawn Код:
new vehicleid = GetPlayerVehicleID(playerid);
RemovePlayerFromVehicle(playerid);
SetPlayerInterior(playerid,15);
SetPlayerPos(playerid, -1488.8818,950.7721,1036.4448);
LinkVehicleToInterior(vehicleid, 15);
SetVehiclePos(vehicleid, -1488.8818,950.7721,1036.4448);
SetTimerEx("TeleTimer", 700, false, "dd", playerid, vehicleid);

forward TeleTimer(playerid, vehicleid);
public TeleTimer(playerid, vehicleid) return PutPlayerInVehicle(playerid, vehicleid, 0);
Does anybody know how to increase ping on a local network? Maybe spamming my network with useless packages?
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)