Raised This Month: $ Target: $400
 0% 

How to speed up my plugin?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
byetovice
Senior Member
Join Date: Nov 2009
Location: Turkey
Old 07-23-2011 , 10:59   How to speed up my plugin?
Reply With Quote #1

Hello. How can i write plugins better ?
My questions :

Which one i should use ?
Only is_user_alive...
Code:
if(is_user_alive( id ))
{
... is this enough?
}
Or alive and connect check ?
Code:
if(is_user_connected( id ) && is_user_alive( id ))
{
..
}
Includes :
If i include <cstrike> for just using "cs_set_user_money" code, does this slow down the server ? Should i make a stock for set_user_money ?

Last Question : Is there any tutorial to write better ?
__________________
Working on mods..
byetovice 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 00:49.


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