OnPlayerEnterVehicle help
#2

Something like this?

pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
    if(vehicleid == 408)
    {
        if(gJob[playerid] > 1)
        {
            //successfully start the job?
        }
        else
        {
            RemovePlayerFromVehicle(playerid);
            SendClientMessage(playerid, -1, "Your not in job to use that car");
        }
    }
    return 1;
}
And you have to add "gJob[playerid] = 0;" on "OnPlayerConnect" and "gJob[playerid] = 1;" in your job command.

I dont test it but i think will work.
Reply


Messages In This Thread
OnPlayerEnterVehicle help - by cluckintucker - 17.02.2013, 03:20
Re: OnPlayerEnterVehicle help - by ]Rafaellos[ - 17.02.2013, 05:15

Forum Jump:


Users browsing this thread: 3 Guest(s)