Raised This Month: $ Target: $400
 0% 

[Solved] CS16: A new method for Unlimited@Infinity Clip.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 10-04-2014 , 09:53   Re: [Help] CS16: A new method for Unlimited@Infinity Clip.
Reply With Quote #5

PHP Code:
 if(bInfinityClip[id])
    {
        
bInfinityClip[id] = false
        client_print
(idprint_chat"CmdSetInfinityClip(%d) DISABLED!"id)
    }
    else
    {
        
bInfinityClip[id] = true
        client_print
(idprint_chat"CmdSetInfinityClip(%d) ENABLED!"id)
    } 
->

PHP Code:
bInfinityClip[id] = !bInfinityClip[id
client_print(idprint_chat"CmdSetInfinityClip(%d) %s!"idbInfinityClip[id] ? "ENABLED" "DISABLED"
More simple way. You may try to hook Ham_Item_AttachToPlayer instead of Ham_AddPlayerItem
__________________

Last edited by HamletEagle; 10-04-2014 at 09:56.
HamletEagle 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 17:29.


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