Raised This Month: $ Target: $400
 0% 

get_user_weapon or native?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
baneado
Veteran Member
Join Date: Dec 2012
Location: amxmodx-es.com
Old 11-06-2013 , 08:50   get_user_weapon or native?
Reply With Quote #1

I have a simple doubt, in a plugin there is a variable that contains the current weapon having a player.
This variable exists for prevent calling get_user_weapon many times, because would be called in events like takedamage, traceattack...

The variable works perfectly in the plugin, buy I have some subplugins that are using get_user_weapon in client_PreThink or other forwards, and the question is

What is more efficient method: calling get_user_weapon or make native with the main plugin to use it instead of get_user_weapon ?

I say get_user_weapon like an example, but the same with is_user_alive, is_user_connected...

Thanks
baneado 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 23:13.


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