24.11.2012, 18:36
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;
}