Szerző Téma: PPC_Trucking uj class help!  (Megtekintve 1024 alkalommal)

PPC_Trucking uj class help!
« Dátum: 2015. Február 02. - 16:11:11 »
0 Show voters
sziasztok!
asszem láttam 1 témát ezzel kapcsolatban de nem oldodott meg a probléma..
az van h 1 ppc_trucking modba szeretnék beépíteni uj classokat és odáig eljutottam h a skin választoba ott van.. és le is teleportálja az adott helyre és már a munkát is beállítottam neki... viszont amikor beszál a megfelelő járműbe és beirja /work kifagy az egész szerver..
mi lehet a probléma? ( nem biztos h ameddig eljutottam eddig az jo..)
a válaszokat előre is köszönöm.
« Utoljára szerkesztve: 2015. Február 04. - 12:11:54 írta RusH. »

PPC_Trucking uj class help!
« Válasz #1 Dátum: 2015. Február 02. - 17:16:45 »
0 Show voters
Kitudnád másolni a gamemode-ból /work parancsot? Akkor talán tudok segíteni :)

PPC_Trucking uj class help!
« Válasz #2 Dátum: 2015. Február 02. - 18:05:44 »
0 Show voters
szia csak 1 incbe van /work parancs... a gamemodeba nincs..

Nem elérhető MotI

  • 185
    • Profil megtekintése
PPC_Trucking uj class help!
« Válasz #3 Dátum: 2015. Február 02. - 18:09:20 »
0 Show voters
Ahogy olvasom még nem fejezted be az új classt szerintem először fejezd be aztán ha továbra is jelentkezik a probléma írj. :)

PPC_Trucking uj class help!
« Válasz #4 Dátum: 2015. Február 02. - 18:17:54 »
0 Show voters
nem tudom befejezni .. elvileg kész a class és elv beépítettem... szoval nem igazán tudom.. és a ppcnek a classos dolgát nem igazán tudom..

Dupla hozzászólás automatikusan összefûzve. ( 2015. Február 02. - 18:20:48 )

