15.06.2009, 18:23
If you want to make a teleport with a car, use this code:
pawn Код:
new vehicleid = GetPlayerVehicleID(playerid);
new State = GetPlayerState(playerid);
if(IsPlayerInAnyVehicle(playerid) && State == PLAYER_STATE_DRIVER)
{
LinkVehicleToInterior(vehicleid,*interior id here);
SetPlayerInterior(playerid,* interior id here);
return SetVehiclePos(vehicleid,* position coords here);
}
SetPlayerPos(playerid,* position coords here);
SetPlayerInterior(playerid,* interior id here) ;
ResetPlayerWeapons(playerid);