Can someone help me with detecting if the player is riding a bike?
#10

still if you want to detect the bike,

pawn Код:
new bikes[] = { 581, 523, 462, 521, 463, 522, 461, 448, 468, 586, 509, 481, 510, 471, 539};

IsABike(carid)
{
    carid=GetVehicleModel(carid);
    for(new i=0;i<sizeof(bikes);i++)
    {
        if(carid==bikes[i]){return 1;}
    }
    return 0;
}

if(!IsABike(vehid)
{
    // add the shit
}
else
{
    // you kow if it is a bike =)
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 11 Guest(s)