19.06.2009, 20:18
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
and at the spawn block that runs by timer
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!
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;
}
Код:
new vehicle1; vehicle1 = GetPlayerVehicleID(playerid); if(IsBike(vehicle1)) SendClientMessage(playerid, 0x3333FFFF, "[Server] Bike test!");
thanks in advance!



)