Jump to content
  • 0

comenzi pt teleport si nrg


creative_m

Question

5 answers to this question

Recommended Posts

  • 0

pey pt NRG e simplu

[pawn]

if( strcmp( cmdtext, "/nrg", true) == 0)

{

new Float:X, Float:Y, Float:Z;

GetPlayerPos(playerid, X, Y, Z);

CreateVehicle(522, X, Y, Z, 90, -1,-1, 1000000000);

return 1;

}

[/pawn]

asta e ceva asa basic, dar vezi k ti pot flooda serveru cu vehicule , adik scriu /nrg d o 100 d ori si server down... iti faci tu un sistem mai bun dak vrei, si in ExtremeFreeroam al meu e un sistem cu NRG.

Iar teleporturile ia le si tu dintr un gamemode cva , gen ExtremeFReeroamu meu, k  mi e lene sa ti explic acum... m am trezit la 12 cu noaptea n cap (:|.

sall

-Toate tutorialele postate intra aici sau puneti-le direct [url=http://www.sa-mp.ro/forum/index

Link to comment
Share on other sites

  • 0

pey pt NRG e simplu

[pawn]

if( strcmp( cmdtext, "/nrg", true) == 0)

{

new Float:X, Float:Y, Float:Z;

GetPlayerPos(playerid, X, Y, Z);

CreateVehicle(522, X, Y, Z, 90, -1,-1, 1000000000);

return 1;

}

[/pawn]

asta e ceva asa basic, dar vezi k ti pot flooda serveru cu vehicule , adik scriu /nrg d o 100 d ori si server down... iti faci tu un sistem mai bun dak vrei, si in ExtremeFreeroam al meu e un sistem cu NRG.

Iar teleporturile ia le si tu dintr un gamemode cva , gen ExtremeFReeroamu meu, k  mi e lene sa ti explic acum... m am trezit la 12 cu noaptea n cap (:|.

sall

astept xD knd poti sa mil faci :D:D:D

46456456456-1.png [
Link to comment
Share on other sites

  • 0

eu ma refeream doar la nrg

if( strcmp( cmdtext, "/nrg", true) == 0)

{

new Float:X, Float:Y, Float:Z;

GetPlayerPos(playerid, X, Y, Z);

CreateVehicle(522, X, Y, Z, 90, -1,-1, 1000000000);

return 1;

}

logo.png

ATENTIE!!! Nu imi trimiteti mesaje private care au legatura cu scriptingul. NU mai scriptez.

Link to comment
Share on other sites

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

    • By ItzGabi2k
      Nu imi merg comenzile:
      /shopinfo, /normalshop, /vipcars, extrapackshop
      YCMD:shopinfo(playerid, params[], help) { ShopType[ playerid ] = 0; ShowShop( playerid ); return true; }
      YCMD:normalshop(playerid, params[], help) { ShopType[ playerid ] = 1; ShowShop( playerid ); return true; }
      YCMD:vipcars(playerid, params[], help) { ShopType[ playerid ] = 2; ShowShop( playerid ); return true; }
      YCMD:extrapackshop(playerid, params[], help) { ShopType[ playerid ] = 3; ShowShop( playerid ); return true; }
      YCMD:shop(playerid, params[], help) {
          SCM(playerid, COLOR_PURPLE, ">> {FFFFFF}Comanda de /shop a fost schimbata:");
          SCM(playerid, COLOR_PURPLE, ">> {FFFFFF}Shop Info:     /shopinfo");
          SCM(playerid, COLOR_PURPLE, ">> {FFFFFF}Normal Shop: /normalshop");
          SCM(playerid, COLOR_PURPLE, ">> {FFFFFF}V.I.P Cars:  /vipcars");
          SCM(playerid, COLOR_PURPLE, ">> {FFFFFF}Extra Packs: /extrapackshop");
          return true;
      }
    • By shane
      SA-MP Anticheat Include
      'Anticheatu' actioneaza impotriva urmatoarelor tipuri de cheaturi: Troll-Hack, Fly-Hack, Speed-Hack, Teleport-Hack, Jetpack, Fake-Kill, Invisible-Hack
      A fost conceput acum aproape 2 ani, dar a ramas lafel de eficient si in ziua de azi.
      Pentru a putea fi folosit, gamemode-ul vostru necesita libraria YSI, acesta foloseste y_hooks si y_timers.
      E simplu de implementat, doar introduceti fisieru in folderul in care va sunt situate include-urile (pawn/include de obicei), adaugati in functia 'SetPlayerPosEx', urmatoarea linie "serverTeleported(playerid);", si includeti fisierul in gamemode prin linia "#include <locatia_voastra/anticheat_EX>"
      Desigur, s-ar putea sa fie anumite diferente care sa impiedice integrarea in gamemode, asta in cazuri rare.. depinde de voi sa il folositi.
      Va trebui sa faceti o verificare, in cazul in care jucatorul e admin, sa nu primeasca kick. Nu am adaugat, pentru ca depinde de la gamemode, la gamemode. Aceasta verificare se adauga in functiile 'OnCheatDetect' si 'OnWarningExecute'. E chestie la care aveti nevoie de cunostinte basic..
      Posibil sa mai adaug cate o verificare, sa il mai modific, cand am dispozitia si timpul necesar.
      Download: https://bit.ly/3jG8X0q
      VirusTotal: https://bit.ly/3jEUm5q
    • By Hook SAMP
      Nu imi da nicio eroare cand compilez gamemode-ul , dar cand intru pe server si dau /shop si apas pe ceva , nu apare nimic , dispare dialogul , si la realizari cand dau /realizari nu apare nimic. Gamemode B-Hood
    • 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;
      }
  • 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.