Car Admin
#5

Somethin like:
pawn Код:
new AdminCar[5];

//Under OnGameModeInit
AdminCar[0] = AddStaticVehicleEx(...);
AdminCar[1] = AddStaticVehicleEx(...);
AdminCar[2] = AddStaticVehicleEx(...);
AdminCar[3] = AddStaticVehicleEx(...);
AdminCar[4] = AddStaticVehicleEx(...);

//.....
public OnPlayerStateChange(playerid, newstate, oldstate)
{
    if(newstate == PLAYER_STATE_DRIVER && AdminCar[4])
    {
        if(!IsPlayerLuxAdmin(playerid, 1)) //Change it to what you want
        {
            SendClientMessage(playerid, 0xFF0000FF, "This vehicle is for admins ONLY!");
            return 1;
        }
        else return 1;
    }
    return 1;
}
Reply


Messages In This Thread
Car Admin - by [nL]W0rfleR - 12.02.2011, 04:53
Re: Car Admin - by XoX - 12.02.2011, 05:01
Re: Car Admin - by [nL]W0rfleR - 12.02.2011, 05:01
Re: Car Admin - by XoX - 12.02.2011, 05:07
Re: Car Admin - by Unknown123 - 12.02.2011, 06:05
Re: Car Admin - by Mean - 12.02.2011, 10:23
Re: Car Admin - by Unknown123 - 12.02.2011, 10:28

Forum Jump:


Users browsing this thread: 1 Guest(s)