#13

pawn Code:
if(!strcmp(cmdtext, "//race", true)){
   if(!IsPlayerInAnyVehicle(playerid)){
       SetPlayerPos(playerid, 0.0, 0.0, 0.0);
       SetPlayerFacingAngle(playerid, 0.0);
       SetPlayerInterior(playerid, 0);
       SetPlayerVirtualWorld(playerid, 0);
   }
   else{
       new veh = GetPlayerVehicleID(playerid);
       SetVehiclePos(veh, 0.0, 0.0, 0.0);
       SetVehicleZAngle(veh, 0.0);
       LinkVehicleToInterior(veh, 0);
       SetVehicleVirtualWorld(veh, 0);
       PutPlayerInVehicle(playerid, veh, 0);
   }
   return 1;
}
without car
pawn Code:
if(!strcmp(cmdtext, "//tp", true)){
   SetPlayerPos(playerid, 0.0, 0.0, 0.0);//Change the Cords
   SetPlayerFacingAngle(playerid, 0.0);
   SetPlayerInterior(playerid, 0);
   SetPlayerVirtualWorld(playerid, 0);
   return 1;
}
Rep me if it helped

Edit the X,Y,Z cords
Not Tested
Reply


Messages In This Thread
help - by noder51 - 14.10.2011, 20:35
Re: help - by Tom1412 - 14.10.2011, 21:05
Re: help - by noder51 - 14.10.2011, 21:35
Re: help - by Kostas' - 14.10.2011, 21:42
Re: help - by noder51 - 14.10.2011, 21:43
Re: help - by noder51 - 14.10.2011, 21:45
Re: help - by Kostas' - 14.10.2011, 21:46
Re: help - by noder51 - 15.10.2011, 06:10
Re: help - by GrimR - 15.10.2011, 06:57
Re: help - by $India$ - 15.10.2011, 07:39
Re: help - by noder51 - 15.10.2011, 15:24
Re: help - by Kostas' - 15.10.2011, 15:34
Re: help - by Mr_Scripter - 15.10.2011, 15:48

Forum Jump:


Users browsing this thread: 5 Guest(s)