SA-MP Forums Archive
how to put all players in vehicle to interior - 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: how to put all players in vehicle to interior (/showthread.php?tid=621811)



how to put all players in vehicle to interior - MerryDeer - 15.11.2016

Hi,

In one teleport i set playerinterior and virtualworld, but if there will be passengers, or player surfing on vehicle, player that will be too teleported, so how i need to set them interior, and virtualworld too?


Re: how to put all players in vehicle to interior - AbyssMorgan - 15.11.2016

Use this function for vehicle driver
PHP код:
SetPlayerAbsolutePositionVeh(playerid,Float:x,Float:y,Float:z,Float:angle,worldid = -1,interiorid = -1,compensatedtime = -1); 
3DTryg:
https://sampforum.blast.hk/showthread.php?tid=591010


Re: how to put all players in vehicle to interior - MerryDeer - 15.11.2016

But too need to check GetPlayerSurfingVehicle?


Re: how to put all players in vehicle to interior - AbyssMorgan - 15.11.2016

Quote:
Originally Posted by MerryDeer
Посмотреть сообщение
But too need to check GetPlayerSurfingVehicle?
This function automatically moves players into the vehicle.