Raised This Month: $ Target: $400
 0% 

Ham_ResetSpeed


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Doc-Holiday
AlliedModders Donor
Join Date: Jul 2007
Old 08-08-2011 , 21:51   Ham_ResetSpeed
Reply With Quote #1

using the following code

PHP Code:
public fwdPlayerResetMaxSpeedPost(id)
{
        new 
iClass g_XP[id][Class];
        new 
iRank g_XP[id][Rank];
        new 
weapon get_user_weapon(id);
    
        if(
iClass == CLASS_NONE)
            return 
HAM_IGNORED;
        
        if(!
weapon)
            return 
HAM_IGNORED;
        
        new 
szWeaponName[32];
        
get_weaponname(weaponszWeaponNamecharsmax(szWeaponName));
            
        
client_print(idprint_chat"[%s] Speed Changed Weapon: %s"g_szPrefixNameszWeaponName);

it prints the previous weapon.. If i currently have AK47 Switch to Glock it prints AK47..

and so every one knows its a post hook. Any ideas why it "resets" before the weapon actually changes??

Also would setting a task be a work around? (Ways to check for rapid switching so not to create 200 set tasks lol)
Doc-Holiday 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 03:21.


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