Teleporting with car
#1

Like im with car and driving. If i go pickup then i be teleporting and im without car... how do make it with car teleports?
Reply
#2

pawn Код:
new pickup

public OnGameModeInit()
{
pickup = CreatePickup();

return 1;
}

public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == pickup)
{
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
SetVehiclePos(playerid,X,Y,Z);
}
else
{
SetPlayerPos(playerid,X,Y,Z);
}
}

return 1;
}
Reply
#3

Thanks!
//How i can set car float? to 90.
Reply
#4

Quote:
Originally Posted by Tundmatu
Thanks!
//How i can set car float? to 90.
Which Float ?
Reply
#5

Sets Vehicle float. like. 90 / 180 / 270 / 360...
Reply
#6

pawn Код:
SetVehiclePos(playerid,X,Y,Z); //Just put the coords of the place where you want to teleport (same as in SetPlayerPos)
Reply
#7

Quote:
Originally Posted by Tundmatu
Sets Vehicle float. like. 90 / 180 / 270 / 360...
You mean the rotation? - https://sampwiki.blast.hk/wiki/SetVehicleZAngle
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)