安装c4可移动插件和连跳插件有点冲突
本帖最后由 20061234 于 2011-1-3 22:09 编辑安装c4可移动插件和连跳插件有点冲突怎可以令2个插件共存呢?怎改
这是安装c4可移动插件
#include<amxmodx>
#include<fun>
#include<engine>
new bool:movespeed
public plugin_init(){
register_plugin("Run Planting","1.0","ts2do")
register_event("ResetHUD","ResetHUD","bc")
}
public ResetHUD(){
new Float:FreezeTime = get_cvar_float("mp_freezetime")
if(FreezeTime>0){
movespeed=false
set_task(FreezeTime,"bombSpeed")
}
}
public bombSpeed(){movespeed=true;}
public client_PreThink(id){
if(movespeed){
if(get_user_button(id)&IN_ATTACK){
new temp
if(get_user_weapon(id,temp,temp)==CSW_C4){
set_user_maxspeed(id,220.0)
}
}
}
} 这是连跳插件
/*
*
* Author: homorapian
* Date: 14-Aug-2005
*
*
* what it is.. It is a bunnyhop that removes the slowdown after a jump. hold it to go faster
*
* Cvars:
* bh_enabled 1 to enable this plugin, 0 to disable.
* bh_autojump If set to 1 players just need to hold down jump to bunny hop (no skill required)
* bh_showusage If set to 1 it will inform joining players that bunny hopping has been enabled
* and how to use it if bh_autojump enabled.
*
* Requirements: amxmodx 1.01 or higher
*
************************* I LEARNED THIS PLUGIN FROM ANOTHER Bunnyhop PLUGIN*************************************
*/
#include <amxmodx>
#include <engine>
#define FL_WATERJUMP (1<<11) // popping out of the water
#define FL_ONGROUND (1<<9) // not moving on the ground
public plugin_init() {
register_plugin("Bhop", "1.0", "homorapian")
register_cvar("sbhopper_version", "1.0", FCVAR_SERVER)
register_cvar("bh_enabled", "1")
register_cvar("bh_autojump", "1")
register_cvar("bh_showusage", "1")
}
public client_PreThink(id) {
if (!get_cvar_num("bh_enabled"))
return PLUGIN_CONTINUE
entity_set_float(id, EV_FL_fuser2, 0.0) // Won't slow down after a jump
if (!get_cvar_num("bh_autojump"))
return PLUGIN_CONTINUE
if (entity_get_int(id, EV_INT_button) & 2) {
new flags = entity_get_int(id, EV_INT_flags)
if (flags & FL_WATERJUMP)
return PLUGIN_CONTINUE
if ( entity_get_int(id, EV_INT_waterlevel) >= 2 )
return PLUGIN_CONTINUE
if ( !(flags & FL_ONGROUND) )
return PLUGIN_CONTINUE
new Float:velocity
entity_get_vector(id, EV_VEC_velocity, velocity)
velocity += 250.0
entity_set_vector(id, EV_VEC_velocity, velocity)
entity_set_int(id, EV_INT_gaitsequence, 6) // Jump graphics
}
return PLUGIN_CONTINUE
}
public client_authorized(id)
set_task(30.0, "showUsage", id)
public showUsage(id) {
if ( !get_cvar_num("bh_enabled") || !get_cvar_num("bh_showusage") )
return PLUGIN_HANDLED
if ( !get_cvar_num("bh_autojump") ) {
client_print(id, print_chat, " B-hopping is enabled on this server. You will not slow down after jumping. By homorapian")
} else {
client_print(id, print_chat, " B-hopping is enabled on this server. Just hold down jump to bunny hop. By homorapian")
}
return PLUGIN_HANDLED
}
用这个吧不需要那2个插件了 用了也一樣
开启了连跳和安装c4可移动也是一样没连跳只有安装c4可移动
页:
[1]