Raised This Month: $ Target: $400
 0% 

unlimited grenades cause crash


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 07-30-2013 , 10:56   Re: unlimited grenades cause crash
Reply With Quote #1

I've tested code before i've posted it.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
ztz472947849
Junior Member
Join Date: Jul 2010
Location: Ml China
Old 07-30-2013 , 14:50   Re: unlimited grenades cause crash
Reply With Quote #2

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


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