i think like this but i really dont know jack about CS
PHP Code:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <fun>
#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "author"
new p_enable, p_speed, p_health
new const g_lang_file[] = "the_lang_file_you_wanna_to_print_from.txt"
public plugin_init()
{
/* on / off cvar */
p_enable = register_cvar("amx_knife_mod", "1") /* 1 is positive... */
/* the speed cvar */
p_speed = register_cvar("amx_knife_speed", "330")
/* the health cvar */
p_health = register_cvar("amx_knife_health", "100")
/* a say command for testing??? */
register_clcmd("say /knifetest", "knifemod")
register_dictionary( g_lang_file )
}
public knifemod(id)
{
if(!get_pcvar_num(p_enable))/* p_enable is NOT positiv STOP */
return PLUGIN_HANDLED
cs_set_user_armor(id, 100, CS_ARMOR_VESTHELM)
set_user_health(id, get_user_health(id) + get_pcvar_num(p_health))
set_user_maxspeed(id, get_user_maxspeed(id) + get_pcvar_num(p_speed))
client_print(id, print_chat, "%L", LANG_PLAYER, "KNIFE_HP", get_cvar_num("amx_knife_hp"))
return PLUGIN_CONTINUE
}
__________________