version i just made, this will allow you to climb up on walls. All credits to the guy who made the Scarlet Spider hero.
if this do not work then tell me and ill fix it. Enjoy
Code:
// All credits to the maker of the Scarlet Spider hero wich i used.
#include <amxmodx>
#include <Vexd_Utilities>
#include <pokemod>
#if !defined AMX_NEW
#include <xtrafun>
#endif
new bool:g_canClimb[ MAX_PLAYERS+1 ]
#define wallspeed 250.0
#define climb_task 199234
public plugin_init() {
// Plugin Info
register_plugin("Pokemod Climb Skill","1.0","Liinuus")
register_event("ResetHUD","newRound","b")
}
public wall_walk(id) {
id -= climb_task
if ( is_user_alive(id) && g_canClimb[id]) {
new Float:velocity[3]
Entvars_Get_Vector(id, EV_VEC_velocity, velocity)
if ( (Entvars_Get_Int(id,EV_INT_button)&IN_FORWARD) && (velocity[0]==0.0 || velocity[1]==0.0) ) {
velocity[2]=wallspeed
Entvars_Set_Vector(id, EV_VEC_velocity, velocity)
}
}
}
public Wall_Climb( id, skill, prop )
{
if( !is_user_alive(id) ) return PLUGIN_HANDLED
if ( !g_canClimb[id] )
{
g_canClimb[id] = true
set_task(0.1,"wall_walk",id + climb_task,"",0,"b")
set_hudmessage(20, 255, 20, -1.0, 0.25, 0, 1.0, 1.2, 0.4, 0.4, 95)
show_hudmessage(id, "You can now walk up walls!")
return SKILL_USED;
}
g_canClimb[ id ] = false
remove_task( id + climb_task )
set_hudmessage(20, 255, 20, -1.0, 0.25, 0, 1.0, 1.2, 0.4, 0.4, 95)
show_hudmessage(id, "You got rid of your ability to walk up walls")
return SKILL_USED;
}
public client_disconnect(id) {
remove_task(id + climb_task)
}
public newRound(id) {
g_canClimb[id]=false
}
and heres the code u put to make them call the skill. (note this skill should be installed on the server as a seperate plugin that is below the pokemod.amxx in the plugins.ini file!!! )