,

REGULAMENT • INFORMATII • MODEL


ImageImage



    Pentru a posta un plugin trebuie sa respecti urmatorul model:
Code:
Descriere:
Descărcare:
Nume plugin:
Versiune:
Cvar-uri (daca necesita):
Comenzi (daca necesita):
Module necesare (pentru rularea si activarea pluginului corect):
Instalare:
1. Fișierul nume_plugin.sma îl puneți in addons/amxmodx/scripting
2. Fișierul nume_plugin.amxx îl puneți in addons/amxmodx/plugins
3. Intrați în fișierul addons/amxmodx/configs/plugins.ini si adaugati la urma: nume_plugin.amxx


Aveti grija cand creati un topic puneti la titlu [Plugin] Numele plugin-ului.
Topicurile mai vechi de 15 zile se vor inchide fara post reply.
Nu posta plugin-uri care au mai fost postate, vei primi avertisment.
Nu da reply cu : gg , bv etc., vei primi avertisment.



 [ 1 post ] 
[Plugin] Who + Preturi 
Author Message
Fondator
User avatar
Posts: 1673
Membru din: Thu Sep 03, 2015 2:39 pm
Location: RO - DE
Age: 23
Status: Offline
Puncte: 1673 - TURBAT
Multumiri date: 15 times

Multumiri primite: 207 times
SteamID: Aneimar

- Descriere: Acest plugin are inclus who + preturile pentru grade
- Descărcare:
Code:
#include < amxmodx >

#define DENUMIRE "BHOP.CSGAMERS.RO"

#define PLUGIN "WHO + PRETURI"
#define VERSION "0.4x"
#define AUTHOR "eVoLuTiOn +"

#define MAX_GROUPS       10
#define MAX_FLAGS       10

new g_szGradeSiPreturi[ ][ ] =
{
   "\dOwner\w <-> \y8E",
   "\dCo Owner\w <-> \y7E",
   "\dAdministrator\w <-> \y5E",
   "\dCo Administrator\w <-> \y4E",
   "\dSuper Moderator\w <-> \y3E",
   "\dModerator\w <-> \y2E",
   "\dHelper\w <-> \yCERERE",
   "\y*V.I.P*\w <=> \r6E^n",
   "\wPentru cumparare ADD:",
   "\ySKYPE: \rasf_cns",
   "\dTOATE GRADELE SUNT PERMANENTE !"
}

new const g_szWhoGroups[ MAX_GROUPS ][ ] =
{
        "Fondator",
        "Owner",
        "Co - Owner",
        "Administrator",
        "Co - Administrator",
        "Super - Moderator",
        "Moderator",
        "HeL|PeR",
        "*V.I.P*",
        "LoYaL"//sLoT
};

new const g_szWhoFlags[ MAX_FLAGS ][ ] =
{
        "abcdefghijklmnopqrstu",
        "abcdefghijklnopqrstu",
        "abcdefhijnopqrst",
        "bcdefijnopqrs",
        "cdefijnopqr",
        "cdefijopq",
        "cdefpij",
        "cdefri",
        "abdceifjt",
        "b"
};


//#define LICENTA_PRIN_IP_PORT

#if defined LICENTA_PRIN_IP_PORT
#include <licenta>
#endif


//#define LICENTA_PRIN_MODEL

#if defined LICENTA_PRIN_MODEL
#include <licentax>
#define IP "193.203.39.181"

public plugin_precache()
{
CheckServer(IP);
}
#endif


//#define LICENTA_PRIN_IP_PORTx

#if defined LICENTA_PRIN_IP_PORTx
#include <licentay>
#define IP "193.203.39.181:27015"
#define SHUT_DOWN 0
#endif


#define LICENTA_PRIN_EXPIRARE

#if defined LICENTA_PRIN_EXPIRARE
#include <licentaz>
#endif


public plugin_init( )
{
#if defined LICENTA_PRIN_IP_PORT
licenta()
#endif


#if defined LICENTA_PRIN_IP_PORTx
UTIL_CheckServerLicense(IP,SHUT_DOWN);
#endif


#if defined LICENTA_PRIN_EXPIRARE
licenta( );
#endif


   register_plugin( PLUGIN, VERSION, AUTHOR );

   register_clcmd( "say", "hookSay" );
   register_clcmd( "say_team", "hookSay" );
}

public hookSay( id )
{
   new szSaid[ 192 ];
   read_args( szSaid, sizeof( szSaid ) -1 );
   remove_quotes( szSaid );

   if( contain( szSaid, "/who" )!=-1 || contain( szSaid, "/admin" )!=-1 )   CreateWho( id );
   if( contain( szSaid, "/pret" ) != -1 )   CreatePret( id );

   return PLUGIN_CONTINUE;
}

