Raised This Month: $ Target: $400
 0% 

knife speed plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
kirDave
New Member
Join Date: Oct 2005
Old 10-27-2005 , 23:47   knife speed plugin
Reply With Quote #1

can someone tell me what to change in this to make it work with only the knife? Please dont flame me if I am requesting in the wrong area.


Quote:
#include <amxmodx>
#include <fun>

#define PLUGIN "Faster with knife"
#define VERSION "0.1"
#define AUTHOR "v3x"

#define MAX_SPEED 420.0

public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR);
register_event("CurWeapon","Event_CurWeapon", "be","2=29");
}

public Event_CurWeapon( id )
{
set_user_maxspeed(id, MAX_SPEED);
}
Thanks
kirDave is offline
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 10-28-2005 , 00:09  
Reply With Quote #2

As far as I can tell it should work with only the knife as it is.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
kirDave
New Member
Join Date: Oct 2005
Old 10-28-2005 , 00:13  
Reply With Quote #3

when i compile that, and add it to my plugins.ini... no matter what weapon, the player runs faster.

without the plugin, everything is slowed again.
kirDave is offline
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 10-28-2005 , 00:39  
Reply With Quote #4

Try this then.

Code:
#include <amxmodx>  #include <fun>  #define PLUGIN "Faster with knife"  #define VERSION "0.1"  #define AUTHOR "v3x"  #define MAX_SPEED 420.0  public plugin_init()  {     register_plugin(PLUGIN, VERSION, AUTHOR);     register_event("CurWeapon","Event_CurWeapon","b");  }  public Event_CurWeapon( id )  {     new clip, ammo, weapon = get_user_weapon(id,clip,ammo);     if(weapon == CSW_KNIFE)        set_user_maxspeed(id, MAX_SPEED);  }
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
kirDave
New Member
Join Date: Oct 2005
Old 10-28-2005 , 01:35  
Reply With Quote #5

thanks, that worked.
kirDave is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 10-28-2005 , 07:25  
Reply With Quote #6

I was a little skeptical about that.
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
Reply


Thread Tools
Display Modes

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 23:44.


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