Internal to External Teleport
#2

PHP код:
COMMAND:ls(playeridparams[]) 

    if(
IsPlayerInAnyVehicle(playerid)) 
    { 
        new 
vehid=GetPlayerVehicleID(playerid); 
        
SetPlayerInterior(playerid0); // set interor to 0
        
LinkVehicleToInterior(vehidGetPlayerInterior(playerid)); // do the same to the vehicle that he is currently riding in
        
SetVehiclePos(vehid2489.4968, -1672.578913.3792); 
    } 
    else 
    {
        
SetPlayerInterior(playerid0); // set interior to 0
        
SetPlayerPos(playerid2489.4968, -1672.578913.3792); 
    }
    return 
1

Reply


Messages In This Thread
Internal to External Teleport - by spyro9696 - 04.01.2018, 12:10
Re: Internal to External Teleport - by JaKe Elite - 04.01.2018, 12:16
Re: Internal to External Teleport - by spyro9696 - 04.01.2018, 12:20
Re: Internal to External Teleport - by spyro9696 - 04.01.2018, 12:29
Re: Internal to External Teleport - by JaKe Elite - 04.01.2018, 12:34
Re: Internal to External Teleport - by spyro9696 - 04.01.2018, 12:40
Re: Internal to External Teleport - by JesterlJoker - 04.01.2018, 13:01
Re: Internal to External Teleport - by spyro9696 - 04.01.2018, 13:05
Re: Internal to External Teleport - by JesterlJoker - 04.01.2018, 13:07
Re: Internal to External Teleport - by spyro9696 - 04.01.2018, 13:10

Forum Jump:


Users browsing this thread: 1 Guest(s)