Teleport with car
#1

How do i teleport myself with car with this code

CMD:visage(playerid,params)
{
#pragma unused params
SetPlayerPos(playerid, 2033.4410,1918.4377,12.1801);
return 1;
}

Please help i am new to Pawno
Reply
#2

https://sampwiki.blast.hk/wiki/SetVehiclePos
Reply
#3

Код:
CMD:visage(playerid,params)
{
#pragma unused params
if(IsPlayerInVehicle(playerid,GetPlayerVehicleID(playerid))==1)
{
new vehicle=GetPlayerVehicleID(playerid)
SetPlayerPos(playerid, 2033.4410,1918.4377,12.1801);
SetVehiclePos(vehicle,2033.4410,1918.4377,12.1801);
PutPlayerInVehicle(playerid, vehicle, 0);
}
else
{
SetPlayerPos(playerid, 2033.4410,1918.4377,12.1801);
}
return 1;
}
Reply
#4

pawn Код:
CMD:visage(playerid, params[])
{
    #pragma unused params
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) SetVehiclePos(GetPlayerVehicleID(playerid), 2033.4410, 1918.4377, 12.1801);
    else SetPlayerPos(playerid, 2033.4410, 1918.4377, 12.1801);
    return 1;
}
Reply
#5

Thank you so much for both of the scripts i used Benzo's one but both worked for me thx
jihadmeneer: i tried that it was too dificult for me to understand
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)