Teleport WITH a vehicle
#3

Код:
	if(!strcmp(cmdtext,"/teleport",true))
	{
	  if(IsPlayerInAnyVehicle(playerid))
	  {
	    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
	    {
	      SetVehiclePos(GetPlayerVehicleID(playerid), -239.2781,132.0149,1.3720);
	      SetVehicleZAngle(GetPlayerVehicleID(playerid),285.4021);
	    }
	    else
	      {
	        SendClientMessage(playerid, 0xFF000FF, "ERROR: You need to be the driver!");
	        return 1;
	      }
	  }
	  else
	    {
	      SetPlayerPos(playerid, -239.2781,132.0149,1.3720);
	      SetPlayerFacingAngle(playerid, 285.4021);
	    }
	  return 1;
	}
Do not know if this will help you, it is what I have in one of my random scripts I make to fuck around...
Reply


Messages In This Thread
Teleport WITH a vehicle - by Pawno_Master - 21.04.2010, 05:09
Re: Teleport WITH a vehicle - by Goobiiify - 21.04.2010, 05:23
Re: Teleport WITH a vehicle - by fishnutslol - 21.04.2010, 05:32
Re: Teleport WITH a vehicle - by Pawno_Master - 21.04.2010, 05:47
Re: Teleport WITH a vehicle - by Pawno_Master - 21.04.2010, 17:45

Forum Jump:


Users browsing this thread: 2 Guest(s)