TP to interior with vehicle - 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 to interior with vehicle (
/showthread.php?tid=388292)
TP to interior with vehicle -
Virus. - 28.10.2012
Hello guys. This is my code for TP-ing a player to interior with a vehicle selected by an admin.
Код:
new Float:angle;
GetPlayerFacingAngle(playerid,angle);
new created=CreateVehicle(cem[playerid][svehicle],X,Y,Z, angle, 1, 1, 0);
SetPlayerPos(id,X,Y,Z);
PutPlayerInVehicle(id,created, 0);
The problem is, the vehicle becomes invisible. Any help will be appreciated. Thanks.
Re: TP to interior with vehicle - Emmet_ - 28.10.2012
pawn Код:
LinkVehicleToInterior(created, interiorid);
Re: TP to interior with vehicle -
Virus. - 28.10.2012
Quote:
Originally Posted by Emmet_
pawn Код:
LinkVehicleToInterior(created, interiorid);
|
Worked, Thanks. Rep++