搜索
查看: 4272|回复: 10

关于reallite 懂的帮忙修改下

[复制链接]
发表于 2010-9-12 10:09:40 | 显示全部楼层 |阅读模式 来自 福建厦门
本帖最后由 chl-88888 于 2010-9-12 10:11 编辑

关于 reallite 这个插件 装了之后玩家进入就会显示这个

但是我看到别人的服务器 进入之后是显示这样的 数据跟服务器的状况一样 好几个服务器都这样子的


源码在这 2楼 和3楼 希望懂的人帮忙改下 谢谢

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注个册吧

×
 楼主| 发表于 2010-9-12 10:12:03 | 显示全部楼层 来自 福建厦门
/*
===================================================================================================
Reallite Files Checker 0.5
棱蝾? DJ_WEST
Copyright (C) Reallite Labs, 2002-2008
燕轵 觐爨礓? http://reallite.cs2.ru
===================================================================================================
Reallite Files Checker - ?囗蜩-麒蝈瘃觇?镫嚆桧 潆 AMX Mod X,
镳邃磬珥圜屙睇?潆 犷瘘猁 ?桡痤赅扈, 觐蝾瘥?桉镱朦珞 礤耱囗溧痱睇?
羿殡? 蝾 羼螯 玎戾? 玮箨? 祛溴腓, 蝈犟蝮瘥, 耧疣轵??漯筱铄
磬 羿殡? 觐蝾瘥?溧 镳彖祗耱忸 麒蝈痼 ?疣珥 囫镥牝圊 桡瘥.
橡?钺磬痼驽龛?礤耱囗溧痱眍泐 羿殡??桡痤赅, 铐 礤 耢铈弪 玎轵?
磬 皴疴屦, 镱赅 礤 篑蜞眍忤?耱囗溧痱睇?羿殡.

===================================================================================================
玉蜞眍怅?
1) 殃铒桊箝蝈 羿殡 reallite_fc.amxx ?镟镪?../cstrike/addons/amxmodx/plugins
2) ?羿殡?plugins.ini, 疣耧铍铈屙眍??镟镪?../cstrike/addons/amxmodx/configs,
漕徉恻蝈 耱痤麝? reallite_fc.amxx
3) 脏殡 reallite_fc.txt 耜铒桊箝蝈 ?镟镪?../cstrike/addons/amxmodx/data/lang
4) 脏殡 reallite_fc.cfg 耜铒桊箝蝈 ?镟镪?../cstrike/addons/amxmodx/configs
5) ?羿殡?modules.ini, 疣耧铍铈屙眍??镟镪?../cstrike/addons/amxmodx/configs,
漕腈屙 猁螯 篑蜞眍怆屙 祛潴朦 fakemeta. 襄疱?fakemeta 礤 漕腈屙 耱?螯 珥嚓 觐祆屙蜞痂 ";".
6) 橡铒桫栩??../cstrike/server.cfg 耠邃簋?觐爨礓?
rfc_filesurl "http://reallite.cs2.ru"
蚂羼蝾 http://reallite.cs2.ru 镳铒桫栩?疋铋 噤疱? 沅?狍溴?疣耧铍铈屙 囵蹊?
耦 耱囗溧痱睇扈 羿殡囔? 篷腓 恹 龛沅?礤 疣珈羼蜩腓 囵蹊?耦 耱囗溧痱睇扈
羿殡囔?皴疴屦? 蝾 觐爨礓?rfc_filesurl 祛驽蝈 礤 桤戾?螯.
rfc_reason "Please use only standart files"
蚂羼蝾 Please use only standart files 恹 祛驽蝈 镳铒桉囹?疋铋 蝈犟? 觐蝾瘥?狍溴?
恹忸滂螯? 桡痤牦 镳?铗觌屙梃 铗 皴疴屦?玎 礤耱囗溧痱睇?羿殡.
7) 篷腓 恹 躅蜩蝈 镳钼屦螯 羿殡 opengl32.dll ?觌桢眚钼, 蝾 礤钺躅滂祛 ?reallite_fc.cfg
疣耜铎戾眚桊钼囹?耱痤麝??opengl32.dll. ?蜞赕?礤钺躅滂祛, 黩钺?羿殡 opengl32.dll 磬躅滂腭
磬 皴疴屦??汶噔眍?赅蝈泐痂?桡瘥 (礤 ?镟镪?cstrike, ??镟镪? 沅?羿殡 hl.exe).
8) 篷腓 恹 躅蜩蝈 镳钼屦螯 羿殡 hl.exe ?觌桢眚钼, 蝾 礤钺躅滂祛 ?reallite_fc.cfg
疣耜铎戾眚桊钼囹?耱痤麝??opengl32.dll. ?蜞赕?礤钺躅滂祛, 黩钺?羿殡 opengl32.dll 磬躅滂腭
磬 皴疴屦??汶噔眍?滂疱牝铕梃 桡瘥 (礤 ?镟镪?cstrike, ??镟镪? 沅?羿殡 hl.exe).

峦忍劳扰! 脏殡?hl.exe, cstrike.exe, opengl32.dll 漕腈睇 磬躅滂螯?, 赅??觌桢眚钼, 蜞??磬
皴疴屦??汶噔眍?滂疱牝铕梃 桡瘥 (礤 ?镟镪?cstike, ??镟镪? 沅?羿殡 hl.exe).

襄疱玎矬耱栩?皴疴屦, 磬徨痂蝈 ?觐眈铍?amxx plugins 麇疱?噤扈磬 桦?rcon.
?觐眈铍?漕腈磬 猁螯 蜞赅 耱痤麝?
Reallite Files Checker  0.5      DJ_WEST           reallite_fc.amx  running

===================================================================================================
务眍忭 忸珈铈眍耱?忮瘃梃 Reallite Files Checker 0.5:
* 念镱腠栩咫? 镳钼屦赅 赅痱 觌桢眚?(桉镳噔脲龛?徉汔 ?玎戾眍?赅痱?忸 怵屐 镱潢膻麇龛)
* 橡钼屦赅 羿殡钼 觌桢眚?(reallite_fc.cfg)
* 橡钼屦赅 opengl32.dll
* 橡钼屦赅 hl.exe
* 蔓忸??鬣?桧纛痨圉梃 ?Reallite Files Checker
* 青镨顸, 镳?钺磬痼驽龛?礤耱囗溧痱眍泐 羿殡??桡痤赅, ?腩汨.
象螯 ?羿殡? ../cstrike/addons/amxmodx/logs/reallite_fc.txt
* 暑爨礓?
rfc_filresurl "www.reallite.cs2.ru" - 噤疱?耨觇, ?觐蝾痤?祛骓?耜圜囹?囵蹊?耦
耱囗溧痱睇扈 羿殡囔?
rfc_reason "Please use only standart files" - 觐爨礓?潆 恹忸溧 蝈犟蜞 铠栳觇, 镳?箐嚯屙桢
桡痤赅 ?皴疴屦?
rfc_enable "1"/"0" - 觐爨礓?潆 怅膻麇龛/恹觌屙? 镳钼屦觇 羿殡钼.
rfc_admin "1"/"0" - 镳钼屦螯/礤 镳钼屦螯 噤扈眍??綦嚆铎 "a" ?users.ini (IMMUNITY)
rfc_maps "1"/"0" - 镳钼屦螯/礤 镳钼屦螯 赅痱?
rfc_textures "1"/"0" - 镳钼屦螯/礤 镳钼屦螯 蝈犟蝮瘥.
rfc_models "1"/"0" - 镳钼屦螯/礤 镳钼屦螯 祛溴腓.
rfc_sprites "1"/"0" - 镳钼屦螯/礤 镳钼屦螯 耧疣轵?
rfc_sounds "1"/"0" - 镳钼屦螯/礤 镳钼屦螯 玮箨?
rfc_exe "1"/"0" - 镳钼屦螯/礤 镳钼屦螯 *.exe 羿殡钼.
rfc_opengl32 "1"/"0" - 镳钼屦螯/礤 镳钼屦螯 opengl32.dll 羿殡.
===================================================================================================
回复

使用道具 举报

 楼主| 发表于 2010-9-12 10:13:26 | 显示全部楼层 来自 福建厦门
*/

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

