Jump to content
  • 0

Comenzi blocate pt ceilalti admini???


NeO

Question

:) Buna ,am un server de sa:mp 02.x,si am inca 2 admini,2 prieteni si iei au level 10 amandoi,unul dintre  ei da cam repde kick/ban ,e cam dur :-\ cu playerii...si as vrea sa stiu daca se poate sa blochez comenzile "/ban,/kick,/crash/jail,mute,/freeze" as vrea sa le pot folosi doar eu,ca admin RCON ;D daca se poate asa ceva va rog sa postati chiar aici metoda va rog.MULTUMESC ANTICIPAT!!!

qdbjz10.png

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

acolo la comanda ai ceva de genu [pAdmin]==1 sau cum e in loc de 1 pui lvl de admin dorin ex 1338 doar adminii 1338 pot folosi acea comanda

if(!strcmp(cmdtext, "/q", true))     {         Ban(playerid);         return true;     }[/code
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 AnDrEyUpS
      Salutare! Ma poate ajuta cineva cu chestia asta? Cand un jucator are admin sa scrie cu rosu in chat?
      Am pus asta la OnPlayerConnect, dar doar numele din tab apare cu rosu.:
      if(pInfo[playerid][pAdmin] < 1) return SetPlayerColor(playerid, 0xB31313FF), PlayerTextDrawColor(playerid,NamePlayer[playerid], COLOR_ADMINP);
       
      Am cautat la comanda /shop -> premium account deoarece schimba culoarea in portocaliu si nu gasesc deloc, probabil nu se afla in gamemode chestia cu schimbarea culorii. Un sfat m-ar ajuta foarte mult, multumesc!
    • By Liviu Adrian
      Salut, as dori si eu un sistem de admin folosesc mysql r41-2. Si cand vreau sa folosesc comanda /setadmin sau /makeadmin sa o pot da pe server, deoarece din baza de date phpmyadmin nu imi arata bara sa pot edita userul care era irnegsitrat sa imi pot da admin din baza de date.
    • By CristianLMAO
      IN-GAME ADMIN PANEL BY CRISTIANLMAO
       
      PREVIEW:
       
       
      Details:
      Am facut acest filterscript pentru ca nu am avut ce face.
      Meniul se porneste decat daca esti logat cu rcon dar este foarte simplu sa il faci si pe mysql.
       
      TIMP DURAT SA IL FAC: 4-5 ore de programare, fix dupa ce am uploadat sistemul de spawncar (https://www.sa-mp.ro/forums/topic/36718-tutorial-spawn-car-pe-dialog-zcmd/)
       
      DOWNLOAD:
      Download: filterscripts.rar
      VT:https://www.virustotal.com/gui/file/51b7e2483727303bc99c62d91001340f80efe322090510614a1f98080b8d0d4a?nocache=1
       
    • By IosifR
      Re. E foarte simplu sa faci acest lucrul doar ca uni dintre cei noi in scripting nu stiu cum. e a
      Primadata mergem la enum pInfo sau cum aveti voi.
      enum pInfo { // Ce aveti voi, pAdmin } Acum, mergem la OnLogin sau OnPlayerLogin depinde cum aveti voi in gamemode. Inainte de SpawnPlayer(playerid); puneti 
      PlayerInfo[playerid][pAdmin] = cache_get_field_content_int(0, "Admin"); Acum trebuie sa facem comanda cu care adminul va oferi admin.
      CMD:setadmin(playerid, params[]) { if(PlayerInfo[playerid][pAdmin] < 6) return SendClientMessage(playerid, 0xB1BFCC80, "Eroare: Nu ai gradul administrativ necesar."); new id, admin, string[64]; if(sscanf(params, "ud", id, admin)) return SendClientMessage(playerid, 0xB1BFCC80, "SYNTAX: /setadmin <ID/Name> <Admin Level (0-7)>"); if(admin < 0 || admin > 7) return SendClientMessage(playerid, -1, "Invalid Admin Level."); format(string, sizeof(string), "Felicitari! Ai fost promovat la admin %d.", admin); SendClientMessage(id, -1, string); new query[100]; PlayerInfo[playerid][pAdmin] = admin; mysql_format(SQL, query, sizeof(query), "UPDATE `users` SET `Admin` = '%d' WHERE `ID` = '%d'", PlayerInfo[playerid][pAdmin], PlayerInfo[playerid][pSQLID]); mysql_tquery(SQL, query); return 1; } In loc de PlayerInfo puneti cum aveti voi. De ex P_Data... la `users` cum aveti voi tabelul in baza de date unde se salveaza conturile.
      Acum, intram in baza de date. (localhost/phpmyadmin).

       
      Dupa ce ati intrat in baza de date apasati pe Structure.
      Dupa aceea mai jos faceti o coloana.

       

      Ceva de genul trebuie sa arate coloana. Acum dam pe Save si suntem gata!
      Sper ca celor incepatori le-a fost de ajutor. pa
  • 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.