Raised This Month: $ Target: $400
 0% 

message appears when the player is killed


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 04-17-2014 , 06:57   Re: message appears when the player is killed
Reply With Quote #10

Ok,let's test:

DeathMsg:
Code:
date: Thu Apr 17 03:51:47 2014 map: fy_snow
type |                             name |      calls | time / min / max
-------------------------------------------------------------------
   n |                   register_event |          1 | 0.000003 / 0.000003 / 0.000003
   n |                        read_data |          3 | 0.000005 / 0.000002 / 0.000002
   n |                     client_print |          2 | 0.000006 / 0.000002 / 0.000004
   p |               death_msg_function |          1 | 0.000011 / 0.000011 / 0.000011
   p |                      plugin_init |          1 | 0.000003 / 0.000003 / 0.000003
0 natives, 0 public callbacks, 2 function calls were not executed.
Ham:

Code:
date: Thu Apr 17 03:53:58 2014 map: fy_snow
type |                             name |      calls | time / min / max
-------------------------------------------------------------------
   n |                  register_plugin |          1 | 0.000002 / 0.000002 / 0.000002
   n |                      RegisterHam |          1 | 0.000041 / 0.000041 / 0.000041
   n |                    get_user_name |          2 | 0.000004 / 0.000002 / 0.000002
   n |                     client_print |          1 | 0.000004 / 0.000004 / 0.000004
   p |              Fwd_Ham_Killed_Post |          1 | 0.000008 / 0.000008 / 0.000008
   p |                      plugin_init |          1 | 0.000005 / 0.000005 / 0.000005
6 natives, 1 public callbacks, 3 function calls were not executed.
So:

register_event | 1 | 0.000003 / 0.000003 / 0.000003
death_msg_function | 1 | 0.000011 / 0.000011 / 0.000011

RegisterHam | 1 | 0.000041 / 0.000041 / 0.000041
Fwd_Ham_Killed_Post | 1 | 0.000008 / 0.000008 / 0.000008

Both are called just 1 time. Ham Killed is faster( 0.000008 )..

So, Ham Killed is better than DeathMsg( in terms of duration of execution ).
HamletEagle 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 17:53.


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