Jump to content
  • 0

Licenta de condus


Guest ZFun

Question

Deci am modificat un mod gf. Am facut sa te dea afara din masina cand te urci , chiar si din heli... dar daca ma sui si pe o bicicleta ma da jos :)))

Vreau ca pe bicicleta sa pot merge fara licenta de condus

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

Cauta asta:

if(PlayerInfo[i][pCarLic] < 1 && IsPlayerInAnyVehicle(i) && GetPlayerState(i) == 2)
{
	if(TakingLesson[i] == 1) { }
	else { RemovePlayerFromVehicle(i); }
}
si inlocuieste cu asta:
if(PlayerInfo[i][pCarLic] < 1 && IsPlayerInAnyVehicle(i) && GetPlayerState(i) == 2)
{
	if(TakingLesson[i] == 1 || newcar == x || newcar == y || tot asa...) { }
	else { RemovePlayerFromVehicle(i); }
}

x = foloseste comanda /oldcar in joc pentru a afla id-ul bicicletei

y = la fel..

B-Zone: Role Play Server -  77.81.202.202:7777 [url=http://www.game-monitor.com/sa-mp_GameServer/77.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Similar Content

    • By SMk.EMYx
      Salutari,
       
      Nu de mult timp mi-am achizitionat un server dedicat si totodata o licenta GameCP.
      Am configuat server-ul dedicat, am instalat CentOS7 pe el si totodata LAMP.
      Dar GameCP-ul nu  merge, nu imi pot da seama dece imi da eroarea asta : unable to communicate with remote
      Un sfat , putin ajutor daca se poate ?
      Multumesc frumos anticipat !
    • By Serban
      Salutare, astazi vreau sa va impartesesc textdraw-ul de licente facut de mine.
       
      Sursa cod: Aici!
      Poze: Aici!
       
      Va salut si spor la programat! (Daca m-ai programeaza cineva..)
    • By Eldhy
      Salut, cam cat costa o licenta pentru un forum dedicat unui server de SA:MP? Gen ce module ar fi necesare si care ar fi pretul total? Ce firme de inregistrat domenii/host recomandati?
    • By NuamNume
      Salut, am facut un sistem de licente, totul merge nu am probleme dar cand ma apropii de un avion sau barca, imi zice ca nu am licenta de condus. Dar daca imi setez licenta de condus merge sa urc. La masini este ok.
       
      Cod: public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
      {
          if(!ispassenger)
          {
              if(!isBike(GetVehicleModel(vehicleid)) && PlayerInfo[playerid][pDrivingLic] == 0)
              {
                  ClearAnimations(playerid);
                  return SendClientMessage(playerid, COLOR_GREY, "Nu ai licenta de condus.");
              }
              if(isBoat(GetVehicleModel(vehicleid)) && PlayerInfo[playerid][pBoatLic] == 0)
              {
                  ClearAnimations(playerid);
                  return SendClientMessage(playerid, COLOR_GREY, "Nu ai licenta de navigatie.");
              }
              if(isPlane(GetVehicleModel(vehicleid)) && PlayerInfo[playerid][pFlyLic] == 0)
              {
                  ClearAnimations(playerid);
                  return SendClientMessage(playerid, COLOR_GREY, "Nu ai licenta de pilot.");
              }
          }
          return 1;
      }
       
      si la statechange
          if(newstate == PLAYER_STATE_DRIVER)
          {
              if(!isBike(GetVehicleModel(GetPlayerVehicleID(playerid))) && PlayerInfo[playerid][pDrivingLic] == 0)
              {
                  SlapPlayer(playerid);
                  return SendClientMessage(playerid, COLOR_GREY, "Nu ai licenta de condus.");
              }
              if(isBoat(GetVehicleModel(GetPlayerVehicleID(playerid))) && PlayerInfo[playerid][pBoatLic] == 0)
              {
                  SlapPlayer(playerid);
                  return SendClientMessage(playerid, COLOR_GREY, "Nu ai licenta de navigatie.");
              }
              if(isPlane(GetVehicleModel(GetPlayerVehicleID(playerid))) && PlayerInfo[playerid][pFlyLic] == 0)
              {
                  SlapPlayer(playerid);
                  return SendClientMessage(playerid, COLOR_GREY, "Nu ai licenta de pilot.");
              }
          }
       
      Am un stock gen cu isplane, etc.. 
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.