Checking the last driver of a vehicle
#3

There you go:
pawn Код:
new VehicleLastDriver[MAX_VEHICLES]; //put this at the top of the script
public OnPlayerStateChange(playerid, newstate, oldstate)
{
    if(newstate == PLAYER_STATE_DRIVER)
    {
        if(GetPlayerVehicleID(playerid) != 0)
        {
            VehicleLastDriver[GetPlayerVehicleID(playerid)] = playerid;
        }
    }
    return 1;
}
Reply


Messages In This Thread
Checking the last driver of a vehicle - by Krakuski - 28.08.2015, 22:49
Re: Checking the last driver of a vehicle - by Abagail - 28.08.2015, 22:56
Re: Checking the last driver of a vehicle - by R0 - 29.08.2015, 00:10
Re: Checking the last driver of a vehicle - by Krakuski - 29.08.2015, 00:26
Re: Checking the last driver of a vehicle - by Krakuski - 29.08.2015, 03:34

Forum Jump:


Users browsing this thread: 1 Guest(s)