Jump to content
  • 0

probleme radar


Guest onix

Question

am downloadat si eu de aici un [Gm] mai exact bugfixed este super tare dar nu apar playeri pe harta stiu ca merge dar nu stiu si cum va rog sa imi explicati si mie mai pe intelesul ununi incepator :P[sarbatori fericite]

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

SetWorldTime(wtime);

}

SetPDistance(10);

EnableTirePopping(1);

EnableZoneNames(1);

AllowInteriorWeapons(1);

AllowAdminTeleport(1);

UsePlayerPedAnims();

ShowPlayerMarkers(1); <<<< am facut exact cum ai spus dar fara nici un rezultat ce pot face ??

SetTimer("ctimer",1000,1);

Link to comment
Share on other sites

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

    • By TheGodfather
      Salut, am un sistem de radar dar nu merge, nu prinde niciun jucator.
      function OtherTimer() {
          new stringg[180], iswar;
          //radar
          foreach(new i : Player) {
              if(RadarCooldown[i] > 0) RadarCooldown[i] --;
          }
          //radar
      stock GetXYInFrontOfPlayer(playerid, &Float:x, &Float:y, Float:distance)
      {
          new Float:a;
          GetPlayerPos(playerid, x, y, a);
          GetPlayerFacingAngle(playerid, a);
          if (GetPlayerVehicleID(playerid))
          {
              GetVehicleZAngle(GetPlayerVehicleID(playerid), a);
          }
          x += (distance * floatsin(-a, degrees));
          y += (distance * floatcos(-a, degrees));
      }
      Asta de jos e la functia function Checkvehinfo(i)
      new spe = Carspeed(i);
          foreach(new x : Player) {
                  if(Radar[x] > 0) {
                      new Float:rPos[3];
                      GetPlayerPos(x, rPos[0],rPos[1],rPos[2]);
                      GetXYInFrontOfPlayer(x, rPos[0],rPos[1], 100.0);
                      if(IsPlayerInRangeOfPoint(i, 60, rPos[0],rPos[1],rPos[2])) {
                          if(spe > Radar[x] && PlayerInfo[i][pWantedLevel] == 0 && !IsACop(i)) {
                              UsedFind[x] = 1;
                              CP[x] = 53;
                              new Float:X,Float:Y,Float:Z;
                              GetPlayerPos(i, X,Y,Z);
                              SetPlayerCheckpointEx(x, X,Y,Z, 3.5);
                              targetfind[x] = i;
                              SCMf(x,COLOR_YELLOW,"{ff0000}%s{ffffff} was caught speeding with %d km/h where the limit is {ff0000}%d km/h.",GetName(i),spe,Radar[x]);
                              SCMf(i,COLOR_YELLOW,"You have been caught speeding with a speed of {ff0000}%d km/h{ffffff} where the limit is {ff0000}%d km/h.",spe,Radar[x]);
                              SetPlayerWantedLevel(i, 2);
                              PlayerInfo[i][pWantedLevel] += 2;
                              //SetPlayerCriminal(i,x, "speeding",2); 
                              //culoarewanted
                              SetPlayerColor(i, 0xFF0033FF);
                              //culoarewanted
                              SetPlayerCriminal(i, 255 ,"speeding");
                              WantedTime[i] = 0;
                              Update(i,pWantedLevelx);
                              TogglePlayerControllable(x, 1);
                              Radar[x] = 0;
                          }
                      }
                  }
              }
      //radar
      YCMD:radar(playerid,params[],help) {
          if(aspam[playerid] > 0) return SCMEx(playerid, COLOR_LIGHTRED, "[Command Anti-Spam] {FFFFFF}Wait %d seconds.", aspam[playerid]);
          if(RadarCooldown[playerid] > 0) return SCMf(playerid,COLOR_GREY,"Wait %d seconds to place a radar.",RadarCooldown[playerid]);
          if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pMember] == 14) {
              if(OnDuty[playerid] == 1) {
                  new vehicle = GetVehicleID(GetPlayerVehicleID(playerid));
                  if(ServerVehicles[vehicle][vFaction] == 1 || ServerVehicles[vehicle][vFaction] == 14) {
                      new maxspeed;
                      if(sscanf(params, "i", maxspeed)) return SCM(playerid,-1,"{FF6699}Usage: {ffffff}/radar <max speed>");
                      if(maxspeed < 100 || maxspeed > 270) return SCM(playerid, COLOR_GREY, "Minimum speed is 100 km/h and maximum speed is 270 km/h.");
                      Radar[playerid] = maxspeed;
                      SCMf(playerid,COLOR_YELLOW,"You have placed a radar for %d km/h.",maxspeed);
                      TogglePlayerControllable(playerid, 0);
                      gString[0] = EOS;
                      format(gString, sizeof(gString), "%s placed a radar (%d km/h) in %s.",GetName(playerid),maxspeed,GetPlayerZone(playerid));
                      SendFactionMessage(1,COLOR_CLIENT,gString);
                      SendFactionMessage(2,COLOR_CLIENT,gString);
                      SendFactionMessage(3,COLOR_CLIENT,gString);
                      SendFactionMessage(14,COLOR_CLIENT,gString);
                      RadarCooldown[playerid] = 45;
                  }
                  else return SCM(playerid,-1,"You are not in a faction vehicle!");
              }
              else return SCM(playerid,-1,"You are not on duty!");
          }
          else return SCM(playerid,-1,"Only LSPD and LVPD members can use this command!");
          return 1;
      }
    • By St3f4n36
      Cum as putea fac urmatoarea chestie:
      Daca intr-un dialog imi apare ca primeste x bani daca apasa cazul 1 ( banii formati cu new money = 100 + rand(100); )
      si dupa sa imi trimita un mesaj tot cu aceasi suma de bani x. Trebuie salvata intr-o variabila sau cum?
    • By FlobertRO
      Buna , am si eu o problema . Mi-se restarteaza serverulul random . In server_log am gasit asta : 
      Stie cineva ce pot face  Va rog ❤️ . Multumesc frumos
       
       
      [23:17:26] [join] rezana has joined the server (1:---------------------) [23:17:26] [debug] Run time error 4: "Array index out of bounds" [23:17:26] [debug] Accessing element at index 1 past array upper bound 0 [23:17:26] [debug] AMX backtrace: [23:17:26] [debug] #0 00200b24 in ?? (... <1 argument>) at GM.pwn:8108 [23:17:26] [debug] #1 000aef80 in public MP_OPC (playerid=1) at C:\Users\xda\Desktop\gamemode-impact\gamemode-rpg-impact\pawno\include\YSI\y_hooks/impl.inc:633 [23:17:26] [debug] #2 native CallLocalFunction () from samp03svr [23:17:26] [debug] #3 0000c77c in public SSCANF_OnPlayerConnect (playerid=1) at C:\Users\xda\Desktop\gamemode-impact\gamemode-rpg-impact\pawno\include\mSelection.inc:432 [23:17:26] [debug] #4 00003210 in public Itter_OnPlayerConnect (playerid=1) at C:\Users\xda\Desktop\gamemode-impact\gamemode-rpg-impact\pawno\include\sscanf2.inc:236 [23:17:26] [debug] #5 00001684 in public OnPlayerConnect (playerid=1) at C:\Users\Florin\Dxda\gamemode-impact\gamemode-rpg-impact\pawno\include\YSI\y_iterate.inc:646
    • By Rby Robert
      cand dau /ad pe server scriu acolo /ad Recrutez in clanul .... nu apare ad pe server apare la staff Preview ad dar pe server la playerii nu apare
      Aceasta este comanda
      YCMD:ad(playerid, params[], help) {
          if(AdTimer[playerid] != 0) return SCM(playerid, COLOR_LGREEN, "Ai pus un anunt recent. Foloseste comanda /myad pentru a-l vedea.");
          new string[264],idx;
          if(!PlayerInfo[playerid][pPhone]) return SCM(playerid, COLOR_LGREEN, "Nu ai un telefon.");
          if(PlayerInfo[playerid][pMuted] == 1) {
              format(string, sizeof(string), "You can't talk right now! You are muted. (%d seconds)",PlayerInfo[playerid][pMuteTime]);
              SCM(playerid, COLOR_GREY, string);
              return true;
          }
          if(PlayerInfo[playerid][pLevel] < 5) return SCM(playerid, COLOR_GREY, "Ai nevoie de nivel 5 pentru a da un anunt!");
          new length = strlen(params);
          while ((idx < length) && (params[idx] <= ' ')) idx++;
          new offset = idx, result[264];
          while ((idx < length) && ((idx - offset) < (sizeof(result) - 1))) {
              result[idx - offset] = params[idx];
              idx++;
          }
          result[idx - offset] = EOS;
          new totalads = TotalAds()+1;
          if(PlayerToPoint(10, playerid, BizzInfo[11][bEntranceX], BizzInfo[11][bEntranceY], BizzInfo[11][bEntranceZ])) {
              if(!strlen(result)) return SCM(playerid, COLOR_GREY, "Usage:{FFFFFF}/ad <Text>");
              if(FaceReclama(result)) return Reclama(playerid, result);
              new payout = BizzInfo[14][bFee];
              if(PlayerMoney(playerid, payout)) {
                  format(string, sizeof(string), "* Ai folosit %d caractere si anuntul costa $%s, Nu ai banii necesari", offset, FormatNumbers(payout));
                  SCM(playerid, COLOR_WHITE, string);
                  return true;
              }
              GivePlayerCash(playerid, 0, payout);
              format(string, sizeof(string), "~r~Ai platit $%d~n~~w~Mesajul contine: %d caractere", payout, idx);
              GameTextForPlayer(playerid, string, 5000, 5);
              format(AdText[playerid], 256, result);
              format(string, sizeof(string), "[PREV AD] %s ({FFFFFF}%d{00D900}): %s", GetName(playerid), playerid, result);
              SendStaffMessage(0xDE1414FF, string);
              AdTimer[playerid] = totalads*60;
              new timer;        
              timer = SetTimerEx("Advertisment", totalads*60000, 0, "d", playerid);
              SetPVarInt(playerid, "AdTimer", timer); 
              format(string, sizeof(string), "Anuntul tau va fi afisat in %d minute (%d secunde).", AdTimer[playerid]/60, AdTimer[playerid]);
              SCM(playerid, -1, string);
              BizzInfo[14][bBalance] += payout;
              new str[128];
              mysql_format(SQL,str,128,"UPDATE bizz SET `Till`='%d',`Products`='%d' WHERE `ID`='1'",BizzInfo[14][bBalance],BizzInfo[14][bProducts]);
              mysql_tquery(SQL,str, "", "");
          }
          else SCM(playerid, -1, "Nu esti la CNN.");
          return true;
      }
      function Advertisment(playerid) {
          if(IsPlayerConnected(playerid) && AdTimer[playerid] != 0) {
              new string[1024];
              format(string, sizeof(string), "Ad by %s (phone: {FFFFFF}%d{00D900}): %s",GetName(playerid),PlayerInfo[playerid][pPhone],AdText[playerid]);
              SendMessage(0x00D900FF, string);
              AdTimer[playerid] = 0;
          }
          return true;
      }
      function TotalAds() {
          new x;
          foreach(Player, i) {
              if(IsPlayerConnected(i) && AdTimer[i] != 0) x++;
          }
          return x;
      }
    • By Raul112233
      SQLSTATE[HY000] [1045] Access denied for user 'client214_samp'@'188.212.100.160' (using password: NO)
      rezolvare la eroarea asta???
  • 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.