15.11.2009, 12:26
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?
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;
}
Originally Posted by Tundmatu
Thanks!
//How i can set car float? to 90. |
SetVehiclePos(playerid,X,Y,Z); //Just put the coords of the place where you want to teleport (same as in SetPlayerPos)
Originally Posted by Tundmatu
Sets Vehicle float. like. 90 / 180 / 270 / 360...
|