| MostWanted |
11-02-2006 09:19 |
Scout Helper 0.1b
Help? :D, im not good with coding anyone wanna help me fix some things, also need to add bunnyhop having trouble.
Code:
#include <amxmodx>
#include <amxmisc>
#include <engine>
new g_szSound[] = "joinserver.mp3"
new bool:Falling[33]
public plugin_init()
{
register_plugin("ScoutzHelper","0.1","MostWanted");
register_cvar("scoutz_nofalldmg","1");
register_clcmd("fullupdate", "Block_Cmd");
set_cvar_num("sv_gravity",200)
}
public client_PreThink(id)
{
if(entity_get_float(id, EV_FL_flFallVelocity) >= 350.0 && get_cvar_num("scoutz_nofalldmg"))
Falling[id] = true
}
public client_PostThink(id)
{
if(Falling[id] && get_cvar_num("scoutz_nofalldmg"))
{
entity_set_int(id, EV_INT_watertype, -3)
Falling[id] = false
}
}
public plugin_precache()
precache_sound(g_szSound)
public client_putinserver(id)
set_task(20.0,"fnPlaySound",id)
public fnPlaySound(id)
client_cmd(id,"spk %s",g_szSound)
|