Raised This Month: $32 Target: $400
 8% 

say /unlag command


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
giumbalau
Member
Join Date: Jan 2021
Old 01-17-2021 , 03:44   say /unlag command
Reply With Quote #1

Any idea about how to make this command work on say chat.... for the admins
I tried to make it by my self but it doesn't set the command to 1....it set to 0
PHP Code:
register_concmd("amx_unlag","unlag",ADMIN_KICK,"[value]"
PHP Code:
public unlag(id,level,cid
{      
    if(!
cmd_access(idlevelcid1))    
    {        
        return 
PLUGIN_HANDLED    
    
}    
    
    new 
arg1[32], name[32]    
    
read_argv(1arg131)        
         
get_user_name(idname31)    
    
set_cvar_num("sv_unlag"str_to_num(arg1))        
         
ColorChat(idNORMAL,"^x04[Admin]^x03 %s^x04 :^x04 set cvar^x03 sv_unlag^x04 to^x03 %d"namestr_to_num(arg1))         
    return 
PLUGIN_HANDLED 

giumbalau is offline
ho83
Senior Member
Join Date: Aug 2020
Location: iran
Old 01-17-2021 , 05:04   Re: say /unlag command
Reply With Quote #2

PHP Code:
register_concmd("amx_unlag","unlag",ADMIN_KICK,"[value]"
To >
PHP Code:
register_clcmd("say /unlag","unlag",ADMIN_KICK,"[value]"

Last edited by ho83; 01-17-2021 at 05:05.
ho83 is offline
giumbalau
Member
Join Date: Jan 2021
Old 01-17-2021 , 05:22   Re: say /unlag command
Reply With Quote #3

Quote:
Originally Posted by ho83 View Post
PHP Code:
register_concmd("amx_unlag","unlag",ADMIN_KICK,"[value]"
To >
PHP Code:
register_clcmd("say /unlag","unlag",ADMIN_KICK,"[value]"
The same thing i can t set a value it set to 0
..
giumbalau is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 01-17-2021 , 07:42   Re: say /unlag command
Reply With Quote #4

What's the point of this? Who needs to change sv_unlag that often? Simply set it to 1 in server.cfg and don't touch it.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
giumbalau
Member
Join Date: Jan 2021
Old 01-17-2021 , 09:11   Re: say /unlag command
Reply With Quote #5

Quote:
Originally Posted by OciXCrom View Post
What's the point of this? Who needs to change sv_unlag that often? Simply set it to 1 in server.cfg and don't touch it.
... it doesn't metter i just need it please .....

Last edited by giumbalau; 01-17-2021 at 09:12.
giumbalau is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 01-17-2021 , 10:08   Re: say /unlag command
Reply With Quote #6

You need it because you think that constantly writing "sv_unlag 1" will do something. Guess what, it doesn't. It doesn't magically remove lag either despite its name.
__________________

Last edited by OciXCrom; 01-17-2021 at 10:08.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
giumbalau
Member
Join Date: Jan 2021
Old 01-17-2021 , 10:22   Re: say /unlag command
Reply With Quote #7

Quote:
Originally Posted by OciXCrom View Post
You need it because you think that constantly writing "sv_unlag 1" will do something. Guess what, it doesn't. It doesn't magically remove lag either despite its name.
I really don't carre what you belive if you don't want to help please stop be so toxic , thanks.
Solved anyway..

Last edited by giumbalau; 01-17-2021 at 10:33.
giumbalau is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 01-17-2021 , 12:12   Re: say /unlag command
Reply With Quote #8

It's not what I believe, it's how the game works.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
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 21:32.


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