Priivate Vehicles Problem - 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: Priivate Vehicles Problem (
/showthread.php?tid=409046)
Priivate Vehicles Problem -
Brokenbreaken - 20.01.2013
Hello guys i have problem with my private vehicles system. I want check if vehicle is private vehicle without use loop, i can do it? Code here.
http://pastebin.com/Ma2zFkpj
Re: Priivate Vehicles Problem -
Sellize - 20.01.2013
Im guessing you could use OnPlayerEnterVehicle?
AW: Priivate Vehicles Problem -
Harry :) - 20.01.2013
this might work:
PHP код:
public OnPlayerEnterVehicle(playerid,vehicleid,ispassenger)
{
if(vehicleid == PrivateVehicle[PV][PrivateVehicleId])
{
if(Player[playerid][PlayerName] != PrivateVehicle[PV][PrivateVehicleOwner])
{
if(!ispassenger)
{
RemovePlayerFromVehicle(playerid);
}
}
}
return 1;
}
Re: Priivate Vehicles Problem -
Brokenbreaken - 20.01.2013
PV its the loop variable.