Jump to content
  • 0

Wanted!


angel

Question

3 answers to this question

Recommended Posts

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

    • By TheGodfather
      Salut, am o problema cu aceste 2 comenzi. Imi pune checkpoint gresit cand cineva se afla intr-o casa/hq/biz
      YCMD:wanted(playerid, params[], help) {
          if(!IsACop(playerid)) return SCM(playerid, COLOR_GREY, "Nu faci parte din factiunea politiei.");
          if(OnDuty[playerid] == 0) return SCM(playerid, COLOR_LGREEN, "Nu poti folosi aceasta comanda deoarece nu esti la datorie!");
          new iString[1024],string[300],count = 0,online[50];
          strcat(iString, "Name\tWanted level\tChased by\n");
          if(IsPlayerConnected(playerid)) {
              foreach(Player,i) {
                  if(PlayerInfo[pWantedLevel] >= 1) {
                      SelectedPlayers[playerid][count] = i;
                      string[0] = 0;
                      format(string, sizeof(string), "%s (%d)\tWanted level %d\t%d cops\n",GetName(i),i,PlayerInfo[pWantedLevel],ChasedBy(i));
                      count++;
                      strcat(iString,string);
                  }
              }
              format(online, sizeof(online),"Wanted online: %d",count);
              if(count == 0) return SCM(playerid,COLOR_GREY, "Nu sunt suspecti conectati.");
              ShowPlayerDialog(playerid, DIALOG_WANTED, DIALOG_STYLE_TABLIST_HEADERS, online, iString , "Ok", "Exit");
          }
          return 1;
      }
       
      YCMD:find(playerid, params[], help) {
          if(JobWorking[playerid] == 1) return 1;
          if(CP[playerid] != 0 || targetfind[playerid] != -1) return ShowPlayerDialog(playerid, DIALOG_CHECKPOINT, DIALOG_STYLE_MSGBOX, "Checkpoint", "Ai deja un checkpoint activ.\nDoresti sa-l anulezi? Daca da, apasa pe 'Ok'.", "Ok", "Exit");
          new id,giveplayer[30],string[100];
          if(PlayerInfo[playerid][pJob] != 6 && PlayerInfo[playerid][pMember] != 1 && PlayerInfo[playerid][pMember] != 2 && PlayerInfo[playerid][pMember] != 14 && !IsACop(playerid)) return SCM(playerid, COLOR_GREY, "Nu ai jobul 'Detective'.");
          if(sscanf(params, "u",id)) return SCM(playerid, COLOR_GREY, "USAGE: {FFFFFF}/find <playerid/name>");
          if(!IsPlayerConnected(id) || id == INVALID_PLAYER_ID) return SCM(playerid, COLOR_GREY, "Acel player nu este conectat.");
          if(Spectate[id] != 255) return SCM(playerid, COLOR_GREY, "Acel player este ocupat!");
          if(id == playerid) return SCM(playerid, COLOR_GREY, "Nu poti folosi aceasta comanda asupra ta!");
          if(togfind[id] == 1) return SCM(playerid,COLOR_GREY, "Acel player nu poate fi urmarit!");
          if(GetPVarInt(id, "Undercover") == 1) return SCM(playerid, COLOR_GREY, "Acel player este ocupat!");
          if(BizRobbed[playerid] != 0) return 1;
          if(togfind[id] == 1 && OnDuty[playerid] == 0 && PlayerHit[playerid] == -1) return SCM(playerid, COLOR_LGREEN, "Eroare: Acel player nu poate fi urmarit!");
          UsedFind[playerid] = 1;
          GetPlayerName(id, giveplayer, sizeof(giveplayer));
          new Float:X,Float:Y,Float:Z;
          GetPlayerPos(id, X,Y,Z);
          SetPlayerCheckpointEx(playerid, X,Y,Z, 3.5);
          targetfind[playerid] = id;
          CP[playerid] = 53;
          format(string, sizeof(string), "* Punctul rosu a fost setat pe %s (%d) care se afla in zona %s.",giveplayer,id,GetPlayerZone(id));
          SCM(playerid,COLOR_YELLOW,string);
          for(new m; m < 2; m++) {
              if(PlayerInfo[playerid][pDailyMission][m] == 12) CheckMission(playerid, m);
          }
           return 1;
      }
    • By TheGodfather
      Salut, am gasit un bug la urmatoarele comenzi, /find si /wanted, la ambele imi pune total gresit checkpoint-ul pe harta, ma puteti ajuta?
      YCMD:find(playerid, params[], help) {
          if(JobWorking[playerid] == 1) return 1;
          if(CP[playerid] != 0 || targetfind[playerid] != -1) return ShowPlayerDialog(playerid, DIALOG_CHECKPOINT, DIALOG_STYLE_MSGBOX, "Checkpoint", "Ai deja un checkpoint activ.\nDoresti sa-l anulezi? Daca da, apasa pe 'Ok'.", "Ok", "Exit");
          new id,giveplayer[30],string[100];
          if(PlayerInfo[playerid][pJob] != 6 && PlayerInfo[playerid][pMember] != 1 && PlayerInfo[playerid][pMember] != 2 && PlayerInfo[playerid][pMember] != 14 && !IsACop(playerid)) return SCM(playerid, COLOR_GREY, "Nu ai jobul 'Detective'.");
          if(sscanf(params, "u",id)) return SCM(playerid, COLOR_GREY, "USAGE: {FFFFFF}/find <playerid/name>");
          if(!IsPlayerConnected(id) || id == INVALID_PLAYER_ID) return SCM(playerid, COLOR_GREY, "Acel player nu este conectat.");
          if(Spectate[id] != 255) return SCM(playerid, COLOR_GREY, "Acel player este ocupat!");
          if(id == playerid) return SCM(playerid, COLOR_GREY, "Nu poti folosi aceasta comanda asupra ta!");
          if(togfind[id] == 1) return SCM(playerid,COLOR_GREY, "Acel player nu poate fi urmarit!");
          if(GetPVarInt(id, "Undercover") == 1) return SCM(playerid, COLOR_GREY, "Acel player este ocupat!");
          if(BizRobbed[playerid] != 0) return 1;
          if(togfind[id] == 1 && OnDuty[playerid] == 0 && PlayerHit[playerid] == -1) return SCM(playerid, COLOR_LGREEN, "Eroare: Acel player nu poate fi urmarit!");
          UsedFind[playerid] = 1;
          GetPlayerName(id, giveplayer, sizeof(giveplayer));
          new Float:X,Float:Y,Float:Z;
          GetPlayerPos(id, X,Y,Z);
          SetPlayerCheckpointEx(playerid, X,Y,Z, 3.5);
          targetfind[playerid] = id;
          CP[playerid] = 53;
          format(string, sizeof(string), "* Punctul rosu a fost setat pe %s (%d) care se afla in zona %s.",giveplayer,id,GetPlayerZone(id));
          SCM(playerid,COLOR_YELLOW,string);
          for(new m; m < 2; m++) {
              if(PlayerInfo[playerid][pDailyMission][m] == 12) CheckMission(playerid, m);
          }
           return 1;
      }
       
      YCMD:wanted(playerid, params[], help) {
          if(!IsACop(playerid)) return SCM(playerid, COLOR_GREY, "Nu faci parte din factiunea politiei.");
          if(OnDuty[playerid] == 0) return SCM(playerid, COLOR_LGREEN, "Nu poti folosi aceasta comanda deoarece nu esti la datorie!");
          new iString[1024],string[300],count = 0,online[50];
          strcat(iString, "Name\tWanted level\tChased by\n");
          if(IsPlayerConnected(playerid)) {
              foreach(Player,i) {
                  if(PlayerInfo[pWantedLevel] >= 1) {
                      SelectedPlayers[playerid][count] = i;
                      string[0] = 0;
                      format(string, sizeof(string), "%s (%d)\tWanted level %d\t%d cops\n",GetName(i),i,PlayerInfo[pWantedLevel],ChasedBy(i));
                      count++;
                      strcat(iString,string);
                  }
              }
              format(online, sizeof(online),"Wanted online: %d",count);
              if(count == 0) return SCM(playerid,COLOR_GREY, "Nu sunt suspecti conectati.");
              ShowPlayerDialog(playerid, DIALOG_WANTED, DIALOG_STYLE_TABLIST_HEADERS, online, iString , "Ok", "Exit");
          }
          return 1;
      }
    • By CristianC
      Cand se acorda wanted, primesti wanted pe - si creste pe -, de la -1 se face -2, -3, -4, etc...
      Adica in loc sa expire wanted-ul, il ai pe - si nu mai expira.
       
      CMD:su(playerid, params[]) { new id; if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_ERROR, "Tu nu esti logat si nu poti sa folosesti aceasta comanda!"); if(!IsACop(playerid)) return SendClientMessage(playerid, COLOR_ERROR, "Nu faci parte din Police Department / FBI."); if(OnDuty[playerid] == 0)return SendClientMessage(playerid, COLOR_ERROR, "You are not on duty."); if(sscanf(params, "u",id)) return SendClientMessage(playerid, COLOR_WHITE, "{008080}Scrie: {FFFFFF}/su <Name/Playerid>"); { if(IsACop(id)) return SendClientMessage(playerid, COLOR_ERROR, "You cannot suspect a cop."); if(!IsPlayerConnected(id)) return SendClientMessage(playerid, COLOR_ERROR, "Acel jucator nu este conectat."); IDWANTED[playerid] = id; new dialogstr[650], tstr[64]; new coordsstring[64] = "Actiune\tWantedList\n"; strcat(dialogstr, "Furtul unui vehicul\tW1\n"); strcat(dialogstr, "Neconformare ordin jail\tW1\n"); strcat(dialogstr, "Atacarea unui civil\tW2\n"); strcat(dialogstr, "Neplata amendei\tW2\n"); strcat(dialogstr, "Condus neregulamentar\tW2\n"); strcat(dialogstr, "Patrunderea pe proprietati guvernamentale\tW2\n"); strcat(dialogstr, "Atacarea unui politist\tW3\n"); strcat(dialogstr, "Neconformare ordin\tW3\n"); strcat(dialogstr, "Posesie droguri\tW3\n"); strcat(dialogstr, "Omorare politist\tW4\n"); strcat(dialogstr, "Dare de mita\tW4\n"); strcat(dialogstr, "Kamikaze (omorarea mai multor jucatori bubuind o masina, avion etc.)\tW5\n"); strcat(dialogstr, "Rapirea unui politist\tW5\n"); strcat(dialogstr, "Runner\tW6\n"); strcat(dialogstr, "DM in jail\tW6\n"); strcat(dialogstr, "Complice la fuga unui criminal\tW6\n"); strcat(dialogstr, "Complice rob\tW6\n"); strcat(dialogstr, "Complice runner\tW6\n"); strins(dialogstr, coordsstring, 0); format(tstr, sizeof(tstr), "Suspect"); ShowPlayerDialog(playerid, DIALOG_WANTED, DIALOG_STYLE_TABLIST_HEADERS, tstr, dialogstr, "Confirma", "Anuleaza"); } return 1; } case DIALOG_WANTED: { if(response) { new id = IDWANTED[playerid],giveplayer[256], sendername[25],string[124]; GetPlayerName(id, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); if(listitem == 0) { if(!IsPlayerConnected(id)) return SendClientMessage(playerid, COLOR_ERROR, "Acel jucator nu este conectat."); if(id == playerid) return SendClientMessage(playerid, COLOR_ERROR, "Nu iti poti da singur wanted."); SetPlayerCriminal(id,255, "Furtul unui vehicul"); WantedPoints[id] = 1; PlayerInfo[id][pWantedLevel] = 1; SetPlayerWantedLevel(id, 1); format(string, sizeof(string), "Ai comis o infractiune: Furtul unui vehicul, raportat de: %s. W: +1. Nivel de urmarire nou: %d.",sendername,PlayerInfo[id][pWantedLevel]); SendClientMessage(id, COLOR_RED2, string); format(string, sizeof(string), "Dispatch: %s [%d] has commited a crime: Furtul unui vehicul. Reporter: %s. W: +1. New wanted level: %d.",giveplayer,id,sendername,PlayerInfo[id][pWantedLevel]); SendTeamMessage(20, COLOR_LIGHTBLUE, string); SendTeamMessage(8, COLOR_DBLUE, string); SendTeamMessage(3, COLOR_DBLUE, string); SendTeamMessage(2, COLOR_DBLUE, string); SendTeamMessage(1, COLOR_DBLUE, string); } if(listitem == 1) { if(!IsPlayerConnected(id)) return SendClientMessage(playerid, COLOR_ERROR, "Acel jucator nu este conectat."); if(id == playerid) return SendClientMessage(playerid, COLOR_ERROR, "Nu iti poti da singur wanted."); SetPlayerCriminal(id,255, "Neconformare ordin jail"); WantedPoints[id] = 1; PlayerInfo[id][pWantedLevel] = 1; SetPlayerWantedLevel(id, 1); format(string, sizeof(string), "Ai comis o infractiune: Neconformare ordin jail, raportat de: %s. W: +1. Nivel de urmarire nou: %d.",sendername,PlayerInfo[id][pWantedLevel]); SendClientMessage(id, COLOR_RED2, string); format(string, sizeof(string), "Dispatch: %s [%d] has commited a crime: Neconformare ordin jail. Reporter: %s. W: +1. New wanted level: %d.",giveplayer,id,sendername,PlayerInfo[id][pWantedLevel]); SendTeamMessage(20, COLOR_LIGHTBLUE, string); SendTeamMessage(8, COLOR_DBLUE, string); SendTeamMessage(3, COLOR_DBLUE, string); SendTeamMessage(2, COLOR_DBLUE, string); SendTeamMessage(1, COLOR_DBLUE, string); } if(listitem == 2) { if(!IsPlayerConnected(id)) return SendClientMessage(playerid, COLOR_ERROR, "Acel jucator nu este conectat."); if(id == playerid) return SendClientMessage(playerid, COLOR_ERROR, "Nu iti poti da singur wanted."); SetPlayerCriminal(id,255, "Atacarea unui civi"); WantedPoints[id] = 2; PlayerInfo[id][pWantedLevel] = 2; SetPlayerWantedLevel(id, 2); format(string, sizeof(string), "Ai comis o infractiune: Atacarea unui civi, raportat de: %s. W: +2. Nivel de urmarire nou: %d.",sendername,PlayerInfo[id][pWantedLevel]); SendClientMessage(id, COLOR_RED2, string); format(string, sizeof(string), "Dispatch: %s [%d] has commited a crime: Atacarea unui civi. Reporter: %s. W: +2. New wanted level: %d.",giveplayer,id,sendername,PlayerInfo[id][pWantedLevel]); SendTeamMessage(20, COLOR_LIGHTBLUE, string); SendTeamMessage(8, COLOR_DBLUE, string); SendTeamMessage(3, COLOR_DBLUE, string); SendTeamMessage(2, COLOR_DBLUE, string); SendTeamMessage(1, COLOR_DBLUE, string); } if(listitem == 3) { if(!IsPlayerConnected(id)) return SendClientMessage(playerid, COLOR_ERROR, "Acel jucator nu este conectat."); if(id == playerid) return SendClientMessage(playerid, COLOR_ERROR, "Nu iti poti da singur wanted."); SetPlayerCriminal(id,255, "Neplata amendei"); WantedPoints[id] = 2; PlayerInfo[id][pWantedLevel] = 2; SetPlayerWantedLevel(id, 2); format(string, sizeof(string), "Ai comis o infractiune: Neplata amendei, raportat de: %s. W: +2. Nivel de urmarire nou: %d.",sendername,PlayerInfo[id][pWantedLevel]); SendClientMessage(id, COLOR_RED2, string); format(string, sizeof(string), "Dispatch: %s [%d] has commited a crime: Neplata amendei. Reporter: %s. W: +2. New wanted level: %d.",giveplayer,id,sendername,PlayerInfo[id][pWantedLevel]); SendTeamMessage(20, COLOR_LIGHTBLUE, string); SendTeamMessage(8, COLOR_DBLUE, string); SendTeamMessage(3, COLOR_DBLUE, string); SendTeamMessage(2, COLOR_DBLUE, string); SendTeamMessage(1, COLOR_DBLUE, string); } if(listitem == 4) { if(!IsPlayerConnected(id)) return SendClientMessage(playerid, COLOR_ERROR, "Acel jucator nu este conectat."); if(id == playerid) return SendClientMessage(playerid, COLOR_ERROR, "Nu iti poti da singur wanted."); SetPlayerCriminal(id,255, "Condus neregulamentar"); WantedPoints[id] = 2; PlayerInfo[id][pWantedLevel] = 2; SetPlayerWantedLevel(id, 2); format(string, sizeof(string), "Ai comis o infractiune: Condus neregulamentar, raportat de: %s. W: +2. Nivel de urmarire nou: %d.",sendername,PlayerInfo[id][pWantedLevel]); SendClientMessage(id, COLOR_RED2, string); format(string, sizeof(string), "Dispatch: %s [%d] has commited a crime: Condus neregulamentar. Reporter: %s. W: +2. New wanted level: %d.",giveplayer,id,sendername,PlayerInfo[id][pWantedLevel]); SendTeamMessage(20, COLOR_LIGHTBLUE, string); SendTeamMessage(8, COLOR_DBLUE, string); SendTeamMessage(3, COLOR_DBLUE, string); SendTeamMessage(2, COLOR_DBLUE, string); SendTeamMessage(1, COLOR_DBLUE, string); } if(listitem == 5) { if(!IsPlayerConnected(id)) return SendClientMessage(playerid, COLOR_ERROR, "Acel jucator nu este conectat."); if(id == playerid) return SendClientMessage(playerid, COLOR_ERROR, "Nu iti poti da singur wanted."); SetPlayerCriminal(id,255, "Patrunderea pe proprietati guvernamentale"); WantedPoints[id] = 2; PlayerInfo[id][pWantedLevel] = 2; SetPlayerWantedLevel(id, 2); format(string, sizeof(string), "Ai comis o infractiune: Patrunderea pe proprietati guvernamentale, raportat de: %s. W: +2. Nivel de urmarire nou: %d.",sendername,PlayerInfo[id][pWantedLevel]); SendClientMessage(id, COLOR_RED2, string); format(string, sizeof(string), "Dispatch: %s [%d] has commited a crime: Patrunderea pe proprietati guvernamentale. Reporter: %s. W: +2. New wanted level: %d.",giveplayer,id,sendername,PlayerInfo[id][pWantedLevel]); SendTeamMessage(20, COLOR_LIGHTBLUE, string); SendTeamMessage(8, COLOR_DBLUE, string); SendTeamMessage(3, COLOR_DBLUE, string); SendTeamMessage(2, COLOR_DBLUE, string); SendTeamMessage(1, COLOR_DBLUE, string); } if(listitem == 6) { if(!IsPlayerConnected(id)) return SendClientMessage(playerid, COLOR_ERROR, "Acel jucator nu este conectat."); if(id == playerid) return SendClientMessage(playerid, COLOR_ERROR, "Nu iti poti da singur wanted."); SetPlayerCriminal(id,255, "Atacarea unui politist"); WantedPoints[id] = 3; PlayerInfo[id][pWantedLevel] = 3; SetPlayerWantedLevel(id, 3); format(string, sizeof(string), "Ai comis o infractiune: Atacarea unui politist, raportat de: %s. W: +3. Nivel de urmarire nou: %d.",sendername,PlayerInfo[id][pWantedLevel]); SendClientMessage(id, COLOR_RED2, string); format(string, sizeof(string), "Dispatch: %s [%d] has commited a crime: Atacarea unui politist. Reporter: %s. W: +3. New wanted level: %d.",giveplayer,id,sendername,PlayerInfo[id][pWantedLevel]); SendTeamMessage(20, COLOR_LIGHTBLUE, string); SendTeamMessage(8, COLOR_DBLUE, string); SendTeamMessage(3, COLOR_DBLUE, string); SendTeamMessage(2, COLOR_DBLUE, string); SendTeamMessage(1, COLOR_DBLUE, string); } if(listitem == 7) { if(!IsPlayerConnected(id)) return SendClientMessage(playerid, COLOR_ERROR, "Acel jucator nu este conectat."); if(id == playerid) return SendClientMessage(playerid, COLOR_ERROR, "Nu iti poti da singur wanted."); SetPlayerCriminal(id,255, "Neconformare ordin"); WantedPoints[id] = 3; PlayerInfo[id][pWantedLevel] = 3; SetPlayerWantedLevel(id, 3); format(string, sizeof(string), "Ai comis o infractiune: Neconformare ordin, raportat de: %s. W: +3. Nivel de urmarire nou: %d.",sendername,PlayerInfo[id][pWantedLevel]); SendClientMessage(id, COLOR_RED2, string); format(string, sizeof(string), "Dispatch: %s [%d] has commited a crime: Neconformare ordin. Reporter: %s. W: +3. New wanted level: %d.",giveplayer,id,sendername,PlayerInfo[id][pWantedLevel]); SendTeamMessage(20, COLOR_LIGHTBLUE, string); SendTeamMessage(8, COLOR_DBLUE, string); SendTeamMessage(3, COLOR_DBLUE, string); SendTeamMessage(2, COLOR_DBLUE, string); SendTeamMessage(1, COLOR_DBLUE, string); } if(listitem == 8) { if(!IsPlayerConnected(id)) return SendClientMessage(playerid, COLOR_ERROR, "Acel jucator nu este conectat."); if(id == playerid) return SendClientMessage(playerid, COLOR_ERROR, "Nu iti poti da singur wanted."); SetPlayerCriminal(id,255, "Posesie droguri"); WantedPoints[id] = 3; PlayerInfo[id][pWantedLevel] = 3; SetPlayerWantedLevel(id, 3); format(string, sizeof(string), "Ai comis o infractiune: Posesie droguri, raportat de: %s. W: +4. Nivel de urmarire nou: %d.",sendername,PlayerInfo[id][pWantedLevel]); SendClientMessage(id, COLOR_RED2, string); format(string, sizeof(string), "Dispatch: %s [%d] has commited a crime: Posesie droguri. Reporter: %s. W: +4. New wanted level: %d.",giveplayer,id,sendername,PlayerInfo[id][pWantedLevel]); SendTeamMessage(20, COLOR_LIGHTBLUE, string); SendTeamMessage(8, COLOR_DBLUE, string); SendTeamMessage(3, COLOR_DBLUE, string); SendTeamMessage(2, COLOR_DBLUE, string); SendTeamMessage(1, COLOR_DBLUE, string); } if(listitem == 9) { if(!IsPlayerConnected(id)) return SendClientMessage(playerid, COLOR_ERROR, "Acel jucator nu este conectat."); if(id == playerid) return SendClientMessage(playerid, COLOR_ERROR, "Nu iti poti da singur wanted."); SetPlayerCriminal(id,255, "Kill Cop"); WantedPoints[id] = 4; PlayerInfo[id][pWantedLevel] = 4; SetPlayerWantedLevel(id, 4); format(string, sizeof(string), "Ai comis o infractiune: Kill Cop, raportat de: %s. W: +4. Nivel de urmarire nou: %d.",sendername,PlayerInfo[id][pWantedLevel]); SendClientMessage(id, COLOR_RED2, string); format(string, sizeof(string), "Dispatch: %s [%d] has commited a crime: Kill Cop. Reporter: %s. W: +4. New wanted level: %d.",giveplayer,id,sendername,PlayerInfo[id][pWantedLevel]); SendTeamMessage(20, COLOR_LIGHTBLUE, string); SendTeamMessage(8, COLOR_DBLUE, string); SendTeamMessage(3, COLOR_DBLUE, string); SendTeamMessage(2, COLOR_DBLUE, string); SendTeamMessage(1, COLOR_DBLUE, string); } if(listitem == 10) { if(!IsPlayerConnected(id)) return SendClientMessage(playerid, COLOR_ERROR, "Acel jucator nu este conectat."); if(id == playerid) return SendClientMessage(playerid, COLOR_ERROR, "Nu iti poti da singur wanted."); SetPlayerCriminal(id,255, "Dare de mita"); WantedPoints[id] = 4; PlayerInfo[id][pWantedLevel] = 4; SetPlayerWantedLevel(id, 4); format(string, sizeof(string), "Ai comis o infractiune: Dare de mita, raportat de: %s. W: +4. Nivel de urmarire nou: %d.",sendername,PlayerInfo[id][pWantedLevel]); SendClientMessage(id, COLOR_RED2, string); format(string, sizeof(string), "Dispatch: %s [%d] has commited a crime: Dare de mita. Reporter: %s. W: +4. New wanted level: %d.",giveplayer,id,sendername,PlayerInfo[id][pWantedLevel]); SendTeamMessage(20, COLOR_LIGHTBLUE, string); SendTeamMessage(8, COLOR_DBLUE, string); SendTeamMessage(3, COLOR_DBLUE, string); SendTeamMessage(2, COLOR_DBLUE, string); SendTeamMessage(1, COLOR_DBLUE, string); } if(listitem == 11) { if(!IsPlayerConnected(id)) return SendClientMessage(playerid, COLOR_ERROR, "Acel jucator nu este conectat."); if(id == playerid) return SendClientMessage(playerid, COLOR_ERROR, "Nu iti poti da singur wanted."); SetPlayerCriminal(id,255, "Kamikaze (omorarea mai multor jucatori bubuind o masina, avion etc.)"); WantedPoints[id] = 5; PlayerInfo[id][pWantedLevel] = 5; SetPlayerWantedLevel(id, 5); format(string, sizeof(string), "Ai comis o infractiune: Kamikaze (omorarea mai multor jucatori bubuind o masina, avion etc.), raportat de: %s. W: +5. Nivel de urmarire nou: %d.",sendername,PlayerInfo[id][pWantedLevel]); SendClientMessage(id, COLOR_RED2, string); format(string, sizeof(string), "Dispatch: %s [%d] has commited a crime: Kamikaze (omorarea mai multor jucatori bubuind o masina, avion etc.). Reporter: %s. W: +5. New wanted level: %d.",giveplayer,id,sendername,PlayerInfo[id][pWantedLevel]); SendTeamMessage(20, COLOR_LIGHTBLUE, string); SendTeamMessage(8, COLOR_DBLUE, string); SendTeamMessage(3, COLOR_DBLUE, string); SendTeamMessage(2, COLOR_DBLUE, string); SendTeamMessage(1, COLOR_DBLUE, string); } if(listitem == 12) { if(!IsPlayerConnected(id)) return SendClientMessage(playerid, COLOR_ERROR, "Acel jucator nu este conectat."); if(id == playerid) return SendClientMessage(playerid, COLOR_ERROR, "Nu iti poti da singur wanted."); SetPlayerCriminal(id,255, "Rapirea unui politist"); WantedPoints[id] = 5; PlayerInfo[id][pWantedLevel] = 5; SetPlayerWantedLevel(id, 5); format(string, sizeof(string), "Ai comis o infractiune: Rapirea unui politist, raportat de: %s. W: +5. Nivel de urmarire nou: %d.",sendername,PlayerInfo[id][pWantedLevel]); SendClientMessage(id, COLOR_RED2, string); format(string, sizeof(string), "Dispatch: %s [%d] has commited a crime: Rapirea unui politist. Reporter: %s. W: +5. New wanted level: %d.",giveplayer,id,sendername,PlayerInfo[id][pWantedLevel]); SendTeamMessage(20, COLOR_LIGHTBLUE, string); SendTeamMessage(8, COLOR_DBLUE, string); SendTeamMessage(3, COLOR_DBLUE, string); SendTeamMessage(2, COLOR_DBLUE, string); SendTeamMessage(1, COLOR_DBLUE, string); } if(listitem == 13) { if(!IsPlayerConnected(id)) return SendClientMessage(playerid, COLOR_ERROR, "Acel jucator nu este conectat."); if(id == playerid) return SendClientMessage(playerid, COLOR_ERROR, "Nu iti poti da singur wanted."); SetPlayerCriminal(id,255, "Runner"); WantedPoints[id] = 6; PlayerInfo[id][pWantedLevel] = 6; SetPlayerWantedLevel(id, 6); format(string, sizeof(string), "Ai comis o infractiune: Runner, raportat de: %s. W: +6. Nivel de urmarire nou: %d.",sendername,PlayerInfo[id][pWantedLevel]); SendClientMessage(id, COLOR_RED2, string); format(string, sizeof(string), "Dispatch: %s [%d] has commited a crime: Runner. Reporter: %s. W: +6. New wanted level: %d.",giveplayer,id,sendername,PlayerInfo[id][pWantedLevel]); SendTeamMessage(20, COLOR_LIGHTBLUE, string); SendTeamMessage(8, COLOR_DBLUE, string); SendTeamMessage(3, COLOR_DBLUE, string); SendTeamMessage(2, COLOR_DBLUE, string); SendTeamMessage(1, COLOR_DBLUE, string); } if(listitem == 14) { if(!IsPlayerConnected(id)) return SendClientMessage(playerid, COLOR_ERROR, "Acel jucator nu este conectat."); if(id == playerid) return SendClientMessage(playerid, COLOR_ERROR, "Nu iti poti da singur wanted."); SetPlayerCriminal(id,255, "DM in jail"); WantedPoints[id] = 6; PlayerInfo[id][pWantedLevel] = 6; SetPlayerWantedLevel(id, 6); format(string, sizeof(string), "Ai comis o infractiune: DM in jail, raportat de: %s. W: +6. Nivel de urmarire nou: %d.",sendername,PlayerInfo[id][pWantedLevel]); SendClientMessage(id, COLOR_RED2, string); format(string, sizeof(string), "Dispatch: %s [%d] has commited a crime: DM in jail. Reporter: %s. W: +6. New wanted level: %d.",giveplayer,id,sendername,PlayerInfo[id][pWantedLevel]); SendTeamMessage(20, COLOR_LIGHTBLUE, string); SendTeamMessage(8, COLOR_DBLUE, string); SendTeamMessage(3, COLOR_DBLUE, string); SendTeamMessage(2, COLOR_DBLUE, string); SendTeamMessage(1, COLOR_DBLUE, string); } if(listitem == 15) { if(!IsPlayerConnected(id)) return SendClientMessage(playerid, COLOR_ERROR, "Acel jucator nu este conectat."); if(id == playerid) return SendClientMessage(playerid, COLOR_ERROR, "Nu iti poti da singur wanted."); SetPlayerCriminal(id,255, "Complice la fuga unui criminal"); WantedPoints[id] = 6; PlayerInfo[id][pWantedLevel] = 6; SetPlayerWantedLevel(id, 6); format(string, sizeof(string), "Ai comis o infractiune: Complice la fuga unui criminal, raportat de: %s. W: +6. Nivel de urmarire nou: %d.",sendername,PlayerInfo[id][pWantedLevel]); SendClientMessage(id, COLOR_RED2, string); format(string, sizeof(string), "Dispatch: %s [%d] has commited a crime: Complice la fuga unui criminal. Reporter: %s. W: +6. New wanted level: %d.",giveplayer,id,sendername,PlayerInfo[id][pWantedLevel]); SendTeamMessage(20, COLOR_LIGHTBLUE, string); SendTeamMessage(8, COLOR_DBLUE, string); SendTeamMessage(3, COLOR_DBLUE, string); SendTeamMessage(2, COLOR_DBLUE, string); SendTeamMessage(1, COLOR_DBLUE, string); } if(listitem == 16) { if(!IsPlayerConnected(id)) return SendClientMessage(playerid, COLOR_ERROR, "Acel jucator nu este conectat."); if(id == playerid) return SendClientMessage(playerid, COLOR_ERROR, "Nu iti poti da singur wanted."); SetPlayerCriminal(id,255, "Complice rob"); WantedPoints[id] = 6; PlayerInfo[id][pWantedLevel] = 6; SetPlayerWantedLevel(id, 6); format(string, sizeof(string), "Ai comis o infractiune: Complice rob, raportat de: %s. W: +6. Nivel de urmarire nou: %d.",sendername,PlayerInfo[id][pWantedLevel]); SendClientMessage(id, COLOR_RED2, string); format(string, sizeof(string), "Dispatch: %s [%d] has commited a crime: Complice rob. Reporter: %s. W: +6. New wanted level: %d.",giveplayer,id,sendername,PlayerInfo[id][pWantedLevel]); SendTeamMessage(20, COLOR_LIGHTBLUE, string); SendTeamMessage(8, COLOR_DBLUE, string); SendTeamMessage(3, COLOR_DBLUE, string); SendTeamMessage(2, COLOR_DBLUE, string); SendTeamMessage(1, COLOR_DBLUE, string); } if(listitem == 17) { if(!IsPlayerConnected(id)) return SendClientMessage(playerid, COLOR_ERROR, "Acel jucator nu este conectat."); if(id == playerid) return SendClientMessage(playerid, COLOR_ERROR, "Nu iti poti da singur wanted."); SetPlayerCriminal(id,255, "Complice runner"); WantedPoints[id] = 6; PlayerInfo[id][pWantedLevel] = 6; SetPlayerWantedLevel(id, 6); format(string, sizeof(string), "Ai comis o infractiune: Complice runner, raportat de: %s. W: +6. Nivel de urmarire nou: %d.",sendername,PlayerInfo[id][pWantedLevel]); SendClientMessage(id, COLOR_RED2, string); format(string, sizeof(string), "Dispatch: %s [%d] has commited a crime: Complice runner. Reporter: %s. W: +6. New wanted level: %d.",giveplayer,id,sendername,PlayerInfo[id][pWantedLevel]); SendTeamMessage(20, COLOR_LIGHTBLUE, string); SendTeamMessage(8, COLOR_DBLUE, string); SendTeamMessage(3, COLOR_DBLUE, string); SendTeamMessage(2, COLOR_DBLUE, string); SendTeamMessage(1, COLOR_DBLUE, string); } } }  
    • By Vlad Gheorghe
      Salutare Comunitate!
       
      AM un server de samp tip RPG care vreau sa il duc mai mult spre RolePlay ..Si ma intrebam daca exista vreun sistem in care sa primesti wanted daca pleci in alt Oras sau ceva care sa ma ajute sa creez singur.
      Ideea e astfel:
      Am spawn in Los Santos! 
      Am creat Chiar azi Vamele si as vrea sa fac in felul urmator! Nu platesti Vama la trecere si o ocolesti sa primesti automat Wanted ( Ocolirea prin apa sau aviaon )
      Ceva gen ..
       
      Va multumesc mult pentru ajutor ..
    • By cobalt_thekiller
      Salut am o problem cu comanda /find /wanted cand le folosesc arata ultima locatie a jucatorului nu se updateaza 
              case DIALOG_WANTED: {
                  if(!response) return true;            
                  new id = SelectedPlayers[playerid][listitem];
                  if(PlayerInfo[id][pWantedLevel] == 0) return SCM(playerid, COLOR_LGREEN, "Eroare: Acel player nu mai are wanted!");
                  ShowMDC(playerid, id);
                  UsedFind[playerid] = 1;
                  new Float:X,Float:Y,Float:Z;
                  GetPlayerPos(id, X,Y,Z);
                  SetPlayerCheckpointEx(playerid, X,Y,Z, 3.5);
                  targetfind[playerid] = id;
                  CP[playerid] = 53;
                  format(string, sizeof(string), "* Punctul rosu a fost setat pe %s (%d) care se afla in zona %s.",GetName(id),id,GetPlayerZone(id));
                  SCM(playerid,COLOR_YELLOW,string);
              }
      YCMD:find(playerid, params[], help) {
          if(JobWorking[playerid] == 1) return true;
          if(CP[playerid] != 0 || targetfind[playerid] != -1) return ShowPlayerDialog(playerid, DIALOG_CHECKPOINT, DIALOG_STYLE_MSGBOX, "Checkpoint", "Ai deja un checkpoint activ.\nDoresti sa-l anulezi? Daca da, apasa pe 'Ok'.", "Ok", "Exit");
          new id,giveplayer[30],string[100];
          if(PlayerInfo[playerid][pJob] != 6 && PlayerInfo[playerid][pMember] != 11 && !IsACop(playerid)) return SCM(playerid, COLOR_GREY, "Nu ai jobul 'Detective'.");
          if(sscanf(params, "u",id)) return SCM(playerid, COLOR_GREY, "Syntax: {FFFFFF}/find <playerid/name>");
          if(!IsPlayerConnected(id) || id == INVALID_PLAYER_ID) return SCM(playerid, COLOR_GREY, "Acel player nu este conectat.");
          if(Spectate[id] != 255) return SCM(playerid, COLOR_GREY, "Acel player este ocupat!");
          if(id == playerid) return SCM(playerid, COLOR_GREY, "Nu poti folosi aceasta comanda asupra ta!");
          if(togfind[id] == 1) return SCM(playerid,COLOR_GREY, "Acel player nu poate fi urmarit!");
          if(GetPVarInt(id, "Undercover") == 1) return SCM(playerid, COLOR_GREY, "Acel player este ocupat!");
          if(BizRobbed[playerid] != 0) return true;
          if(togfind[id] == 1 && OnDuty[playerid] == 0 && PlayerHit[playerid] == -1) return SCM(playerid, COLOR_LGREEN, "Eroare: Acel player nu poate fi urmarit!");
          UsedFind[playerid] = 1;
          new skin = GetPlayerSkin(id);
          PlayerTextDrawSetPreviewModel(playerid, FindSkinTD, skin);
          PlayerTextDrawShow(playerid, FindSkinTD);
          GetPlayerName(id, giveplayer, sizeof(giveplayer));
          new Float:X,Float:Y,Float:Z;
          GetPlayerPos(id, X,Y,Z);
          SetPlayerCheckpointEx(playerid, X,Y,Z, 3.5);
          targetfind[playerid] = id;
          CP[playerid] = 53;
          format(string, sizeof(string), "* Punctul rosu a fost setat pe %s (%d) care se afla in zona %s.",giveplayer,id,GetPlayerZone(id));
          SCM(playerid,COLOR_YELLOW,string);
          for(new m; m < 2; m++) {
              if(PlayerInfo[playerid][pDailyMission][m] == 12) CheckMission(playerid, m);
          }            
           return true;
      }
       
       
       
  • 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.