AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Off-Topic (https://forums.alliedmods.net/forumdisplay.php?f=15)
-   -   Does too much plugin-ini lag server ? (https://forums.alliedmods.net/showthread.php?t=113663)

Merc3y 12-29-2009 04:11

Does too much plugin-ini lag server ?
 
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 ?

Arkshine 12-29-2009 06:25

Re: Does too much plugin-ini lag server ?
 
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.

01101101 12-29-2009 07:30

Re: Does too much plugin-ini lag server ?
 
PHP Code:

public server_frame()
     
client_print(0"Hi, I'm overflower"


Merc3y 12-29-2009 09:26

Re: Does too much plugin-ini lag server ?
 
Quote:

Originally Posted by Arkshine (Post 1034998)
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 ?

DruGzOG 12-29-2009 10:28

Re: Does too much plugin-ini lag server ?
 
Quote:

Originally Posted by Merc3y (Post 1035149)
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.

Merc3y 12-29-2009 11:48

Re: Does too much plugin-ini lag server ?
 
Quote:

Originally Posted by DruGzOG (Post 1035184)
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 ?

Arkshine 12-29-2009 12:03

Re: Does too much plugin-ini lag server ?
 
Ask.

Merc3y 12-29-2009 12:31

Re: Does too much plugin-ini lag server ?
 
Quote:

Originally Posted by Arkshine (Post 1035295)
Ask.

Does set task lag the server ?

Because i have quite a number have set_task

Arkshine 12-29-2009 14:42

Re: Does too much plugin-ini lag server ?
 
Depending what you do with it.

Merc3y 12-31-2009 01:34

Re: Does too much plugin-ini lag server ?
 
Quote:

Originally Posted by Arkshine (Post 1035520)
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 ] )




All times are GMT -4. The time now is 14:50.

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