#define PLUGIN "Reallite Files Checker"
#define VERSION "0.5"
#define AUTHOR "DJ_WEST"

static const s_FilesUrl[] = "www.reallite.cs2.ru"
static const s_Reason[] = "Please use only standart files"

new g_FilesUrl
new g_Reason
new g_Enable
new g_Admin
new g_CheckMaps
new g_CheckTextures
new g_CheckModels
new g_CheckSprites
new g_CheckSound
new g_CheckExe
new g_CheckOpengl32

public plugin_init()
{
        new s_ConfigsDir[128], s_ChecksFile[128]
       
        get_configsdir(s_ConfigsDir, sizeof(s_ConfigsDir)-1)
        format (s_ChecksFile, sizeof(s_ChecksFile)-1, "%s/reallite_fc_main.cfg", s_ConfigsDir)
        if (file_exists (s_ChecksFile))
                server_cmd("exec %s", s_ChecksFile)
       
        register_plugin(PLUGIN, VERSION, AUTHOR)
        register_cvar("rfc_version", VERSION, FCVAR_SERVER)
        register_dictionary ("reallite_fc.txt")
       
        g_FilesUrl        = register_cvar("rfc_filesurl", s_FilesUrl)
        g_Reason        = register_cvar("rfc_reason", s_Reason)
        g_Enable        = register_cvar("rfc_enable", "1")
        g_Admin                = register_cvar("rfc_admin", "1")
        g_CheckMaps        = register_cvar("rfc_maps", "1")
        g_CheckTextures        = register_cvar("rfc_textures", "1")
        g_CheckModels        = register_cvar("rfc_models", "1")
        g_CheckSprites        = register_cvar("rfc_sprites", "1")
        g_CheckSound        = register_cvar("rfc_sounds", "1")
        g_CheckExe        = register_cvar("rfc_exe", "1")
        g_CheckOpengl32        = register_cvar("rfc_opengl32", "1")
}

