#1

I don't know why but I'm getting stuck on this when it seems pretty simple thing.

I want to make a taxi class and basicly a player does a command (lets say /taxi) and it sets his var to 1 or true for available to taxi. All that is easy as pie but im getting stuck on when he enters a car i want to make sure he is passenger and seewho is driving the car and then see if that driver is a taxi driver.
Reply
#2

Is something like :

pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
    if(ispassenger)
    {
        for(new v, b = GetMaxPlayers(); v != b; v++)
            if(IsPlayerConnected(v))
                if(GetPlayerVehicleID(v) == vehicleid)
                    if(v == Taxi Driver)
                    {
                    }
    }
    return true;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)