27.11.2010, 01:59
Or Alternatively you can use:
And use it like this:
pawn Код:
public IsABike(carid)
{
if(carid == 509||carid == 481||carid == 510||carid == 462||carid == 448||carid == 581||carid == 522||carid == 461||carid == 521||carid == 523||carid == 463||carid == 586||carid == 468||carid == 471)
{
return 1;
}
return 0;
}
pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
if(!IsABike(playerid,vehicleid))
{
SendClientMessage(playerid,WHITE,"You have entered a car");
}
return 1;
}