TP help
#1

Hello guys. I want to know how can i tp a player to interior with vehicle and without it.

And also how can i give a vehicle to player when he gets tp-ed.


Код:
if(cem[playerid][wweapon]==1)
     				{
    					ResetPlayerWeapons(id);
			 			new wepid=cem[playerid][weapon1];
 						new weammo=cem[playerid][ammo];
 						GivePlayerWeapon(id,wepid,weammo);
 						Y=Y+2;
  						SetPlayerPos(id,X,Y,Z);
  						i++;
    				}
                   	if(cem[playerid][wsvehicle]==1)
                   	{
                        new Float:angle;
                        GetPlayerFacingAngle(playerid,angle);
                        SetPlayerPos(id,X,Y,Z);
                        Y=Y+5;
                        CreateVehicle(cem[playerid][svehicle],X, Y,Z - 2, angle, 1, 1, 60);
                        i++;
                   	}
Thanks.
Reply
#2

Do you've a command already created or ?
Reply
#3

I have made this TP thing with dialog's but the things i asked above dont work. So im asking tht.
Reply
#4

Can we see the code?
Reply
#5

Edited the post.
Reply
#6

Even on your code it shows,

Код:
CreateVehicle(cem[playerid][svehicle],X, Y,Z - 2, angle, 1, 1, 60);
That is why when you teleport him he remains in the vehicle.
Reply
#7

he doesn't remain in the car, he gets tp without the car.. basically what i want to do is when an admin decides to tp, he get options whether to tp palyer with vehicle if he's in vehicle or without it. But he doesnt get tp-ed with vehicle.
Reply
#8

That's using a dialog system. I thought you already kinda had that idea. You should post your request inside the right thread which is here : https://sampforum.blast.hk/showthread.php?tid=187229.
Reply
#9

i dont want a script i want to know tht little piece of code to make my script complete. I have done the dialogs only problem us tht the player does not tp with vehicle.
Reply
#10

Show me the dialog script part that is what I need to see.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)