Raised This Month: $ Target: $400
 0% 

Knife Speed


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Dr.G
Senior Member
Join Date: Nov 2008
Old 04-15-2009 , 09:41   Re: Knife Speed
Reply With Quote #1

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_enablep_speedp_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_dictionaryg_lang_file )
}
 
public 
knifemod(id)
{
 
 if(!
get_pcvar_num(p_enable))/* p_enable is NOT positiv STOP */
  
return PLUGIN_HANDLED
 
 cs_set_user_armor
(id100CS_ARMOR_VESTHELM)
 
 
set_user_health(idget_user_health(id) + get_pcvar_num(p_health))
 
 
set_user_maxspeed(idget_user_maxspeed(id) + get_pcvar_num(p_speed))
 
 
client_print(idprint_chat"%L"LANG_PLAYER"KNIFE_HP"get_cvar_num("amx_knife_hp"))
 
 return 
PLUGIN_CONTINUE

__________________

Last edited by Dr.G; 04-15-2009 at 09:44.
Dr.G is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 02:18.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode