#2

You want to restrict the vehicle to a certain job?I edited this of zGaming script replace the codes to the custom codes of you script.
pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
    if(!ispassenger)
    {
        if(IsTaxiVehicle(vehicleid) && PlayerInfo[playerid][pJob] != yourslotoftaxijobhere)
        {
            new Float:pos[3];
            GetPlayerPos(playerid, pos[0], pos[1], pos[2]);
            SetPlayerPos(playerid, pos[0], pos[1], pos[2]);
            SendClientMessage(playerid, COLOR_ORANGE, " You cannot enter this vehicle as you are not a taxi driver.");
        }

    }
    return 1;
}
P.S: dont use these heavy scripts if you cant handle them.
Reply


Messages In This Thread
Taxi - by WiseRice - 27.12.2012, 11:51
Re: Taxi - by Laure - 27.12.2012, 11:59
Re: Taxi - by park4bmx - 27.12.2012, 12:01
Re: Taxi - by WiseRice - 27.12.2012, 12:13
Re: Taxi - by park4bmx - 27.12.2012, 12:17
Re: Taxi - by WiseRice - 27.12.2012, 12:18
Re: Taxi - by park4bmx - 27.12.2012, 12:20
Re: Taxi - by WiseRice - 27.12.2012, 12:26
Re: Taxi - by WiseRice - 27.12.2012, 12:32
Re: Taxi - by Laure - 27.12.2012, 13:19

Forum Jump:


Users browsing this thread: 3 Guest(s)