1) {
IsVip[id] = 1
}
}
return PLUGIN_CONTINUE
}
public rope_motd(id){
new len = 1300
new buffer[1301]
new n = 0
#if !defined NO_STEAM
n += copy( buffer[n],len-n,"")
#endif
n += copy( buffer[n],len-n,"To use your rope have to bind a key to: +rope^n^n")
n += copy( buffer[n],len-n,"In order to bind a key you must open your console and use the bind command: ^n^n")
n += copy( buffer[n],len-n,"bind ^"key^" ^"command^" ^n^n")
n += copy( buffer[n],len-n,"In this case the command is ^"+rope^". Here are some examples:^n^n")
n += copy( buffer[n],len-n," bind f +rope bind MOUSE3 +rope^n^n")
n += copy( buffer[n],len-n,"Now whenever you press the that button, it launches your rope.^n")
n += copy( buffer[n],len-n,"Make sure to hold the key down as long as you want to be on the rope.^n")
n += copy( buffer[n],len-n,"Release the key when you want to get off of the rope.^n")
n += copy( buffer[n],len-n,"To make the rope shorter, press your jump button while using the rope.^n")
n += copy( buffer[n],len-n,"To make the rope longer, press duck while on the rope.^n^n")
n += copy( buffer[n],len-n,"New Command: rope_toggle - has the same effect as +rope, except that you^n")
n += copy( buffer[n],len-n," press it once to fire it and once again to release.^n^n")
n += copy( buffer[n],len-n,"Roping has to be enabled for you to use the rope.^n")
n += copy( buffer[n],len-n,"Under normal circumstances when rope is enabled, vip's in CS cannot use the rope.^n")
n += copy( buffer[n],len-n,"Also the rope may not be used for the first 15 seconds of a round in CS.^n")
#if !defined NO_STEAM
n += copy( buffer[n],len-n,"
")
#endif
show_motd(id,buffer,"Ninja Rope Help")
return PLUGIN_CONTINUE
}
public plugin_precache() {
beam = precache_model("sprites/zbeam4.spr")
s_rope = precache_model("sprites/rope.spr")
precache_sound("weapons/xbow_hit2.wav")
}
public plugin_init() {
register_plugin("Ninja Rope","1.1.1","EJL-SpaceDude/JTP10181")
register_concmd("amx_rope","amx_hc",ADMIN_LEVEL_A,": toggles rope on and off")
register_concmd("amx_rope_count","admin_hook_count",ADMIN_LEVEL_A,": <# of ropes allowed to each player per round>")
register_clcmd("say","HandleSay")
register_clcmd("say /rope","rope_motd")
register_cvar("amx_rope_spawndelay","0")
register_cvar("amx_rope_no_vip","1")
register_cvar("amx_ropes_round","9999")
register_cvar("amx_rep_rcount","1")
register_cvar("amx_ropetype","1")
register_event("Battery","vip_spawn","b","1=200")
register_cvar("sv_ninjarope","1",FCVAR_SERVER)
register_clcmd("rope_toggle", "rope_toggle")
register_clcmd("+rope", "hook_on")
register_clcmd("-rope", "hook_off")
register_event("ResetHUD", "new_round", "b")
register_logevent("round_start", 2, "1=Round_Start")
register_logevent("round_end", 2, "1=Round_End")
register_cvar("amx_rb_pl_kill","1")
set_task(4.0,"mapbounds_killer")
}
public plugin_modules()
{
require_module("fun")
require_module("engine")
}