nem tudom a classos cuccot , de muszály megcsinálnom mert uj dolgokat találtam ki és ahoz kell uj class... (egyedi szerot akarok...csak a classokkal meggyűlik a bajom :( )
« Utoljára szerkesztve: 2015. Február 02. - 18:20:48 írta Cristeo »

Nem elérhető ZSOLTI99

  • 1827
    • Profil megtekintése
PPC_Trucking uj class help!
« Válasz #5 Dátum: 2015. Február 02. - 18:26:01 »
0 Show voters
Másold be a parancsot lehet valamit el írtál!

PPC_Trucking uj class help!
« Válasz #6 Dátum: 2015. Február 03. - 22:37:45 »
0 Show voters
mien parancsot?

Nem elérhető MotI

  • 185
    • Profil megtekintése
PPC_Trucking uj class help!
« Válasz #7 Dátum: 2015. Február 04. - 05:59:04 »
0 Show voters
/work parancsot

PPC_Trucking uj class help!
« Válasz #8 Dátum: 2015. Február 04. - 21:01:11 »
0 Show voters
// Starts a job
COMMAND:work(playerid, params[])
{
// Send the command to all admins so they can see it
SendAdminText(playerid, \"/work\", params);
// Check if the player has logged in
if (APlayerData[playerid][LoggedIn] == true)
{
// First check if the player already has a job
if (APlayerData[playerid][JobStarted] == false)
{
    // Check the player\'s class
   switch (APlayerData[playerid][PlayerClass])
   {
      case ClassTruckDriver:
      {
         // Get the id of the convoy (if the player is in a convoy)
         new Convoy = APlayerData[playerid][ConvoyID];
         // Check if the player is part of a convoy AND is not the leader
         if ((APlayerData[playerid][inConvoy] == true) && (AConvoys[Convoy][Members][0] != playerid))
         {
            // Let the player know he\'s not the leader of his convoy and cannot start a job
            SendClientMessage(playerid, 0xFF0000FF, \"Nem te vagy a vezető nem tudod elinditani a munkát...\");
            // Exit the function
            return 1;
         }
         // A convoy-leader proceeds here, and also a normal player (no convoy-member)
         // Check if the player is the driver of a vehicle
         if (GetPlayerVehicleSeat(playerid) == 0)
         {
            // Check if the player is inside a valid trucking vehicle
            switch (GetVehicleModel(GetPlayerVehicleID(playerid)))
            {
               case VehicleFlatbed, VehicleDFT30, VehicleCementTruck, VehicleDumper, VehicleBenson, VehicleYankee, VehiclePacker: // Flatbed, DFT-30, CementTruck
                  if (APlayerData[playerid][TruckerLicense] == 1) // Check if the player has acquired a truckers license
                     ShowPlayerDialog(playerid, DialogTruckerJobMethod, DIALOG_STYLE_LIST, \"Select method:\", \"Saját munka(te állithatod be)\\r\\nAutomata munka (csak ad egy munkát)\", \"Select\", \"Cancel\");
                  else
                      Trucker_StartRandomJob(playerid); // Start a random job
               case VehicleLineRunner, VehicleTanker, VehicleRoadTrain: // Player is driving a truck which needs a trailer
                  if(IsTrailerAttachedToVehicle(GetPlayerVehicleID(playerid))) // Check if there is a trailer attached
                     if (APlayerData[playerid][TruckerLicense] == 1) // Check if the player has acquired a truckers license
                        ShowPlayerDialog(playerid, DialogTruckerJobMethod, DIALOG_STYLE_LIST, \"Select method:\", \"Saját munka(te állithatod be)\\r\\nAutomata munka (csak ad egy munkát)\", \"Select\", \"Cancel\");
                     else
                         Trucker_StartRandomJob(playerid); // Start a random job
                  else
                      SendClientMessage(playerid, 0xFF0000FF, \"Szükséged van egy pótkocsira h elkezdhesd a munkát\");
                     case VehicleTrashmaster: // Flatbed, DFT-30, CementTruck
                  if (APlayerData[playerid][TruckerLicense] == -1) // Check if the player has acquired a truckers license
                     ShowPlayerDialog(playerid, DialogTruckerJobMethod, DIALOG_STYLE_LIST, \"Select method:\", \"Saját munka(te állithatod be)\\r\\nAutomata munka (csak ad egy munkát)\", \"Select\", \"Cancel\");
                  else
                      Trucker_StartRandomJob(playerid); // Start a random job
               default: SendClientMessage(playerid, 0xFF0000FF, \"Szálj be egy kamionba és kezd el a munkát\");
            }
         }
         else
                SendClientMessage(playerid, 0xFF0000FF, \"Szálj be egy kamionba és kezd el a munkát\");
      }
      case ClassBusDriver:
      {
         // Check if the player is the driver of a vehicle
         if (GetPlayerVehicleSeat(playerid) == 0)
            if (GetVehicleModel(GetPlayerVehicleID(playerid)) == VehicleCoach) // Check if the player is inside a valid busdriver vehicle
               if (APlayerData[playerid][busLicense] == 1) // Check if the player has acquired a busdriver license
                  ShowPlayerDialog(playerid, DialogBusJobMethod, DIALOG_STYLE_LIST, \"Select method:\", \"Choose your own busroute\\r\\nAuto assigned busroute\", \"Select\", \"Cancel\");
               else
                  BusDriver_StartJob(playerid, random(sizeof(ABusRoutes))); // Start a random job
            else
                   SendClientMessage(playerid, 0xFF0000FF, \"You need to be the driver of a bus to start a job\");
         else
                SendClientMessage(playerid, 0xFF0000FF, \"You need to be the driver of a bus to start a job\");
      }
      case ClassPilot:
      {
         // Check if the player is the driver of a vehicle
         if (GetPlayerVehicleSeat(playerid) == 0)
         {
            // Check if the player is inside a valid piloting vehicle
            switch (GetVehicleModel(GetPlayerVehicleID(playerid)))
            {
               case VehicleShamal, VehicleNevada, VehicleMaverick, VehicleCargobob: // Plane (Shamal), Plane (Nevada), helicopter (Maverick)
                  Pilot_StartRandomJob(playerid); // Start a random piloting job
               default: SendClientMessage(playerid, 0xFF0000FF, \"You need to be the driver of a piloting vehicle to start a job\");
            }
         }
         else
                SendClientMessage(playerid, 0xFF0000FF, \"You need to be the driver of a piloting vehicle to start a job\");
      }
             case ClassPenz:
      {
         // Check if the player is the driver of a vehicle
         if (GetPlayerVehicleSeat(playerid) == 0)
         {
            // Check if the player is inside a valid piloting vehicle
            switch (GetVehicleModel(GetPlayerVehicleID(playerid)))
            {
               case VehicleSecuricar: // Plane (Shamal), Plane (Nevada), helicopter (Maverick)
                  Penz_StartRandomJob(playerid); // Start a random piloting job
               default: SendClientMessage(playerid, 0xFF0000FF, \"szálj be egy pénz szállító autóba és kezd el a munkát\");
            }
         }
         else
                SendClientMessage(playerid, 0xFF0000FF, \"You need to be the driver of a piloting vehicle to start a job\");
      }
      case ClassMafia:
      {
         // Check if the player is the driver of a vehicle
         if (GetPlayerVehicleSeat(playerid) == 0)
         {
            // Check if the player is inside a valid piloting vehicle
            switch (GetVehicleModel(GetPlayerVehicleID(playerid)))
            {
               case VehicleSandKing, VehicleMoonbeam, VehicleLandstalker: // Sangking, Moonbeam
                  Mafia_StartRandomJob(playerid); // Start a random mafia job
               default: SendClientMessage(playerid, 0xFF0000FF, \"You need to be the driver of a mafia vehicle to start a job\");
            }
         }
         else
                SendClientMessage(playerid, 0xFF0000FF, \"You need to be the driver of a mafia vehicle to start a job\");
      }
      case ClassCourier:
      {
         // Check if the player is the driver of a vehicle
         if (GetPlayerVehicleSeat(playerid) == 0)
         {
            // Check if the player is inside a valid courier vehicle
            switch (GetVehicleModel(GetPlayerVehicleID(playerid)))
            {
               case VehicleBurrito, VehiclePizza, VehicleRumpo, VehiclePony: // Van (Burrito), bike (Faggio)
                  Courier_StartJob(playerid); // Start a random courier job
               default: SendClientMessage(playerid, 0xFF0000FF, \"You need to be the driver of a courier vehicle to start a job\");
            }
         }
         else
                SendClientMessage(playerid, 0xFF0000FF, \"You need to be the driver of a courier vehicle to start a job\");
      }
      case ClassRoadWorker:
      {
         // Check if the player is the driver of a vehicle
         if (GetPlayerVehicleSeat(playerid) == 0)
         {
            // Check if the player is inside a valid courier vehicle
            switch (GetVehicleModel(GetPlayerVehicleID(playerid)))
            {
               case VehicleUtilityVan, VehicleTowTruck: // Utility Van, Towtruck
                  Roadworker_StartRandomJob(playerid); // Start a random roadworker job
               default: SendClientMessage(playerid, 0xFF0000FF, \"You need to be the driver of a roadworker vehicle to start a job\");
            }
         }
         else
                SendClientMessage(playerid, 0xFF0000FF, \"You need to be the driver of a roadworker vehicle to start a job\");
      }
      default: SendClientMessage(playerid, 0xFF0000FF, \"Your class cannot do any jobs\");
   }
}
else // Send a message to let the player know he already has a job
    SendClientMessage(playerid, 0xFF0000FF, \"You\'re already doing a job\");
}
else
    return 0;
// Let the server know that this was a valid command
return 1;
}

Nem elérhető Flash

  • 5726
  • (っ◕‿◕)っ
    • Profil megtekintése
PPC_Trucking uj class help!
« Válasz #9 Dátum: 2015. Február 20. - 15:05:20 »
0 Show voters
[gmod]Kérlek ne hanyagold el a témát, ha már megnyitottad![/gmod]

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal