[Ajuda] Caminhoneiro
#6

cara as include do ppc e chamado assim que o player entra em um checkpoint olha
pawn Код:
public OnPlayerEnterCheckpoint(playerid)
{
    switch (APlayerData[playerid][PlayerClass])
    {
        case ClassTruckDriver:
            Trucker_OnPlayerEnterCheckpoint(playerid);
        case ClassBusDriver:
        {
            GameTextForPlayer(playerid, TXT_BusDriverMissionPassed, 3000, 4);
            BusDriver_EndJob(playerid);
        }
        case ClassPilot:
            Pilot_OnPlayerEnterCheckpoint(playerid);
        case ClassMafia:
            Mafia_OnPlayerEnterCheckpoint(playerid);
        case ClassCourier:
            Courier_OnPlayerEnterCheckpoint(playerid);
        case ClassRoadWorker:
        {
            if (APlayerData[playerid][JobID] == 1)
            {
                GameTextForPlayer(playerid, TXT_RoadworkerMissionPassed, 3000, 4);
                Roadworker_EndJob(playerid);
            }
            if (APlayerData[playerid][JobID] == 2)
                Roadworker_EnterCheckpoint(playerid);
        }
    }
    return 1;
}
Reply


Messages In This Thread
Caminhoneiro - by GuilhermeSimoesPlays - 30.01.2015, 21:29
Re: Caminhoneiro - by GuilhermeSimoesPlays - 30.01.2015, 21:41
Re: Caminhoneiro - by GuilhermeSimoesPlays - 30.01.2015, 21:43
Re: Caminhoneiro - by GuilhermeSimoesPlays - 30.01.2015, 21:51
Re: Caminhoneiro - by GuilhermeSimoesPlays - 30.01.2015, 21:53
Re: Caminhoneiro - by ExPLORE - 30.01.2015, 21:54
Re: Caminhoneiro - by GuilhermeSimoesPlays - 30.01.2015, 21:59
Re: Caminhoneiro - by GuilhermeSimoesPlays - 30.01.2015, 22:03
Re: Caminhoneiro - by GuilhermeSimoesPlays - 30.01.2015, 22:09

Forum Jump:


Users browsing this thread: 1 Guest(s)