Modificare Plugin !

Categoria cu cereri de pluginuri si nu numai.

Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com

Forum rules
Accesează link-ul pentru a putea vedea regulile forumului

Daca doriti sa vi se modifice un plugin, va rugam postati aici .
Post Reply
User avatar
essonid
Membru, skill +2
Membru, skill +2
Posts: 759
Joined: 20 Nov 2010, 16:57
Detinator Steam: Da
Detinator server CS: Nu
Reputatie: Membru Club eXtreamCS (o luna)
Location: London, United Kingdom
Has thanked: 29 times
Been thanked: 28 times

28 Feb 2011, 20:58

Salut, ma ajuta cineva sa rezolv "problema" la ultimate_who ? l-am luat de pe google am modificat accesele si nu mai merge compilat :|
| Afiseaza codul
#include <amxmodx>
#include <amxmisc>

#define PLUGIN "New AMXX Who"
#define VERSION "1.1"
#define AUTHOR "Alka & x"

#define CharsMax(%1) sizeof %1 - 1

#define MAX_GROUPS 10

new g_groupNames[MAX_GROUPS][] = 
{
   "Owner",
   "God",
   "Moderator",
   "Administrator",
   "Helper"
}

new g_groupFlags[MAX_GROUPS][] = 
{ 
   "abcdefghijklmnopqrstu",  
   "bcdefghijmnoqrstu",  
   "bcdefghijmnopqrt",     
   "bcdefijmnopqrt",    
   "bcdefijm"        
}

new g_groupFlagsValue[MAX_GROUPS];

public plugin_init() 
{
   register_plugin(PLUGIN, VERSION, AUTHOR);

   register_clcmd("say /who", "cmdWhoIsLinkCS", 0, "- vezi adminii online intr-un motd");
   register_clcmd("say_team /who", "cmdWhoIsLinkCS", 0, "- vezi adminii online intr-un motd");
   register_concmd("say /who", "cmdWhoIsLinkCS", 0, "- vezi adminii online intr-un motd");
   register_concmd("say_team /who", "cmdWhoIsLinkCS", 0, "- vezi adminii online intr-un motd");
   
   for(new i = 0 ; i < MAX_GROUPS ; i++)
   g_groupFlagsValue = read_flags(g_groupFlags);
}

public cmdWhoIsLinkCS(id)
{
   static sPlayers[32], iNum, iPlayer;
   static sName[32], sBuffer[1024];
   
   static iLen;
   iLen = formatex(sBuffer, sizeof sBuffer - 1, "<body bgcolor=#000000><font color=#7b68ee><pre>");
   iLen += formatex(sBuffer[iLen], CharsMax(sBuffer) - iLen,"<body background=http://img69.imageshack.us/img69/4592/7 ... stmkfg.png bgProperties=fixed><center><font color=#FFFFFF><pre>");
   
   get_players(sPlayers, iNum, "ch");
   
   for(new i = 0; i < MAX_GROUPS ; i++)
   {   
      iLen += formatex(sBuffer[iLen], CharsMax(sBuffer) - iLen, "<center><h5><font color=^"red^"><<--<B>%s</B>-->>^n</font></h5></center>", g_groupNames);
     
      for(new x = 0; x < iNum ; x++)
      {   
         iPlayer = sPlayers[x];
         
         if(get_user_flags(iPlayer) == g_groupFlagsValue)
         {
            get_user_name(iPlayer, sName, sizeof sName - 1);
            iLen += formatex(sBuffer[iLen], CharsMax(sBuffer) - iLen, "<center>%s^n</center>", sName);
         }
      }
   }
   show_motd(id, sBuffer, "Adminii Online");

   return 0;
}
A city full of people and my favorite is that waitress..
RoyalServer
User avatar
Tox!c
Membru, skill 0
Membru, skill 0
Posts: 64
Joined: 02 Feb 2011, 23:07
Detinator Steam: Da
CS Status: Privesc si ma uimesc .
Detinator server CS: Nu
Location: Constanta
Been thanked: 49 times

28 Feb 2011, 22:21

| Afiseaza codul
#include <amxmodx>
#include <amxmisc>

#define PLUGIN "New AMXX Who"
#define VERSION "1.1"
#define AUTHOR "Alka & x"

#define CharsMax(%1) sizeof %1 - 1

#define MAX_GROUPS 10

new g_groupNames[MAX_GROUPS][] = 
{
   "Owner",
   "God",
   "Moderator",
   "Administrator",
   "Helper"
}

new g_groupFlags[MAX_GROUPS][] = 
{ 
   "abcdefghijklmnopqrstu",  
   "bcdefghijmnoqrstu",  
   "bcdefghijmnopqrt",     
   "bcdefijmnopqrt",    
   "bcdefijm"        
}

new g_groupFlagsValue[MAX_GROUPS];

public plugin_init() 
{
   register_plugin(PLUGIN, VERSION, AUTHOR);

   register_clcmd("say /who", "cmdWhoIsLinkCS", 0, "- vezi adminii online intr-un motd");
   register_clcmd("say_team /who", "cmdWhoIsLinkCS", 0, "- vezi adminii online intr-un motd");
   register_concmd("say /who", "cmdWhoIsLinkCS", 0, "- vezi adminii online intr-un motd");
   register_concmd("say_team /who", "cmdWhoIsLinkCS", 0, "- vezi adminii online intr-un motd");
   
   for(new i = 0 ; i < MAX_GROUPS ; i++)
   g_groupFlagsValue = read_flags(g_groupFlags);
}

public cmdWhoIsLinkCS(id)
{
   static sPlayers[32], iNum, iPlayer;
   static sName[32], sBuffer[1024];
   
   static iLen;
   iLen = formatex(sBuffer, sizeof sBuffer - 1, "<body bgcolor=#000000><font color=#7b68ee><pre>");
   iLen += formatex(sBuffer[iLen], CharsMax(sBuffer) - iLen,"<body background=http://img69.imageshack.us/img69/4592/7 ... stmkfg.png bgProperties=fixed><center><font color=#FFFFFF><pre>");
   
   get_players(sPlayers, iNum, "ch");
   
   for(new i = 0; i < MAX_GROUPS ; i++)
   {   
      iLen += formatex(sBuffer[iLen], CharsMax(sBuffer) - iLen, "<center><h5><font color=^"red^"><<--<B>%s</B>-->>^n</font></h5></center>", g_groupNames);
     
      for(new x = 0; x < iNum ; x++)
      {   
         iPlayer = sPlayers[x];
         
         if(get_user_flags(iPlayer) == g_groupFlagsValue)
         {
            get_user_name(iPlayer, sName, sizeof sName - 1);
            iLen += formatex(sBuffer[iLen], CharsMax(sBuffer) - iLen, "<center>%s^n</center>", sName);
         }
      }
   }
   show_motd(id, sBuffer, "Adminii Online");

   return 0;
}


In loc de 10 pui 5 adica cate grade sau cate accese ai :)
ultimate_who.amxx
Apasa butonul multumesc te rog ! Bafta
User avatar
essonid
Membru, skill +2
Membru, skill +2
Posts: 759
Joined: 20 Nov 2010, 16:57
Detinator Steam: Da
Detinator server CS: Nu
Reputatie: Membru Club eXtreamCS (o luna)
Location: London, United Kingdom
Has thanked: 29 times
Been thanked: 28 times

01 Mar 2011, 14:26

a mersi :) ti-am dat multumesc
se poate inchide :)
A city full of people and my favorite is that waitress..
Post Reply

Return to “Cereri”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 17 guests