last vehicle
#2

pawn Код:
new lastVehicle[MAX_PLAYERS];

public OnPlayerStateChange(playerid, newstate, oldstate)
{
    if(newstate == PLAYER_STATE_DRIVER || newstate == PLAYER_STATE_PASSENGER) // If the player's state changes to a vehicle state we'll have to spec the vehicle.
    {
        lastVehicle[playerid] = GetPlayerVehicleID(playerid);
    }
    return 1;
}
Reply


Messages In This Thread
last vehicle - by AnonScripter - 11.11.2013, 17:26
Re: last vehicle - by Loot - 11.11.2013, 18:17

Forum Jump:


Users browsing this thread: 1 Guest(s)