Raised This Month: $ Target: $400
 0% 

unlimited grenades cause crash


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
ztz472947849
Junior Member
Join Date: Jul 2010
Location: Ml China
Old 07-30-2013 , 14:50   Re: unlimited grenades cause crash
Reply With Quote #7

sry my bad.actually the function "grenade_throw" is called.
PHP Code:
public grenade_throw(identityiId

    if( 
iId == CSW_HEGRENADE && is_user_alive(id) && get_pcvar_num(g_pCvarUnlimitedHeGrenade) ) 
    { 
        
        
client_print(0,print_center,"GET CALLED");
        
cs_set_user_bpammo(idCSW_HEGRENADE2); 
    } 

i modify ur code like this.when testing,"GET CALLED" displays ,bt cs_set_user_bpammo does not work.


i use latest edition of amx (on Win7 ultimate) downloaded days ago.the problem reminds me of that on the same edition of amx server(set up on Win XP professional),the plugin "gungame" performs not good as well.after setting unlimit ammo to players,server crashes or players didnt actually get infinite ammo.maybe for the same reason that "cs_set_user_bpammo doesnt work"

bt how to solve it?

THX A LOT

Last edited by ztz472947849; 07-30-2013 at 14:52.
ztz472947849 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 15:45.


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