Raised This Month: $51 Target: $400
 12% 

Solved [CSGO] How to prevent reloading if you have too much ammo


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
impossible_cc
Senior Member
Join Date: Sep 2018
Location: Ukraine
Old 01-13-2019 , 18:14   Re: [CSGO] How to prevent reloading if you have too much ammo
Reply With Quote #11

Quote:
Originally Posted by Bacardi View Post
In csgo, you not get weapon name from entity classname
I don't think that you are right because it prints to me 'Stop reloading...weapon - weapon_usp_silencer'

PHP Code:

if(WeaponMaxAmmo[WeaponArrayIndex] < CurrentAmmo

 
PrintToChat(client"Stop reloading...weapon - %s"classname); 
 return 
Plugin_Handled

I used to get weapon names through the classname always, and it worked fine, I'm sure.
impossible_cc 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 11:44.


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