OnPlayerEnterVehicle help
#3

or you could simply use the code you have there and change the check to use vehicleid instead - also remove the brackets around Pizzajob:

pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
    if (GetVehicleModel(vehicleid) == 448) {
        if ((Pizzajob) == 1) {
            SendClientMessage(playerid,0xF5FF00FF, "[JOBHELP]: Use /deliverpizza to start your job");
        }
        else {
            new Float:pos[3];
            GetPlayerPos(playerid,pos[0],pos[1],pos[2]);
            SetPlayerPos(playerid,pos[0],pos[1],pos[2]);
            SendClientMessage(playerid,0xF5FF00FF, "[JOBHELP]: Prevented from entering Vehicle. You are not currently employed in Pizza Delivery");
        }
    }
}
this code simply stops the person from entering completely
Reply


Messages In This Thread
OnPlayerEnterVehicle help - by EthanMason - 11.11.2013, 17:47
Re: OnPlayerEnterVehicle help - by Konstantinos - 11.11.2013, 17:52
Re: OnPlayerEnterVehicle help - by CJay9209 - 12.11.2013, 00:54

Forum Jump:


Users browsing this thread: 1 Guest(s)