public plugin_precache()
{
        register_forward (FM_PrecacheModel,        "File_Precache")
        register_forward (FM_PrecacheSound,        "File_Precache")
        register_forward (FM_PrecacheGeneric,        "File_Precache")
         
        new s_ConfigsDir[64], s_ChecksFile[96]
        get_configsdir(s_ConfigsDir, sizeof(s_ConfigsDir)-1)
       
        new s_MapName[32], s_MapFile[64]
        get_mapname(s_MapName, sizeof(s_MapName)-1)
        format (s_MapFile, sizeof(s_MapFile)-1, "maps/%s.bsp", s_MapName)

        Enforce(s_MapFile)
       
        format(s_ChecksFile, sizeof(s_ChecksFile)-1, "%s/reallite_fc.cfg", s_ConfigsDir)
        if (!file_exists (s_ChecksFile))
                log_amx ("ERROR: %s doesn't exist.", s_ChecksFile)
        else
        {
                new s_RFCText[64]
                new a, i_Position = 0
                while (read_file(s_ChecksFile, i_Position++, s_RFCText, 63, a))
                {
                        if (s_RFCText[0] != ';' && !equal(s_RFCText, ""))
                                Enforce(s_RFCText)
                }
        }
}

public File_Precache(const s_File[])
{
        Enforce(s_File)
       
        return FMRES_IGNORED
}  

