View Single Post
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 12-07-2010 , 07:36   Re: Wallbang Training
Reply With Quote #5

Because your plugin is supposed to be used with "normal" player and to get the head position you don't need to use a native. The less native you use the more efficient your plugin will be, more when you use forward called often.

EDIT : You have not probably seen my edit : "Don't create vars into a loop, and I would use static for all the arrays since it's a function called very often."
EDIT2 : is_user_alive(id) should be move in get_pcvar_num() check. One time is enough. And to avoid is_user_alive( target ), simply add "a" flag to get_players().
__________________

Last edited by Arkshine; 12-07-2010 at 07:42.
Arkshine is offline