Check if player is on bike or not
#3

Quote:

PAWN Code:
stock IsBike(carid)
{
new Bikes[] = { 509, 481, 510 };
for(new i = 0; i < sizeof(Bikes); i++)
{
if(GetVehicleModel(carid) == Bikes[i]) return 1;
}
return 0;
}

How can i omplant that then ? do i do the command at the place of return 1?
like

Код:
PAWN Code:
stock IsBike(carid)
{
  new Bikes[] = { 509, 481, 510 };
  for(new i = 0; i < sizeof(Bikes); i++)
  {
    if(GetVehicleModel(carid) == Bikes[i]) bike[playerid] = 1 return 1;
  }
  return 0;
}
Reply


Messages In This Thread
Check if player is on bike or not - by hipy - 19.06.2009, 20:18
Re: Check if player is on bike or not - by member - 19.06.2009, 20:32
Re: Check if player is on bike or not - by hipy - 19.06.2009, 20:38
Re: Check if player is on bike or not - by UsaBoy91 - 19.06.2009, 20:47
Re: Check if player is on bike or not - by member - 19.06.2009, 20:48
Re: Check if player is on bike or not - by hipy - 20.06.2009, 04:02
Re: Check if player is on bike or not - by hipy - 20.06.2009, 09:39
Re: Check if player is on bike or not - by yezizhu - 20.06.2009, 11:00

Forum Jump:


Users browsing this thread: 1 Guest(s)