Raised This Month: $ Target: $400
 0% 

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


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
yokomo
Surprise Ascot!
Join Date: May 2010
Location: Malaysia
Old 10-04-2014 , 12:52   Re: [Help] CS16: A new method for Unlimited@Infinity Clip.
Reply With Quote #1

Quote:
Originally Posted by HamletEagle View Post
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
That was just example, Ok i'll try to use "Ham_Item_AttachToPlayer".
__________________
Team-MMG CS1.6 Servers:
✅ MultiMod -- 103.179.44.152:27016
✅ Zombie Plague -- 103.179.44.152:27015
✅ Zombie Escape -- 103.179.44.152:27017
✅ Klassik Kombat -- 103.179.44.152:27018
✅ Boss-Battle -- 103.179.44.152:27019
yokomo is offline
yokomo
Surprise Ascot!
Join Date: May 2010
Location: Malaysia
Old 10-04-2014 , 15:04   Re: [Solved] CS16: A new method for Unlimited@Infinity Clip.
Reply With Quote #2

Problem solved, it was HL1 engine issue, it need task to set bpammo.

Code


This method only suitable to use on server that has no weapon drop feature. Because when you drop your weapon and someone pickup it he will get the infinity clip in weaponbox too. But that ammo will be reset if he reload the weapon.
__________________
Team-MMG CS1.6 Servers:
✅ MultiMod -- 103.179.44.152:27016
✅ Zombie Plague -- 103.179.44.152:27015
✅ Zombie Escape -- 103.179.44.152:27017
✅ Klassik Kombat -- 103.179.44.152:27018
✅ Boss-Battle -- 103.179.44.152:27019
yokomo is offline
Reply



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