TP to interior with vehicle
#1

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.
Reply
#2

pawn Код:
LinkVehicleToInterior(created, interiorid);
Reply
#3

Quote:
Originally Posted by Emmet_
Посмотреть сообщение
pawn Код:
LinkVehicleToInterior(created, interiorid);
Worked, Thanks. Rep++
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)