Jump to content

Comenzi Vehicule (Pentru Admini)


-=[Vyorel]=-

Recommended Posts

Schimba-i titlul de la subiectul asta si punele pe toate acolo.

Fara mii de subiecte legate de acelasi lucru.  :D

...

puteai sa pui si asta in celaltu

si puneai

#define WithAdmin

si la comenzi:

#if defined WithAdmin

...

#else

..

#endif

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • 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.