Teleport [HELP]
#8

pawn Код:
if(!strcmp(cmdtext, "/test", true)){
   if(!IsPlayerInAnyVehicle(playerid)){
       SetPlayerPos(playerid, 1505.6221, 769.2800, 7.1853);
       SetPlayerFacingAngle(playerid, 0.0);
       SetPlayerInterior(playerid, 1);
       SetPlayerVirtualWorld(playerid, 0);
   }
   else{
       new veh = GetPlayerVehicleID(playerid);
       SetVehiclePos(veh, 1505.6221, 769.2800, 7.1853);
       SetVehicleZAngle(veh, 0.0);
       LinkVehicleToInterior(veh, 1);
       SetVehicleVirtualWorld(veh, 0);
       PutPlayerInVehicle(playerid, veh, 0);
   }
   return 1;
}
it will teleport the car also if your in any car and if your not it will make one :P

[pawn]
pawn Код:
if(!strcmp(cmdtext, "/test", true)){
   SetPlayerPos(playerid, 1505.6221, 769.2800, 7.1853);
   SetPlayerFacingAngle(playerid, 0.0);
   SetPlayerInterior(playerid, 1);
   SetPlayerVirtualWorld(playerid, 0);
   return 1;
}
this one is simple
Reply


Messages In This Thread
Teleport [HELP] - by Salsa - 18.10.2011, 10:03
Re: Teleport [HELP] - by TheMaddox - 18.10.2011, 10:05
Re: Teleport [HELP] - by nilanjay - 18.10.2011, 10:06
Re: Teleport [HELP] - by Salsa - 18.10.2011, 10:09
Re: Teleport [HELP] - by Pharrel - 18.10.2011, 10:09
Re: Teleport [HELP] - by TheMaddox - 18.10.2011, 10:12
Re: Teleport [HELP] - by [Diablo] - 18.10.2011, 10:17
Re: Teleport [HELP] - by Mr_Scripter - 18.10.2011, 10:18
Re: Teleport [HELP] - by Salsa - 18.10.2011, 10:21
Re: Teleport [HELP] - by TheMaddox - 18.10.2011, 10:23

Forum Jump:


Users browsing this thread: 1 Guest(s)