THis is a plugin
PHP Code:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <engine>
#define PLUGIN "Spin Me"
#define VERSION "1.0"
#define AUTHOR "Charming"
new bool:on[33]
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd("say /on", "cmdON")
register_clcmd("say /off", "cmdOFF")
}
public cmdOFF(id)
{
on[id] = false
client_cmd(id, "-right")
entity_set_float(id, EV_FL_friction, 1.0)
entity_set_float(id, EV_FL_gravity, 0.0)
}
public cmdON(id) on[id] = true
public client_PreThink(id) if(on[id]) leEt_EfFeCt(id)
leEt_EfFeCt(id)
{
client_cmd(id, "+right")
if(entity_get_int(id, EV_INT_flags) & FL_ONGROUND)
{
new Float:Velocity[3]
entity_get_vector(id, EV_VEC_velocity, Velocity)
Velocity[0] = random_float(200.0, 500.0)
Velocity[1] = random_float(200.0, 500.0)
Velocity[2] = random_float(200.0, 500.0)
entity_set_vector(id, EV_VEC_velocity, Velocity)
}
entity_set_float(id, EV_FL_friction, 0.1)
entity_set_float(id, EV_FL_gravity, 0.000001)
}
and it uses bool
how to do it.
i mean can seperate it ?


__________________