Priivate Vehicles Problem
#1

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

Im guessing you could use OnPlayerEnterVehicle?
Reply
#3

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;

Reply
#4

PV its the loop variable.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)