Raised This Month: $ Target: $400
 0% 

get_user_weapon or native?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
^SmileY
Veteran Member
Join Date: Jan 2010
Location: Brazil [<o>]
Old 11-07-2013 , 06:00   Re: get_user_weapon or native?
Reply With Quote #1

Quote:
Originally Posted by hornet View Post
No not really. CurWeapon is called every time the clip ammo is updated, which means every time you fire a shot or when you change weapons.

@Baneado its hard to say unless you show your code or explain what your trying to do otherwise its really going to be XY problem. However, I can't imagine why you would need to use get_user_weapon() inside client_PreThink.
Using a flag to detect if is active in CurWeapon? LOL
__________________
Projects:

- See my Git Hub: https://github.com/SmileYzn
PHP Code:
set_pcvar_num(pCvar, !get_pcvar_num(pCvar)); 
^SmileY is offline
Send a message via MSN to ^SmileY Send a message via Skype™ to ^SmileY
hornet
AMX Mod X Plugin Approver
Join Date: Mar 2010
Location: Australia
Old 11-07-2013 , 17:19   Re: get_user_weapon or native?
Reply With Quote #2

Quote:
Originally Posted by ^SmileY View Post
Using a flag to detect if is active in CurWeapon? LOL
You seem to find this quite amusing but sadly your still wrong. There is no reason why you would use CurWeapon over Ham_Item_Deploy, whether your using a flag or not ( under the given circumstances ).
hornet 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 23:13.


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