SA-MP Forums Archive
Alternative Way.. - 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: Alternative Way.. (/showthread.php?tid=642431)



Alternative Way.. - Puff - 30.09.2017

PHP код:
LessonCar[playerid] = CreateVehicle(4101273.175292, -1557.86071713.560564270.06161900);
    
VehicleInfo[LessonCar[playerid]][EVFuel] = 100;
    
SetPlayerPos(playerid1273.175292, -1557.86071713.560564);
    
SetPlayerInterior(playerid0);
    
SetPlayerVirtualWorld(playerid0); 
Any alternative way to put player in car.. except setting his pos..? cause sometimes it bugs and put player outside the car..


Re: Alternative Way.. - Kraeror - 30.09.2017

Look here: https://sampwiki.blast.hk/wiki/PutPlayerInVehicle


Re: Alternative Way.. - Puff - 30.09.2017

Quote:
Originally Posted by Kraeror
Посмотреть сообщение
in this case.. what the vehicle ID will be.. since it will just create a random vehicle ID..


Re: Alternative Way.. - whadez - 30.09.2017

Код:
PutPlayerInVehicle(playerid, LessonCar[playerid], 0);



Re: Alternative Way.. - Puff - 30.09.2017

Quote:
Originally Posted by whadez
Посмотреть сообщение
Код:
PutPlayerInVehicle(playerid, LessonCar[playerid], 0);
+REP thanks.