|
发表于 2010-11-30 19:48:27
|
显示全部楼层
|阅读模式
来自 中国–广东–广州
本帖最后由 qq8992679 于 2010-12-3 21:05 编辑
能不能把他改为3秒后复活,复活前,先判断目前CT人数是否超过全部在线人数的一半,如果是,那复活后就变成T,如果不是,则变为CT,。。帮帮忙,没见过这么乱的源码。。
源码在附件,帮忙修改下,真的很急用,我也可以列出源码来:- /* AMXMOD script.
- *
- * (c) Copyright 2000-2002, f117bomb
- * This file is provided as is (no warranties).
- *
- */
- #include <amxmod>
- #include <fun>
- /*
- *
- * Set Cvar 'amx_respawn' 1 or 0
- *
- */
- new gmsgResetHUD
- public death_msg()
- {
- if (get_cvar_num("amx_respawn") == 1)
- {
- new vIndex = read_data(2)
- new svIndex[32]
- num_to_str(vIndex,svIndex,32)
- set_task(2.0,"respawn",0,svIndex,32)
- }
- return PLUGIN_CONTINUE
- }
- public respawn(svIndex[])
- {
- new vIndex = str_to_num(svIndex)
- user_spawn(vIndex)
- message_begin(MSG_ONE,gmsgResetHUD,{0,0,0},vIndex)
- message_end()
-
- }
- public plugin_init()
- {
- gmsgResetHUD = get_user_msgid("ResetHUD")
- register_plugin("amx_respawn","0.2","f117bomb")
- register_event("DeathMsg","death_msg","a")
- register_cvar("amx_respawn","0")
- return PLUGIN_CONTINUE
- }
复制代码 |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?注个册吧
×
|