Raised This Month: $ Target: $400
 0% 

How to make a check if player is NOT reloading


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
kapitana
Member
Join Date: Apr 2014
Old 09-09-2016 , 08:18   How to make a check if player is NOT reloading
Reply With Quote #1

Hello AlliedModders,
I was searching around and I found a very useful code that I want to use -> https://forums.alliedmods.net/showthread.php?t=123645. The threat shows how to check if player is reloading which is what I need ... but I also need a check when the player is NOT reloading. I'm not very familiar with these stuff so I need help with it. Thnx in advance.
kapitana is offline
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 09-09-2016 , 08:52   Re: How to make a check if player is NOT reloading
Reply With Quote #2

What is it exactly that you wanna do?
__________________
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 09-09-2016 , 08:54   Re: How to make a check if player is NOT reloading
Reply With Quote #3

https://forums.alliedmods.net/showpo...16&postcount=4
Simply set a bool to true when player start reloading and to false when he stops. Above code is able to properly detect both, but note that I did not add shotgun support yet.
__________________
HamletEagle is offline
kapitana
Member
Join Date: Apr 2014
Old 09-09-2016 , 09:03   Re: How to make a check if player is NOT reloading
Reply With Quote #4

Thnx for the fast reply and the code HamletEagle. That was just what I needed ...
kapitana 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 20:42.


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