davids11 miniblogs

  • davids11
    0

    Nevariet palidzet un pateikt ka shis ir rakstits

    if(PlayerInfo[playerid][pAdmin] >= 1337) {
    if(PlayerInfo[i][pAdmin] == 2) {
    format(string, sizeof(string), "*Junior Admin: %s (Reports Today: %d)", GetPlayerNameEx(i), rtoken);
    }
    else if(PlayerInfo[i][pAdmin] == 3) {
    format(string, sizeof(string), "*General Admin: %s (Reports Today: %d)", GetPlayerNameEx(i), rtoken);
    }
    else if(PlayerInfo[i][pAdmin] == 4) {
    format(string, sizeof(string), "*Senior Admin: %s (Reports Today: %d)", GetPlayerNameEx(i), rtoken);
    }
    else if(PlayerInfo[i][pAdmin] == 1337) {
    format(string, sizeof(string), "*Head Admin: %s (Reports Today: %d)", GetPlayerNameEx(i), rtoken);
    }
    else if(PlayerInfo[i][pAdmin] == 1338) {
    format(string, sizeof(string), "*Admin Director: %s (Reports Today: %d)", GetPlayerNameEx(i), rtoken);
    }
    else if(PlayerInfo[i][pAdmin] == 99998) {
    format(string, sizeof(string), "*Co-Executive Admin: %s (Reports Today: %d)", GetPlayerNameEx(i), rtoken);
    }
    else if(PlayerInfo[i][pAdmin] == 99999) {
    format(string, sizeof(string), "*Executive Admin: %s (Reports Today: %d)", GetPlayerNameEx(i), rtoken);
    }
    else if(PlayerInfo[i][pAdmin] == 100000) {
    format(string, sizeof(string), "*Server Mapper: %s (Reports Today: %d)", GetPlayerNameEx(i), rtoken);
    }
    else if(PlayerInfo[i][pAdmin] == 250000) {
    format(string, sizeof(string), "*Co-Owner: %s (Reports Today: %d)", GetPlayerNameEx(i), rtoken);
    }
    else if(PlayerInfo[i][pAdmin] == 400000) {
    format(string, sizeof(string), "*Owner: %s (Reports Today: %d)", GetPlayerNameEx(i), rtoken);
    }
    else if(PlayerInfo[i][pAdmin] == 840000) {
    format(string, sizeof(string), "*Director: %s (Reports Today: %d)", GetPlayerNameEx(i), rtoken);
    }

    • davids11
      0

      Pilna versija

      CMD:admins(playerid, params[])
      {
      if(PlayerInfo[playerid][pAdmin] >= 2) {
      SendClientMessageEx(playerid, COLOR_GRAD1, "Admins Online:");
      foreach(Player, i) {
      if(PlayerInfo[i][pAdmin] >= 2 && PlayerInfo[i][pAdmin] <= PlayerInfo[playerid][pAdmin]) {
      new string[128], sstring[128], rtoken;
      new strFromFile[128];
      new month, day, year;
      new playern[MAX_PLAYER_NAME];
      GetPlayerName(i, playern, sizeof(playern));
      getdate(year, month, day);
      format(sstring,sizeof(sstring),"admins/rtokens/%s[%d'%d'%d]",playern,month,day,year);
      if(fexist(sstring)) {
      new File: file = fopen(sstring, io_read);
      if(file) {
      fread(file, strFromFile);
      fclose(file);
      rtoken = strval(strFromFile);
      }
      }

      if(PlayerInfo[playerid][pAdmin] >= 1337) {
      if(PlayerInfo[i][pAdmin] == 2) {
      format(string, sizeof(string), "*Junior Admin: %s (Reports Today: %d)", GetPlayerNameEx(i), rtoken);
      }
      else if(PlayerInfo[i][pAdmin] == 3) {
      format(string, sizeof(string), "*General Admin: %s (Reports Today: %d)", GetPlayerNameEx(i), rtoken);
      }
      else if(PlayerInfo[i][pAdmin] == 4) {
      format(string, sizeof(string), "*Senior Admin: %s (Reports Today: %d)", GetPlayerNameEx(i), rtoken);
      }
      else if(PlayerInfo[i][pAdmin] == 1337) {
      format(string, sizeof(string), "*Head Admin: %s (Reports Today: %d)", GetPlayerNameEx(i), rtoken);
      }
      else if(PlayerInfo[i][pAdmin] == 1338) {
      format(string, sizeof(string), "*Admin Director: %s (Reports Today: %d)", GetPlayerNameEx(i), rtoken);
      }
      else if(PlayerInfo[i][pAdmin] == 99998) {
      format(string, sizeof(string), "*Co-Executive Admin: %s (Reports Today: %d)", GetPlayerNameEx(i), rtoken);
      }
      else if(PlayerInfo[i][pAdmin] == 99999) {
      format(string, sizeof(string), "*Executive Admin: %s (Reports Today: %d)", GetPlayerNameEx(i), rtoken);
      }
      else if(PlayerInfo[i][pAdmin] == 100000) {
      format(string, sizeof(string), "*Server Mapper: %s (Reports Today: %d)", GetPlayerNameEx(i), rtoken);
      }
      else if(PlayerInfo[i][pAdmin] == 400000) {
      format(string, sizeof(string), "*Server Scripter: %s (Reports Today: %d)", GetPlayerNameEx(i), rtoken);
      }
      else if(PlayerInfo[i][pAdmin] == 840000) {
      format(string, sizeof(string), "*Director: %s (Reports Today: %d)", GetPlayerNameEx(i), rtoken);
      }
      else {
      format(string, sizeof(string), "*Undefined Admin (%d): %s", PlayerInfo[i][pAdmin], GetPlayerNameEx(i));
      }
      }
      else {
      if(PlayerInfo[i][pAdmin] == 2) {
      format(string, sizeof(string), "*Junior Admin: %s", GetPlayerNameEx(i));
      }
      else if(PlayerInfo[i][pAdmin] == 3) {
      format(string, sizeof(string), "*General Admin: %s", GetPlayerNameEx(i));
      }
      else if(PlayerInfo[i][pAdmin] == 4) {
      format(string, sizeof(string), "*Senior Admin: %s", GetPlayerNameEx(i));
      }
      else if(PlayerInfo[i][pAdmin] == 1337) {
      format(string, sizeof(string), "*Head Admin: %s", GetPlayerNameEx(i));
      }
      else if(PlayerInfo[i][pAdmin] == 1338) {
      format(string, sizeof(string), "*Admin Director: %s", GetPlayerNameEx(i));
      }
      else if(PlayerInfo[i][pAdmin] == 99998) {
      format(string, sizeof(string), "*Co-Executive Admin: %s", GetPlayerNameEx(i));
      }
      else if(PlayerInfo[i][pAdmin] == 99999) {
      format(string, sizeof(string), "*Executive Admin: %s", GetPlayerNameEx(i));
      }
      else if(PlayerInfo[i][pAdmin] == 100000) {
      format(string, sizeof(string), "*Server Mapper: %s", GetPlayerNameEx(i));
      }
      else if(PlayerInfo[i][pAdmin] == 400000) {
      format(string, sizeof(string), "*Server Scripter: %s", GetPlayerNameEx(i));
      }
      else if(PlayerInfo[i][pAdmin] == 840000) {
      format(string, sizeof(string), "*Director: %s", GetPlayerNameEx(i));
      }
      else {
      format(string, sizeof(string), "*Undefined Admin (%d): %s", PlayerInfo[i][pAdmin], GetPlayerNameEx(i));
      }
      }

      if(PlayerInfo[i][pBanAppealer]) strcat(string, " [BA]");
      if(PlayerInfo[i][pShopTech]) strcat(string, " [ST]");
      if(PlayerInfo[i][pUndercover]) strcat(string, " [UC]");
      if(PlayerInfo[i][pFactionModerator]) strcat(string, " [FMOD]");
      if(PlayerInfo[i][pGangModerator]) strcat(string, " [GMOD]");
      if(PlayerInfo[i][pTogReports]) strcat(string, " [SPEC MODE]");
      SendClientMessageEx(playerid, COLOR_GRAD2, string);
      }
      }
      }
      else {
      SendClientMessageEx(playerid, COLOR_GRAD1, "If you have questions regarding gameplay, or the server use /newb.");
      SendClientMessageEx(playerid, COLOR_GRAD1, "If you see suspicious happenings/players /report [id] [reason].");
      }
      return 1;
      }

    • mad
      0

      Neko nesapratu. Ko tev vajag pateikt?

    • Kristiāns S
      0

      http://forum.sa-mp.com/forumdisplay.php?s=cc...06b9e94ea3&f=12
      Te diezvai kāds zinās pawno.

      • alberts00
        0

        Es kaut ko zinu :>
        amxmodx plugini izmanto pawnu.

      • S J
        0

        Vispār kods neizskatās grūts.

      • mad
        0

        Nu sintakse izskatās elementāra.

Atpakaļ Uz augšu