Teleporting with a car
#1

So i have looked at quite a lot of tutorials but still can't get it to work?

Here is the code:

Код:
if(strcmp(cmd, "/lsair", true) == 0) {
	
	    if(InDM[playerid] == 1)
 		{
			SendClientMessage(playerid, COLOR_RED, "Please type /leavedm first!");
 			return 1;
		}
			else
			{
			if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
     		        {
	     		   new getv = GetPlayerVehicleID(playerid);
	       		   SetVehiclePos(getv,1643.1212,-2419.4958,13.2818);
	       		   SetPlayerPos(playerid,1643.1212,-2419.4958,13.2818);
	       		   PutPlayerInVehicle(playerid,getv,0);
 			   return 1;
  			}
			else
			{
				SetPlayerPos(playerid, 1648.6609,-2414.7664,13.5547);
				return 1;
			}
			
		}
}
It compiles fine but in game it doesn't work?

It is suppost to teleport WITH the car however it doesn't.

Any help appreciated!
Reply


Messages In This Thread
Teleporting with a car - by KingyKings - 07.12.2013, 14:39
Re: Teleporting with a car - by Konstantinos - 07.12.2013, 14:44
Re: Teleporting with a car - by KingyKings - 07.12.2013, 14:50
Re: Teleporting with a car - by Audi_Quattrix - 07.12.2013, 15:35
Re: Teleporting with a car - by KingyKings - 07.12.2013, 15:42
Re: Teleporting with a car - by Audi_Quattrix - 07.12.2013, 15:42

Forum Jump:


Users browsing this thread: 1 Guest(s)