Raised This Month: $51 Target: $400
 12% 

Does too much plugin-ini lag server ?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Merc3y
Member
Join Date: Dec 2009
Old 12-29-2009 , 04:11   Does too much plugin-ini lag server ?
Reply With Quote #1

Does too much plugin-ini lag server ?

Recently it lag when too much plugin was actived, i try to remove all the plugin and my server won't lag much. So does this mean too plugin lag server ?
__________________
How I Wish That I Can Host Without Any Problem.
Merc3y is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 12-29-2009 , 06:25   Re: Does too much plugin-ini lag server ?
Reply With Quote #2

No. You can have one plugin which lag like hell your server. It's depending how the plugin is coded. So, start to disable plugin by plugin to see the one which gives you lag.
__________________
Arkshine is offline
01101101
BANNED
Join Date: Nov 2009
Location: 9`su 09`n0n7e`r0f76a
Old 12-29-2009 , 07:30   Re: Does too much plugin-ini lag server ?
Reply With Quote #3

PHP Code:
public server_frame()
     
client_print(0"Hi, I'm overflower"
01101101 is offline
Merc3y
Member
Join Date: Dec 2009
Old 12-29-2009 , 09:26   Re: Does too much plugin-ini lag server ?
Reply With Quote #4

Quote:
Originally Posted by Arkshine View Post
No. You can have one plugin which lag like hell your server. It's depending how the plugin is coded. So, start to disable plugin by plugin to see the one which gives you lag.
About depending how the plugin is coded how do i see the plugin is properly coded ?

I tryed to combine the plugin together but still lagging.

Does too much include lag ?

If the sma is large will it lag ?
__________________
How I Wish That I Can Host Without Any Problem.

Last edited by Merc3y; 12-29-2009 at 10:03.
Merc3y is offline
DruGzOG
Veteran Member
Join Date: Nov 2007
Location: Unknown
Old 12-29-2009 , 10:28   Re: Does too much plugin-ini lag server ?
Reply With Quote #5

Quote:
Originally Posted by Merc3y View Post
About depending how the plugin is coded how do i see the plugin is properly coded ?

I tryed to combine the plugin together but still lagging.

Does too much include lag ?

If the sma is large will it lag ?
Dont combine it unless you know what you are doing.

Not really, like Arkshine stated, its based on the code.

No, its based on the code.
__________________
DruGzOG is offline
Send a message via AIM to DruGzOG
Merc3y
Member
Join Date: Dec 2009
Old 12-29-2009 , 11:48   Re: Does too much plugin-ini lag server ?
Reply With Quote #6

Quote:
Originally Posted by DruGzOG View Post
Dont combine it unless you know what you are doing.

Not really, like Arkshine stated, its based on the code.

No, its based on the code.
So how do i check if it is a proper code ?
__________________
How I Wish That I Can Host Without Any Problem.
Merc3y is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 12-29-2009 , 12:03   Re: Does too much plugin-ini lag server ?
Reply With Quote #7

Ask.
__________________
Arkshine is offline
Merc3y
Member
Join Date: Dec 2009
Old 12-29-2009 , 12:31   Re: Does too much plugin-ini lag server ?
Reply With Quote #8

Quote:
Originally Posted by Arkshine View Post
Ask.
Does set task lag the server ?

Because i have quite a number have set_task
__________________
How I Wish That I Can Host Without Any Problem.
Merc3y is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 12-29-2009 , 14:42   Re: Does too much plugin-ini lag server ?
Reply With Quote #9

Depending what you do with it.
__________________
Arkshine is offline
Merc3y
Member
Join Date: Dec 2009
Old 12-31-2009 , 01:34   Re: Does too much plugin-ini lag server ?
Reply With Quote #10

Quote:
Originally Posted by Arkshine View Post
Depending what you do with it.
Something like this ?

PHP Code:
#include <amxmodx>
#include <zombieplague>
 
new g_zclass_asdzombiedurationbind
new cooldown_time33 ]
 
new 
Float:cooldown30.0
 
new const zclass_name[] = { "asd Zombie" }
new const 
zclass_info[] = { "asd" }
new const 
zclass_model[] = { "zombie_source" }
new const 
zclass_clawmodel[] = { "v_knife_zombie.mdl" }
const 
zclass_health 1700
const zclass_speed 250
const Float:zclass_gravity 1.0
const Float:zclass_knockback 0.0
 
public plugin_init( )
{
         
register_clcmd"+asd""asd_start"ADMIN_ALL"bind [key] +asd" )
 
         
bind register_cvar"asd_bindkey""1" )
         
duration register_cvar"asd_duration""10.0" )
}
 
public 
plugin_precache( )
{
         
g_zclass_asdzombie zp_register_zombie_classzclass_namezclass_infozclass_modelzclass_clawmodelzclass_healthzclass_speedzclass_gravityzclass_knockback )
}
 
public 
zp_user_infected_postidinfector )
{
         if ( 
zp_get_user_zombie_classid ) == g_zclass_asdzombie )
         { 
                
cooldown_timeid ] = floatroundcooldown )
                
remove_taskid )
 
                new 
mode get_pcvar_numbind )
 
                if ( 
mode == )
                {
                        
client_cmdid"bind v ^"+asd^"" )
                        
// chat_print( id, "Press ^'^'V^'^' to use asd." )
                
}
 
                if ( 
mode == 
                {
                        
// chat_print( id, "Type bind <key> +asd to use asd." )
                
}
        }
}
 
public 
asd_startid 
{
                if ( !
is_user_aliveid ) )
                {
                      
chat_printid"You can't asd when you are dead." )
                      return
                }
 
                else
                {
                        
asdid )
                        
cooldown_timeid ] = floatroundcooldown )
                        
set_task1.0"ShowHUD"id__"a"cooldown_timeid ] )
                }
}
 
public 
asdid )
{
         
set_taskget_pcvar_floatduration ), "asd_duration"id )
}
 
public 
asd_durationid )
{
         
// chat_print( id, "asd has worn off." )
}
 
public 
ShowHUDid )
{
         
cooldown_timeid ] = cooldown_timeid ] - 1;
         
set_hudmessagerandom_num0,255 ), random_num0,255 ), random_num0,255 ), 0.750.9201.01.10.00.0, -)
         
show_hudmessageid"asd cooldown: %d"cooldown_timeid ] )

__________________
How I Wish That I Can Host Without Any Problem.
Merc3y is offline
Reply



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 14:13.


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