20.01.2013, 10:28
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
public OnPlayerEnterVehicle(playerid,vehicleid,ispassenger)
{
if(vehicleid == PrivateVehicle[PV][PrivateVehicleId])
{
if(Player[playerid][PlayerName] != PrivateVehicle[PV][PrivateVehicleOwner])
{
if(!ispassenger)
{
RemovePlayerFromVehicle(playerid);
}
}
}
return 1;
}