|
[color="Red"]要求:AMXX 1.70以上版本!
- /* AMX Mod X Script */
- /*
- Admin Speed v1.1 -=- by KinSprite , 06/08, 2006
-
- 使用该插件,管理员可以设置玩家的速度。
-
- [参数]:
- amx_allowspeed <1 或 0> // 0, 关闭速度改变.
- amx_speedall <1 or 0> // 1, 所有玩家相同的速度, 除特殊玩家之外
-
- amx_speedallvalue <整数: 正常速度的百分比> // 所有玩家的速度值,除特殊玩家之外,默认100
- [命令]:
- amx_speed <#userid,nick,authorid,@ALL,@TEAM> [ON/OFF] [整数: 正常速度的百分比]
-
- //设置特殊玩家的速度
-
- [要求模块]: Fun
- [Change Log]:
-
- v1.1:
- 1, fix speed when a sniper rifle is zoomed in/out or a shield is opened/closed
- 2, all players can run at the same percent of normal speed, except special players
- */
复制代码
[PHP]
#include <amxmodx>
#include <amxmisc>
#include <fun>
#define PLUGIN "Admin Speed"
#define VERSION "1.1"
#define AUTHOR "KinSprite"
new g_WpnUsed[33]
new bool:g_hasSpeed[33]
new g_Speed[33]
new g_allowspeed
new g_speedall
new g_speedallvalue
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_concmd("amx_speed", "cmdspeed", ADMIN_LEVEL_A, "<#userid,nick,authorid,@ALL,@TEAM> [ON/OFF] [Integer: percent of normal speed] - Set special players' speed")
register_event("CurWeapon","Change_Wpn","be","1=1")
register_event("HideWeapon", "Change_WpnState", "b")
register_logevent("new_round",2,"0=World triggered","1=Round_Start")
g_allowspeed = register_cvar("amx_allowspeed","1")
g_speedall = register_cvar("amx_speedall","0")
g_speedallvalue = register_cvar("amx_speedallvalue","100")
}
[/PHP] |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?注个册吧
×
|