Removing a player from a specific vehicle.
#4

pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
    if(vehicleid == pilotjobvehicle1 || vehicleid == pilotjobvehicle2 && job[playerid] == 0)
    {
        ClearAnimations(playerid, 0);
        SendClientMessage(playerid,-1, "You must have the Pilot Job in order to fly this vehicle.");
    }
    return 1;
}
@itcCody - RemovePlayerFromVehicle won't work because OnPlayerEnterVehicle is called BEFORE the player enters the vehicle, not whilst he's inside it.
Reply


Messages In This Thread
Removing a player from a specific vehicle. - by rangerxxll - 30.07.2013, 00:51
Re: Removing a player from a specific vehicle. - by itsCody - 30.07.2013, 05:04
Re: Removing a player from a specific vehicle. - by jamesbond007 - 30.07.2013, 05:13
Re: Removing a player from a specific vehicle. - by Rillo - 30.07.2013, 05:20

Forum Jump:


Users browsing this thread: 1 Guest(s)