Check if player is on bike or not
#1

Hi i am trying to make a function that checks if the player is on a bike or not
i had on top of script this

Код:
stock IsBike(vehicle1)
	{
 	 	new vmodel = GetVehicleModel(vehicle1);
		if(vmodel== 509 || vmodel == 481 || vmodel == 462 || vmodel == 522 || vmodel == 471 || vmodel == 586)
    return true;
  else
    return false;
	}
and at the spawn block that runs by timer

Код:
new vehicle1;
	vehicle1 = GetPlayerVehicleID(playerid);
	if(IsBike(vehicle1))	SendClientMessage(playerid, 0x3333FFFF, "[Server] Bike test!");
Now if i am on a bike it should give that tekst but it doesnt work, does anybody have an idea why not?

thanks in advance!
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)