View Single Post
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