|
Author
|
Message
|
|
Junior Member
|

10-19-2007
, 05:08
Was I fault ? it's can't work ?
|
#1
|
/*
*
* lock ex_interp 0.01 when client cavr ex_interp >0.01
*
* Version: 1.0
*
*
* Purpose: Flashhh! wants it.
*
*/
#include <amxmodx>
#include <amxmisc>
public plugin_init()
{
register_plugin("SetCommands", "ak-47", "1.1")
}
public client_putinserver(id)
{
if (! is_user_bot (id) && ! is_user_hltv (id))
{
new exinterp[32]
get_user_info(id,"ex_interp",exinterp,31)
//
//when print exinterp , find it's null ,I don't konw why
//so it will not work at if (str_to_float(exinterp) > 0.01) ,why
if (str_to_float(exinterp) > 0.01)
{
console_cmd(id, "ex_interp 0.01")
return PLUGIN_HANDLED
}
}
return PLUGIN_HANDLED
}
|
|
|
|