|
发表于 2013-8-8 15:50:19
|
显示全部楼层
来自 中国–广东–深圳
本帖最后由 sakulekingz 于 2013-8-10 09:32 编辑
- #include <amxmodx>
- #include <fakemeta>
- #include <hamsandwich>
- #define PLUGIN "New Plug-In"
- #define VERSION "1.0"
- #define AUTHOR "k1nader"
- #define LOADING "^n^t%s v%s, Copyright (C) 2013 by %s^n"
- new g_cvarHealth;
- public plugin_init()
- {
- register_plugin(PLUGIN, VERSION, AUTHOR);
- server_print(LOADING, PLUGIN, VERSION, AUTHOR);
- g_cvarHealth = register_cvar("nosxei_health", "50.0");
- RegisterHam(Ham_Spawn, "player", "HAM_PlayerSpawn_Post", 1);
- // Add your code here...
- }
- public HAM_PlayerSpawn_Post(id)
- {
- if (is_user_alive(id))
- {
- new Float: flHealth, szName[32];
- flHealth = get_pcvar_float(g_cvarHealth);
- get_user_name(id, szName, charsmax(szName));
- if (contain(szName, "[NO-sXe-I]") == 0)
- {
- if (flHealth > 0.0)
- set_pev(id, pev_health, flHealth);
- }
- }
- }
复制代码 这是中文汉字补丁。。。,没有测试,你自己测试吧 - - |
|