SA-MP Forums Archive
TP help - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: TP help (/showthread.php?tid=387655)



TP help - Virus. - 25.10.2012

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.


Re: TP help - Yamakei - 25.10.2012

Do you've a command already created or ?


Re: TP help - Virus. - 25.10.2012

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


Re: TP help - Yamakei - 25.10.2012

Can we see the code?


Re: TP help - Virus. - 25.10.2012

Edited the post.


Re: TP help - Yamakei - 25.10.2012

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.


Re: TP help - Virus. - 25.10.2012

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.


Re: TP help - Yamakei - 25.10.2012

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.


Re: TP help - Virus. - 25.10.2012

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.


Re: TP help - Yamakei - 25.10.2012

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