Raised This Month: $ Target: $400
 0% 

AddToFullPack exchange?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
BeNq!
Senior Member
Join Date: Mar 2009
Old 08-29-2015 , 09:12   AddToFullPack exchange?
Reply With Quote #1

Hello,

My code is:
Code:
/* Class generated by AMXX STUDIO */

#include <amxmodx>
#include <fakemeta>

public plugin_init() {
	register_plugin("Visible mine", "1.0", "benq");
	
	register_forward(FM_AddToFullPack, "FwdAddToFullPack", 1)
}

public FwdAddToFullPack(es_handle, e, ent, host, hostflags, player, pSet){
	if(!is_user_connected(host))
		return;

	if(!pev_valid(ent))
		return;
	
	new classname[5];
	pev(ent, pev_classname, classname, 4);
	if(equal(classname, "mine"))
	{
		set_es(es_handle, ES_RenderMode, kRenderTransAdd);
		set_es(es_handle, ES_RenderAmt, 255.0);
	}
}
and I tested the profiler. The result was shocking:
Code:
date: Sat Aug 29 13:11:25 2015 map: de_dust2
type |                             name |      calls | time / min / max
-------------------------------------------------------------------
   n |                  register_plugin |          1 | 0.000000 / 0.000000 / 0.000000
   n |                 register_forward |          1 | 0.000001 / 0.000001 / 0.000001
   n |                is_user_connected |   97695176 | 53.584341 / 0.000000 / 0.006235
   n |                        pev_valid |    3027522 | 1.853765 / 0.000000 / 0.000815
   n |                              pev |    2287037 | 1.426752 / 0.000000 / 0.000842
   n |                            equal |    2287037 | 1.262358 / 0.000000 / 0.000790
   n |                           set_es |      18190 | 0.011435 / 0.000000 / 0.000085
   n |                        read_data |        981 | 0.000544 / 0.000000 / 0.000007
   p |                 FwdAddToFullPack |   97685575 | 116.755105 / 0.000000 / 0.006407
   p |                      plugin_init |          1 | 0.000005 / 0.000005 / 0.000005
Is there any other function that the player could see the mines invisible?
Sorry, my english is weak...
BeNq! is offline
 


Thread Tools
Display Modes

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 22:17.


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