Invalid vehicle and ispassenger
#5

Try using the native IsValidVehicle:

pawn Код:
native IsValidVehicle(vehicleid); // It works, but it's not in the includes for some reason (https://sampwiki.blast.hk/wiki/IsValidVehicle)

public OnPlayerEnterVehicle(playerid, vehicleid)
{
    if(!IsValidVehicle(vehicleid))
    {
        // Whatever you want to do with him
        Ban(playerid);
        return 0;
    }

    // The rest of your code
    return 1;
}
Reply


Messages In This Thread
Invalid vehicle and ispassenger - by Vvolk - 24.11.2012, 17:47
Re: Invalid vehicle and ispassenger - by iggy1 - 24.11.2012, 17:54
Re: Invalid vehicle and ispassenger - by Vvolk - 24.11.2012, 18:04
Re: Invalid vehicle and ispassenger - by iggy1 - 24.11.2012, 18:07
Respuesta: Invalid vehicle and ispassenger - by OPremium - 24.11.2012, 18:36

Forum Jump:


Users browsing this thread: 2 Guest(s)