Raised This Month: $ Target: $400
 0% 

wtf, cs_set_user_ammo not working?!


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
ThantiK
Senior Member
Join Date: Mar 2004
Location: Orlando, FL
Old 04-22-2004 , 00:49   wtf, cs_set_user_ammo not working?!
Reply With Quote #1

This is a complete rip/modification of asskikrs unlimited ammo plugin...

I'm having trouble with the cs_set_user_ammo...as in, its NOT WORKING.

Code:
public changeWeapon(id) 
{ 
    if ( !AmmoMaster[id] ) return PLUGIN_CONTINUE 
    new  clip, ammo 

    if ( wpn_id==CSW_C4 || wpn_id==CSW_HEGRENADE || wpn_id == CSW_SMOKEGRENADE || wpn_id == CSW_FLASHBANG || wpn_id == CSW_KNIFE ) return PLUGIN_CONTINUE 
    
    // Never Run Out of Ammo! 
    server_print("STATUS ID=%d CLIP=%d, AMMO=%d WPN=%d", id, clip, ammo, wpn_id) 
    if ( clip < 5 ) 
    { 
    server_print("UNammo Function Running!") 
    cs_set_weapon_ammo(id, 10);
    }
    return PLUGIN_CONTINUE 
}
The function runs, but never sets the ammo!...wtf!
__________________
AMXX -- You want control? You got it.
tkwired.com cs 1.6 -- tkwired.com:27016
ThantiK is offline
Send a message via AIM to ThantiK Send a message via MSN to ThantiK
 



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 15:16.


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