little help
#1

i need little help if when player teleport anywhere player having car but when i teleported my car is destroyed
how to add this cmd teleport
Reply
#2

when ur asking don't make sence
Reply
#3

i need setvehiclepos when player goto any teleport player state driving dont vehicle destroy
Reply
#4

First of all, read this: https://sampforum.blast.hk/showthread.php?tid=395711

Second and last of all - Check if player is in any vehicle by using IsPlayerInAnyVehicle. If he is, use GetPlayerVehicleID to get vehicle's ID, then GetVehiclePos and SetVehiclePos for the teleport.
Reply
#5

dont work
Reply
#6

Of course it does. Post your code here and define what is not working and what exactly do you want.
Reply
#7

i need mean
this
Quote:

dcmd_lselevator(playerid,params[])
{
#pragma unused params
new elevator = random(sizeof(Elevator));
SetPlayerPos(playerid,Elevator[elevator][0],Elevator[elevator][1],Elevator[elevator][2]+0.40);
SetPlayerFacingAngle(playerid,Elevator[elevator][3]);
GameTextForPlayer(playerid,"~b~Elevator ~r~Lift!",5000,3);
return 1;

}

this is my teleport command how can i add in this command to vehiclepos
Reply
#8

pawn Код:
dcmd_tele(playerid,params[])
{
    #pragma unused params
    new elevator = random(sizeof(Elevator));
    SetPlayerPos(playerid,Elevator[elevator][0],Elevator[elevator][1],Elevator[elevator][2]+0.40);
    SetPlayerFacingAngle(playerid,Elevator[elevator][3]);
    if(IsPlayerInVehicle(playerid, vehicleid))
    {
        SetVehiclePos(Elevator[elevator][0],Elevator[elevator][1],Elevator[elevator][2]+0.40);
    }
    GameTextForPlayer(playerid,"~b~Elevator ~r~Lift!",5000,3);
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)