public Enforce(const s_File[])
{
        new s_FileWav[64]
        format (s_FileWav, sizeof(s_FileWav)-1, "sound/%s", s_File)
       
        if (file_exists(s_File))
                force_unmodified(force_exactfile, {0,0,0}, {0,0,0}, s_File)
        else if (file_exists(s_FileWav))
                force_unmodified(force_exactfile, {0,0,0}, {0,0,0}, s_File)
}

public inconsistent_file(id, const s_FileName[], s_KickReason[64])
{
        new s_Name[32], s_AuthID[32], s_IP[32], i_UserID, s_FilesUrl[128], s_NewFileName[64], s_Reason[64]
        get_user_authid(id, s_AuthID, sizeof(s_AuthID)-1)
        get_user_ip(id, s_IP, sizeof(s_IP)-1)
        get_user_name(id, s_Name, sizeof(s_Name)-1)
        i_UserID = get_user_userid(id)
        get_pcvar_string(g_FilesUrl, s_FilesUrl, sizeof(s_FilesUrl)-1)
        get_pcvar_string(g_Reason, s_Reason, sizeof(s_Reason)-1)
       
        if (!(get_pcvar_num(g_Admin) == 1))
                if ((get_user_flags(id) & ADMIN_IMMUNITY)) return PLUGIN_HANDLED
       
        if (!(get_pcvar_num(g_CheckMaps) == 1) && (containi(s_FileName, ".bsp") != -1))       
                return PLUGIN_HANDLED
       
        if (!(get_pcvar_num(g_CheckTextures) == 1) && (containi(s_FileName, ".wad") != -1))       
                return PLUGIN_HANDLED

        if (!(get_pcvar_num(g_CheckModels) == 1) && (containi(s_FileName, ".mdl") != -1))       
                return PLUGIN_HANDLED
               
        if (!(get_pcvar_num(g_CheckSprites) == 1) && (containi(s_FileName, ".spr") != -1))       
                return PLUGIN_HANDLED
               
        if (!(get_pcvar_num(g_CheckSound) == 1) && (containi(s_FileName, ".wav") != -1))       
                return PLUGIN_HANDLED
               
        if (!(get_pcvar_num(g_CheckOpengl32) == 1) && (containi(s_FileName, ".dll") != -1))       
                return PLUGIN_HANDLED
               
        if (!(get_pcvar_num(g_CheckExe) == 1) && (containi(s_FileName, ".exe") != -1))       
                return PLUGIN_HANDLED
               
        if(containi(s_FileName, ".wav") != -1)
                format(s_NewFileName, 64, "sound/%s", s_FileName)
        else
                format(s_NewFileName, 64, "%s", s_FileName)
               
        format(s_KickReason, sizeof(s_KickReason)-1, "%s. %s.^n", s_NewFileName, s_Reason)
       
        log_to_file("reallite_fc.txt","[Reallite Files Checker %s]: ^"%s<%d><%s><%s>^" has not standart file ^"%s^"", VERSION, s_Name, i_UserID, s_AuthID, s_IP, s_NewFileName)
        client_cmd(id, "echo ^"==================================^"")
        client_cmd(id, "echo ^"[Reallite Files Checker %s]: %L^"", VERSION, id, "RFC_INFO_5", s_NewFileName)
        client_cmd(id, "echo ^"[Reallite Files Checker %s]: %L %s^"", VERSION, id, "RFC_INFO_4", s_FilesUrl)
        client_cmd(id, "echo ^"==================================^"")
       
        Message(s_Name, s_NewFileName)

        return get_pcvar_num(g_Enable) ? PLUGIN_CONTINUE : PLUGIN_HANDLED
}

public client_connect(id)
{
        new s_FilesUrl[128]
        get_cvar_string("rfc_filesurl", s_FilesUrl, sizeof(s_FilesUrl)-1)
       
        client_cmd(id, "echo ^"=======================================================^"")
        client_cmd(id, "echo ^"* %L %s^"", id, "RFC_INFO_1", VERSION)
        client_cmd(id, "echo ^"* %L^"", id, "RFC_INFO_2")
        client_cmd(id, "echo ^"* %L^"", id, "RFC_INFO_3")
        client_cmd(id, "echo ^"* %L %s^"", id, "RFC_INFO_4", s_FilesUrl)
        client_cmd(id, "echo ^"=======================================================^"")
}

