Jump to content
  • 0

Help .


Diabolix

Question

3 answers to this question

Recommended Posts

if(strcmp(cmd, "/jefuire", true) == 0)    ///// luat

  {

  if(WantedLevel[playerid] < 1 && GetPlayerState(playerid) == PLAYER_STATE_DRIVER) ////rob

      {

          if(IsPlayerConnected(playerid))

            {

              if(IsPlayerInVehicle(playerid, 25))

            {

if(IsPlayerInRangeOfPoint(playerid, 3.0, 2315.6462, 0.0982, 26.7422))

{

if(robtime[playerid] == 1) return SendClientMessage(playerid, COLOR_GRAD2, "Poti jefui o data la 30 minute Banca!");

                WantedPoints[playerid]+=3; SetPlayerCriminal(playerid,255, "Jefuirea Bancii Serverului");

      GameTextForPlayer(playerid, "~r~Ai jefuit banca", 2500, 1);

      SetPlayerWantedLevel(playerid, 6);

                CP[playerid] = 51;

              SetPlayerCheckpoint(playerid, 2379.7356,-2015.2886,14.9519, 3.0);

              BizzInfo[0][bProducts] += 25;

              robtime[playerid] = 1;

      SetTimerEx("robreset", 1800000, 0, "%d", playerid);

          new pName[24];

          new str[128];

          GetPlayerName(playerid, pName, 24);

          format(str, 128,"* Banca a fost jefuita de %s, toate unitatile in alerta !  (/jefuire)", pName);

          SendClientMessageToAll(COLOR_GREY, str);

          TogglePlayerControllable(playerid, 0);

            SendClientMessage(playerid, 0xFFFFFFFF, "Acum incarci banii in masina, asteapta ...");

            SetTimerEx("cp1unloadq", 10000, false, "i", playerid);

        }

else

{

SendClientMessage(playerid, COLOR_GRAD2, "  Parcheaza in fata Banci LS aproape de usa si reincearca /jefuire !");

return 1;

}

            }

            else

          {

                SendClientMessage(playerid, COLOR_GREY,"  Nu esti in masina de jefuit banca ! Cauta in Zone Grove, este ascunsa acolo.");

            }

        }

      }

      else

      {

        SendClientMessage(playerid, COLOR_GREY,"* Nu poti jefui Banca! Trebuie sa fii sofer, sa nu ai Wanted si minim 15 ore pe Server !");

        RemovePlayerFromVehicle(playerid);

        return 1;

      }

  }

Join = > RPG.TRUEGAMING.RO

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • 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.