05.06.2014, 04:17
(
Последний раз редактировалось AiRaLoKa; 24.06.2014 в 01:10.
)
hi all...
i got more problem here....
i was trying to make an easy teleport function for my server, before, it's was just fine,but, when i tried to modify it, it was bugged i just want to teleport the player first then teleport the player's vehicle. but when the vehicle teleported, and then the player teleported too, the vehicle ome back to the previous position.
here is my code
and the TelePutToVeh
i got more problem here....
i was trying to make an easy teleport function for my server, before, it's was just fine,but, when i tried to modify it, it was bugged i just want to teleport the player first then teleport the player's vehicle. but when the vehicle teleported, and then the player teleported too, the vehicle ome back to the previous position.
here is my code
pawn Код:
//
new veh = GetPlayerVehicleID(playerid);
RemovePlayerFromVehicle(playerid);
SetTimerEx("TelePutToVeh",2000,false,"ii",playerid,veh);
SetVehicleVirtualWorld(veh, Virtual_World);
SetPlayerInterior(playerid, interior);
LinkVehicleToInterior(veh, interior);
SetVehiclePos(veh, X, Y, Z);
SetVehicleZAngle(veh, A );
SetPlayerPos(playerid, X, Y, Z+0.4);
SetPlayerVirtualWorld(playerid, Virtual_World);
SetCameraBehindPlayer(playerid);
pawn Код:
public TelePutToVeh(playerid, vehicleid)
{
PutPlayerInVehicle(playerid, vehicleid, 0);
return 1;
}