سلام میهمان گرامی , اگر تا کنون ثبت نام نکرده اید در مرجع تخصصی گیم سازان ثبت نام کنید مطمئن باشید پشیمان نخواهید شد برای ثبت نام کلیک کنید مطمئنا تمام کاربران به فرومهایی میروند که مدیران از پس سوالات کاربران برآیند سایت گیم سازان با سالها تجربه در این امر شما را یاری خواهد کرد امیدواریم بعد از ثبت نام ساعات خوشی را در کنار یکدیگر سپری کنیم.

کاربران برچسب زده شده

نمایش نتایج: از 1 به 1 از 1

موضوع: پلاگين atac ucp

  1. #1
    تاریخ عضویت
    Jul 2014
    نوشته ها
    1,700
    نوشته های وبلاگ
    3
    یاد شده
    در 0 پست
    برچسب زده شده
    در 0 تاپیک

    Post پلاگين atac ucp

    پلاگين ATAC UCP
    ورژن 3.0.1
    سازنده ATAC Team
    لينک اصلي پلاگين
    ماژولهاي مورد نياز
    #include <amxmodx>
    #include <amxmisc>
    #include <fakemeta>
    #include <atac>
    سلام
    توضيحات : این پلاگین بازیکنان ثبت نام شده متخلف رو بصورتهای مختلف مجازات میکنه



    Copyright © 2006-2008, ATAC Team


    ATAC (Advanced Team Attack Control) is free software;
    you can redistribute it and/or modify it under the terms of the
    GNU General Public License as published by the Free Software Foundation.


    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
    GNU General Public License for more details.


    You should have received a copy of the GNU General Public License
    along with ATAC (Advanced Team Attack Control); if not, write to the
    Free Software Foundation, Inc., 59 Temple Place - Suite 330,
    Boston, MA 02111-1307, USA.
    */


    #include <amxmodx>
    #include <amxmisc>
    #include <fakemeta>
    #include <atac>


    #define PLUGIN "ATAC"
    #define VERSION "3.0.1"
    #define AUTHOR "ATAC Team"


    #define MAX_STORED_KILLS 512
    #define MENU_TASK 1066 // Battle of Team Killing


    new TeamAttacks[ 33 ]
    new TeamKills[ 33 ]


    new StoreKills[ MAX_STORED_KILLS ][ 38 ] // authid 0-31, tkamount 32-34, tkpunish 35-37
    new g_StoreKill_Count


    new KillerAuthID[ 33 ][ 32 ]
    new KillerName[ 33 ][ 32 ]
    new KilledMenu[ 33 ][ 33 ]
    new CurrentKiller[ 33 ]
    new PlayerPunish[ 33 ][ MAX_PUNISHMENTS ]
    new MenuCount[ 33 ]
    new g_atac
    new g_atac_on
    new g_atac_menu
    new g_UserPage[ 33 ]
    new g_hp[ 33 ]
    new EntOwner[ 2048 ]
    new maxplayers
    new g_immunityFlags[32]
    new g_ColourMenus
    new g_CSRunning
    new g_Bomb // Fix for CS/CZ


    enum PUNISH_SETTINGS
    {
    fwd_punish = 0,
    fwd_spawn,
    fwd_reset,
    fwd_name,
    punish_id
    }


    enum ADDON_SETTINGS
    {
    fwd_attack = 0,
    fwd_kill,
    fwd_punished,
    fwd_punish_active,
    addon_id
    }


    new Plugin_Punishments[ MAX_PUNISHMENTS ][ PUNISH_SETTINGS ]
    new g_Punish_Count = 2
    new Plugin_Addons[ MAX_ADDONS ][ ADDON_SETTINGS ]
    new g_Addon_Count = 0


    new bool:gRestart
    new gCVARRestart
    new gCVARDisabled
    new gCVARMenu
    new gCVARMenuOverwrite
    new gCVARShowPunishment
    new gCVARAdminsImmune
    new gCVARStoreKills
    new gCVARTKAfterdeath
    new gCVARTKAvoidance
    new gCVARBanType
    new gCVARBanTime
    new gCVARTeamAttacks
    new gCVARTeamKills
    new gCVARImmunityFlags


    public plugin_init()
    {
    g_atac = register_plugin( PLUGIN, VERSION, AUTHOR )
    register_dictionary( "atac.txt" )
    register_dictionary( "atac_punishments.txt" )
    register_cvar( "atac_version", VERSION, FCVAR_SERVER|FCVAR_SPONLY )
    set_cvar_string("atac_version", VERSION);
    register_concmd( "atac", "ConsoleCommand_atac", ADMIN_RCON, "- access ATAC information" )


    gCVARRestart = get_cvar_pointer( "sv_restart" )
    gCVARDisabled = register_cvar( "atac_disabled", "0" )
    gCVARMenu = register_cvar( "atac_menu", "1" )
    gCVARMenuOverwrite = register_cvar( "atac_menu_overwrite", "0" )
    gCVARShowPunishment = register_cvar( "atac_show_punishment", "1" )
    gCVARAdminsImmune = register_cvar( "atac_admins_immune", "0" )
    gCVARStoreKills = register_cvar( "atac_store_kills", "1" )
    gCVARTKAfterdeath = register_cvar( "atac_tk_afterdeath", "0" )
    gCVARBanType = register_cvar( "atac_ban_type", "3" )
    gCVARBanTime = register_cvar( "atac_ban_time", "120" )
    gCVARTeamAttacks = register_cvar( "atac_team_attacks", "5" )
    gCVARTeamKills = register_cvar( "atac_team_kills", "3" )
    gCVARImmunityFlags = register_cvar( "atac_immunity_flags", "a" )
    gCVARTKAvoidance = register_cvar( "atac_tk_avoidance", "1" )
    Plugin_Punishments[ 0 ][ punish_id ] = g_atac
    Plugin_Punishments[ 1 ][ punish_id ] = g_atac


    if ( !get_pcvar_num( gCVARDisabled ) )
    atac_load()
    }


    atac_load()
    {
    new dir[ 64 ]
    get_configsdir( dir, 63 )
    g_atac_on = 1


    server_cmd( "exec %s/atac/atac.cfg", dir )
    server_cmd( "exec %s/atac/punishments.cfg", dir )
    server_cmd( "exec %s/atac/addons.cfg", dir )
    server_cmd( "exec %s/atac/mod.cfg", dir )


    register_clcmd( "fullupdate", "ClientCommand_fullupdate" )
    register_clcmd( "say /atacstatus", "ClientCommand_atacstatus", 0, "- shows your Team Attack and Team Kill status" )
    g_atac_menu = register_menuid( "ATAC_TK" )
    register_menucmd( g_atac_menu, 1023, "action_atac_menu" )


    register_event( "DeathMsg", "Event_DeathMsg", "a", "1>0" )
    register_event( "Health", "Event_Health", "be" )
    register_event( "ResetHUD", "Event_ResetHUD", "be" )
    register_event( "TextMsg", "RestartGame", "a", "2=#Game_will_restart_in" )
    register_logevent( "Log_Round_Start", 2, "0=World triggered", "1=Round_Start" ) // Fix for CS/CZ


    register_forward( FM_Think, "Forward_Think" )

    maxplayers = get_maxplayers()
    g_ColourMenus = colored_menus()
    g_CSRunning = cstrike_running()


    get_pcvar_string( gCVARImmunityFlags, g_immunityFlags, sizeof( g_immunityFlags ) - 1 )
    }


    public client_authorized( id )
    {
    if ( !g_atac_on )
    return


    for ( new player = 1; player <= maxplayers; ++player )
    {
    KilledMenu[ id ][ player ] = 0
    KilledMenu[ player ][ id ] = 0
    }


    TeamAttacks[ id ] = 0
    TeamKills[ id ] = 0
    CurrentKiller[ id ] = 0
    MenuCount[ id ] = 0
    g_UserPage[ id ] = 0
    g_hp[ id ] = 0


    get_real_authid( id, KillerAuthID[ id ] )




    موفق باشيد.
    http://www.forum.gamesazan.ir/thread7.html
    پسورد : www.gamesazan.ir
    فايل هاي پيوست شده فايل هاي پيوست شده

کلمات کلیدی این موضوع

علاقه مندي ها (Bookmarks)

علاقه مندي ها (Bookmarks)

مجوز های ارسال و ویرایش

  • شما نمیتوانید موضوع جدیدی ارسال کنید
  • شما امکان ارسال پاسخ را ندارید
  • شما نمیتوانید فایل پیوست کنید.
  • شما نمیتوانید پست های خود را ویرایش کنید
  •  
© تمامی حقوق برای گیم سازان محفوظ بوده و هرگونه کپی برداري از محتوای انجمن پيگرد قانونی دارد