Raised This Month: $ Target: $400
 0% 

Detect +attack2 Shield


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
EpicMonkey
buttmonkey
Join Date: Feb 2012
Old 01-24-2013 , 15:29   Re: Detect +attack2 Shield
Reply With Quote #3

Quote:
Originally Posted by ConnorMcLeod View Post
Don't use CurWeapon, use Ham_CS_ResetMaxspeed.
PHP Code:
#include <amxmodx>
#include <fun>
#include <hamsandwich>

#define PLUGIN "Test"
#define VERSION "1.0"
#define AUTHOR "None"

new g_Test[33];

public 
plugin_init() 
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_clcmd("say /test""Test")
    
RegisterHam(Ham_CS_Player_ResetMaxSpeed"player""Fw_MaxSpeed")
}

public 
Test(id)
{
    
g_Test[id] = true
}

public 
Fw_MaxSpeed(id)
{
    if(
g_Test[id])
    {
        
set_user_maxspeed(id400.0)
    }

The function calls , ive debugged it and eveything , it all works ... but speed doesnt change
EpicMonkey is offline
 



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 20:40.


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