Raised This Month: $ Target: $400
 0% 

help me to find a better optimization for plugin


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 05-08-2011 , 07:41   Re: help me to find a better optimization for plugin
Reply With Quote #2

Code:
new g_iMaxPlayers #define IsPlayer(%0)  (1<=%0<=g_iMaxPlayers) public plugin_init() {  g_iMaxPlayers = get_maxplayers() } public item_touch(iEnt, id) {  if( IsPlayer(id) && is_user_alive(id) )  {  } }

I don't think that info_target are touchable, but may be you alter their size.
Also if you alter their classname, then you could consider using register_touch(new_classname, "player", "callback")
__________________
- tired and retired -

- my plugins -
ConnorMcLeod 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 04:18.


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