How to make car drivable only with one skin
#7

Quote:
Originally Posted by Pinguinn
Посмотреть сообщение
pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
    new model = GetVehicleModel(vehicleid);
    if(model == 428)
    {
        if(!GetPlayerSkin(playerid) == 27) return SendClientMessage(playerid, -1, "You are not allowed to drive this car");        
    }
    return 1;
}
pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
    new model = GetVehicleModel(vehicleid);
    if(model == 428)
    {
        if(GetPlayerSkin(playerid) != 27) return SendClientMessage(playerid, -1, "You are not allowed to drive this car");         
    }
    return 1;
}
Your question was answered and it works.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)