public Message(s_Name[], s_File[])
{
        new s_Message[128], s_Team[12]
        format(s_Message, sizeof(s_Message)-1, "^x03Reallite Files Checker %s [ ^x04%s - %s^x03 ]", VERSION, s_Name, s_File)
       
        new s_Players[32], i_Num
        get_players(s_Players, i_Num)
       
        new id
               
        for (id = 0; id < i_Num; id++)
        {
                get_user_team(s_Players[id], s_Team, sizeof(s_Team)-1)
               
                message_begin(MSG_ONE, get_user_msgid("TeamInfo"), {0,0,0}, s_Players[id])
                write_byte(s_Players[id])
                write_string("TERRORIST")
                message_end()
               
                message_begin(MSG_ONE, get_user_msgid("SayText"), {0,0,0},s_Players[id])
                write_byte(s_Players[id])
                write_string(s_Message)
                message_end()
               
                message_begin(MSG_ONE, get_user_msgid("TeamInfo"), {0,0,0}, s_Players[id])
                write_byte(s_Players[id])
                write_string(s_Team)
                message_end()
        }
       
        return PLUGIN_HANDLED
}
回复

使用道具 举报

发表于 2010-9-12 12:31:24 | 显示全部楼层 来自 台湾台北
跟那個無關的= =
而且差很多 完全不同的插件
回复

使用道具 举报

发表于 2010-9-12 22:01:03 | 显示全部楼层 来自 浙江嘉兴
如果你喜欢显示这样的东西! 就把你的内容发出来!我可以给你搞个!
回复

使用道具 举报

 楼主| 发表于 2010-9-16 08:37:11 | 显示全部楼层 来自 福建厦门
5# cs9527


能弄成 显示 服务器的 的东西吗 有个人说不是我发的这个插件
那么你知道那个插件吗 9527

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注个册吧

×
回复

使用道具 举报

 楼主| 发表于 2010-9-16 08:38:26 | 显示全部楼层 来自 福建厦门
4# jiunnwoei2629

可以告诉 是什么插件吗 还是能帮助我一把 把那个插件给我 阿里阿朵
回复

使用道具 举报

发表于 2010-9-16 12:28:59 | 显示全部楼层 来自 天津
  1. public client_connect(id)
  2. {
  3.         new s_FilesUrl[128]
  4.         get_cvar_string("rfc_filesurl", s_FilesUrl, sizeof(s_FilesUrl)-1)
  5.         
  6.         client_cmd(id, "echo ^"=======================================================^"")
  7.         client_cmd(id, "echo ^"* %L %s^"", id, "RFC_INFO_1", VERSION)
  8.         client_cmd(id, "echo ^"* %L^"", id, "RFC_INFO_2")
  9.         client_cmd(id, "echo ^"* %L^"", id, "RFC_INFO_3")
  10.         client_cmd(id, "echo ^"* %L %s^"", id, "RFC_INFO_4", s_FilesUrl)
  11.         client_cmd(id, "echo ^"=======================================================^"")
  12. }
复制代码
删掉
回复

使用道具 举报

 楼主| 发表于 2010-9-16 19:12:19 | 显示全部楼层 来自 福建厦门
8# 8874323


阿里阿朵 版主
回复

使用道具 举报

 楼主| 发表于 2010-9-16 19:18:34 | 显示全部楼层 来自 福建厦门
8# 8874323


版主 我想的是  有这个图的效果 比如  某某进去就Holle  xxx , welcome to xxxxx
显示服务器状况的   是不是我这个插件不对   我按照你说的删了  可是没那个效果 郁闷
回复

使用道具 举报

游客
回复
您需要登录后才可以回帖 登录 | 注个册吧

快速回复 返回顶部 返回列表