Raised This Month: $ Target: $400
 0% 

Knife Speed


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Debesėlis
Senior Member
Join Date: Aug 2008
Location: Lithuania
Old 04-15-2009 , 09:17   Re: Knife Speed
Reply With Quote #1

I don't need the entire plugin, I need to add the code into my own plugin, so that when you enable it from a menu, you'd be given armor, hp and increased run speed.

PHP Code:
public plugin_init()
{
register_cvar("amx_knife_speed""330")
}

public 
knifemod(id)
{
        
cs_set_user_armor(id100CS_ARMOR_VESTHELM)
        
set_user_health(idget_user_health(id)+get_cvar_num("amx_knife_hp"))
        
set_user_maxspeed(idget_user_maxspeed(id)+get_cvar_num("amx_knife_speed"))
        
client_print(idprint_chat"%L"LANG_PLAYER"KNIFE_HP"get_cvar_num("amx_knife_hp"))

Debesėlis 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