[Solved]Removing player from a specific vehicle.
#1

pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
    if(newstate == PLAYER_STATE_DRIVER && oldstate == PLAYER_STATE_ONFOOT)
    {
        if(GetVehicleModel(GetPlayerVehicleID(playerid) == 425 || 520 || 432))
        {
            if(DMZone[playerid] == 0)
            {
               //Do nothing
            }
            else
            {
              SendClientMessage(playerid,RED,"Go to a DM to use this car.");
              RemovePlayerFromVehicle(playerid);
            }
        }
    }
    return 1;
}
For some reason the GetVehicleModel is completely ignored, It removes the player from any vehicle in a DM zone. Anyone know what's wrong?

Any help would be appreciated.


EDIT: Solved, Thank you very much Andom and Finn
Reply


Messages In This Thread
[Solved]Removing player from a specific vehicle. - by ReV. - 26.04.2009, 14:41
Re: Removing player from a specific vehicle. - by MachineHead - 26.04.2009, 14:43
Re: Removing player from a specific vehicle. - by Andom - 26.04.2009, 14:47
Re: Removing player from a specific vehicle. - by ReV. - 26.04.2009, 14:58
Re: Removing player from a specific vehicle. - by Finn - 26.04.2009, 15:05

Forum Jump:


Users browsing this thread: 1 Guest(s)