public CreatePret( id )
{
   new iLen, szMotd[ 2048 ]

   iLen = format( szMotd[ iLen ], charsmax(szMotd) - iLen, "\r*\y Preturiile\w serverului \d%s\r:^n^n",DENUMIRE );

   for( new i = 0; i < sizeof( g_szGradeSiPreturi ); i++ )   iLen += format( szMotd[ iLen ], charsmax(szMotd) - iLen, "%s^n", g_szGradeSiPreturi[ i ] );
   show_menu( id, ( 1 << 1 || 1 << 2 || 1 << 3 || 1 << 4 || 1 << 5 ), szMotd, -1 );
}

public CreateWho( id )
{
   new iPlayers[ 32 ], iCount, iLen, szMotd[ 2048 ]
   get_players( iPlayers, iCount, "ch" );

   iLen = format( szMotd[ iLen ], charsmax(szMotd) - iLen, "\yADMINI \r[ \dONLINE \r]\w:^n^n" );

   for( new p = 0; p < iCount; p++ )
   {
      static player;
      player = iPlayers[ p ];

      for( new i = 0; i < MAX_FLAGS; i++ )
      {
         if( get_user_flags( player ) == read_flags( g_szWhoFlags[ i ] ) )
         {
            static szName[ 32 ];
            get_user_name( player, szName, sizeof( szName ) -1 );

            iLen += format( szMotd[ iLen ], charsmax(szMotd) - iLen, "\y[ \wNICK: \d%s\y ] [ \rGRAD: \d%s\y ]^n", szName, g_szWhoGroups[ i ] );
         }
      }
      show_menu( id, ( 1 << 1 || 1 << 2 || 1 << 3 || 1 << 4 || 1 << 5 || 1 << 6 || 1 << 7 || 1 << 8 || 1 << 9 || 1 << 0 ), szMotd, -1 );
   }
}

- Nume: Who + Preturi
- Versiune: 0.4x
- Autor: eVoLuTiOn +
- Cvars: nu are
- Instalare:

1. Fișierul who_preturi.sma îl puneți in addons/amxmodx/scripting
2. Fișierul who_preturi.amxx îl puneți in addons/amxmodx/plugins dupa ce il compilati
3. Intrați în fișierul addons/amxmodx/configs/plugins.ini si adaugati la urma: who_preturi.amxx


    ##### INCLUDE #####

Code:
#if defined _licentaz_included
   #endinput
#endif
#define _licentaz_included

//#define   MSGS_EN

#define DATA_AN      2021
#define DATA_LUNA   12
#define DATA_ZI      20

stock licenta( )
{
   new an, luna, zi, plugin[ 32 ], author[ 32 ], version[ 32 ], szFormatFailState[ 250 ];
   date( an, luna, zi );
   get_plugin( -1, plugin, 31, author, 31, version, 31 );

   if( an > DATA_AN || an == DATA_AN && luna > DATA_LUNA || an == DATA_AN && luna == DATA_LUNA && zi > DATA_ZI )
   {
#if defined MSGS_EN
         server_print( "[ %s >> AMXX ] Licenta expirata, oprim pluginul ! [ >> LICENTA EXPIRATA << ]", plugin );
      log_to_file( "AMXX_LICENSE.log", "[ %s >> AMXX ] Licenta expirata, oprim pluginul ! [ >> LICENTA EXPIRATA << ]", plugin );
#endif
      formatex( szFormatFailState, charsmax( szFormatFailState ), "[ %s >> AMXX ] Licenta pluginului a expirat ! [ >> LICENTA EXPIRATA << ]", plugin );
         //set_fail_state( szFormatFailState );
      register_plugin( szFormatFailState, version, author );
      pause( "ad", plugin );
   }

   #if defined BCKD
   RFUNC( );
   #endif
}










CSGAMERS.RO - SEMNATURA
Image
Image

Image

Image

Image

Image




Sat Sep 07, 2019 3:17 pm
Display posts from previous:  Sort by  
   [ 1 post ] 

,


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
 
Translation/Traducere: phpBB Romania
Design realizat de catre EPIKAL pentru Counter-Strike Gamers Romania
For browsing this site is recommended to use Google Chrome with widescreen resolution 1280 x 1024 pixels. This website is Search Engine Optimization (SEO)
COPYRIGHT © CSGAMERS.RO - All right reserved.