New Posts  All Forums:Forum Nav:

AMX plugin.

post #1 of 2
Thread Starter 
Can anybody code a plugin that makes you run 25% faster with knife for CS?

This doesn't work...

#include <amxmodx>
#include <amxmisc>
#include <fun>

public plugin_init()
{
register_plugin("Knife Speed", "1.0", "BAILOPAN")
register_event("CurWeapon", "hook_weapon", "b")
register_cvar("knife_speed", "500")
}

public hook_weapon(id)
{
new wp = read_data(2)
if (wp == CSW_KNIFE) {
set_user_maxspeed(id, get_cvar_float("knife_speed"))
} else {
set_user_maxspeed(id, float(320))


Thanks,
-Billy
Edited by redsox83381 - 6/18/08 at 4:31pm
    
CPUGraphicsRAMHard Drive
Core i5 M 520 NVS 3100M G.SKILL 8GB (2 x 4GB) 204-Pin DDR3 SO-DIMM DDR3... OCZ Vertex 3 128GB 
  hide details  
Reply
    
CPUGraphicsRAMHard Drive
Core i5 M 520 NVS 3100M G.SKILL 8GB (2 x 4GB) 204-Pin DDR3 SO-DIMM DDR3... OCZ Vertex 3 128GB 
  hide details  
Reply
post #2 of 2
Take a look at this: http://forums.alliedmods.net/showthread.php?p=378952 It can easily do what you want it to do, plus a little more.
My System
(13 items)
 
  
CPUMotherboardGraphicsRAM
QX9650 @ 3.66 EVGA Nvidia 780i 2x EVGA 9600GT 512mb OCZ Reaper 4GB DDR2 1066 
Hard DriveOSPowerCase
2x 500gb Seagate Barracuda 7200.11 Vista Ultimate 64 bit OCZ GameXStream 700W Antec Nine Hundred Black Steel 
  hide details  
Reply
My System
(13 items)
 
  
CPUMotherboardGraphicsRAM
QX9650 @ 3.66 EVGA Nvidia 780i 2x EVGA 9600GT 512mb OCZ Reaper 4GB DDR2 1066 
Hard DriveOSPowerCase
2x 500gb Seagate Barracuda 7200.11 Vista Ultimate 64 bit OCZ GameXStream 700W Antec Nine Hundred Black Steel 
  hide details  
Reply
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Coding and Programming