Vip Vehicles
#2

What do you use to check weather they are a "default" user or not? Just the fact that they are logged in as RCON? Or do you have somethine more like pInfo[playerid][Admin]?

If you are just using RCON, then you can do this..

pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
    if(!IsPlayerAdmin(playerid){
        if(!ispassenger){
            new vmodel;
            vmodel = GetVehicleModel(vehicleid);
            if(vmodel == 520 || vmodel == 432 || vmodel == 425){ //if the vehicle is a hydra, rhino, or hunter
                return 0;
                SendClientMessage(playerid, 0xFF0000FF, "You are not allowed to use this vehicle");
            }
        }
    }
    return 1;
}
Haven't tested it, should work though. It should only let "regular" (non rconed users) to get into the passenger seat of any of the vehicles you add into this code. None of the current ones have passenger seats though. If they try to enter the driver seat, they are sent a message.
Reply


Messages In This Thread
Vip Vehicles - by Kuulp2he - 03.04.2013, 10:52
Re: Vip Vehicles - by Nathan_Taylor - 03.04.2013, 11:25
Re: Vip Vehicles - by zxc1 - 03.04.2013, 11:25
Re: Vip Vehicles - by Kuulp2he - 03.04.2013, 11:31
Re: Vip Vehicles - by Kuulp2he - 03.04.2013, 11:34
Re: Vip Vehicles - by Nathan_Taylor - 03.04.2013, 11:51

Forum Jump:


Users browsing this thread: 2 Guest(s)