Need Help
#4

pawn Код:
stock IsBike(vehicleid)
{
    switch(GetVehicleModel(vehicleid))
    {
        case 509, 481, 510, 462, 581, 522, 461, 521, 523, 463, 586, 468, 471: return 1;
    }
    return 0;
}

public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER && IsBike(vehicleid))
    {
        SendClientMessage(playerid, COLOR_RED, "You cannot enter a bike!");
        return 0;
    }
    return 1;
}
Reply


Messages In This Thread
Need Help - by Ironboy - 29.03.2011, 20:27
Re: Need Help - by [NRP]Blade - 29.03.2011, 20:37
Re: Need Help - by Ironboy - 29.03.2011, 20:42
Re: Need Help - by [L3th4l] - 29.03.2011, 21:00

Forum Jump:


Users browsing this thread: 1 Guest(s)