30.01.2015, 21:54
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;
}