ok i got this but then it doesnt compile right.
PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <fakemeta>
#define PLUGIN "Semi-Clip"
#define VERSION "1.0"
#define AUTHOR "Reaper2331"
new p_Semiclip
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
p_Semiclip = register_cvar("amx_semiclip","1")
public Touch_Player(id, otherPlayer)
{
if(!g_bModifyMode[id] && !g_bModifyMode[otherPlayer] && g_bIsSurf && p_Semiclip == 1)
{
clearAirRecords(id) //Exploit Fix.
if(g_NoClip) {
if(entity_get_int(id, EV_INT_solid) != SOLID_NOT)
entity_set_int(id, EV_INT_solid, SOLID_NOT)
if(entity_get_int(otherPlayer, EV_INT_solid) != SOLID_NOT)
entity_set_int(otherPlayer, EV_INT_solid, SOLID_NOT)
//Allow players to jump/stack on each other
new buttonPressed = entity_get_int(id, EV_INT_button)
if( (buttonPressed & IN_JUMP) ) {
new Float:jVel[3]
entity_get_vector(id,EV_VEC_velocity,jVel)
jVel[2] = 375.0
entity_set_vector(id,EV_VEC_velocity,jVel)
}
}
}
}
__________________