Removing a player from a specific vehicle.
#2

pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
    if(vehicleid == pilotjobvehicle1 || vehicleid == pilotjobvehicle2)
    {
        if(job[playerid] == 0)
        {
            new Float:x, Float:y, Float:z;
            GetPlayerPos(playerid, x, y, z);
            SetPlayerPos(playerid, x, y, z+3);
            SendClientMessage(playerid,-1, "You must have the Pilot Job in order to fly this vehicle.");
            RemovePlayerFromVehicle(playerid);
            return 1;
        }
    }
    return 1;
}
Ugh you forgot RemovePlayerFromVehicle(playerid);

I think that's correct :')
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)