SA-MP Forums Archive
[HELP] --- How can I know if its a .... - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [HELP] --- How can I know if its a .... (/showthread.php?tid=244510)



[HELP] --- How can I know if its a .... - bijoyekuza - 27.03.2011

Hey scripters.

How can I know if its a bike with 2 wheels , or a car with 4 wheels , or a boat .

?


Re: [HELP] --- How can I know if its a .... - Stigg - 27.03.2011

Try these stock's.

pawn Код:
stock IsAPlane(vehicleid)
{
    switch(GetVehicleModel(vehicleid))
    {
        case 593,592,577,563,553,548,520,519,513,512,511,
        497,488,487,476,469,460,447,425,417,493,484,453: return 1;
        default: return 0;
    }
    return 0;
}

stock IsABoat(vehicleid)
{
    switch(GetVehicleModel(vehicleid))
    {
        case 472,473,595,493,430,453,484,446,452,454: return 1;
        default: return 0;
    }
    return 0;
}

stock IsABike(vehicleid)
{
  switch(GetVehicleModel(vehicleid))
  {
    case
        581,509,481,462,521,463,
        510,522,461,448,471,468,586:
    return true;
  }
  return false;
}