Author Topic: Detect if player is flying  (Read 801 times)

Face9000

  • Newbie
  • *
  • Posts: 7
  • Reputation +0/-0
    • View Profile
Detect if player is flying
« on: February 09, 2011, 07:45:55 pm »
This is a simple stock to detect if player is using an heli/plane.

Code: [Select]
stock IsPlayerInFlying(playerid,vehicleid)
{

if(IsPlayerInVehicle(playerid,vehicleid))
{
switch(GetVehicleModel(vehicleid))
{
    case 487, 488, 497, 460,  476, 511, 512, 513, 519, 520,548,553,577,592,593:
    {
return true;
}
}
}
return false;
}

Credits to me.

Share on Bluesky Share on Facebook


Vertical

  • Newbie
  • *
  • Posts: 15
  • Reputation +0/-0
    • View Profile
Re: Detect if player is flying
« Reply #1 on: February 10, 2011, 05:50:25 am »
lol thought you meant you made something against airbreak, however i still like it.

Jane

  • Management
  • Full
  • *******
  • Posts: 130
  • Reputation +1/-0
  • mIRC Scripters
    • View Profile
Re: Detect if player is flying
« Reply #2 on: February 10, 2011, 06:29:49 am »
Its only Detecting The Flying Hacks ? Dosen't it detect the Airbreak ?

Vertical

  • Newbie
  • *
  • Posts: 15
  • Reputation +0/-0
    • View Profile
Re: Detect if player is flying
« Reply #3 on: February 10, 2011, 08:50:32 am »
Its only Detecting The Flying Hacks ? Dosen't it detect the Airbreak ?

It detects if a player is in a flying vehicle such as a heli or a plane.

Face9000

  • Newbie
  • *
  • Posts: 7
  • Reputation +0/-0
    • View Profile
Re: Detect if player is flying
« Reply #4 on: February 10, 2011, 09:46:16 am »
Its only Detecting The Flying Hacks ? Dosen't it detect the Airbreak ?

It detects if a player is in a flying vehicle such as a heli or a plane.

This ^

This stock doesnt detect airbreak :P

King_Hual

  • Trial Moderator
  • Newbie
  • ***
  • Posts: 36
  • Reputation +3/-2
    • View Profile
Re: Detect if player is flying
« Reply #5 on: February 10, 2011, 02:31:57 pm »
Its only Detecting The Flying Hacks ? Dosen't it detect the Airbreak ?

lold @ ur fail comment