Raised This Month: $ Target: $400
 0% 

add argument


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
giumbalau
Member
Join Date: Jan 2021
Old 05-16-2021 , 00:04   add argument
Reply With Quote #1

Does anyone know to add 1 more argument "value" when i set the cvar the value is automatically set to 0

PHP Code:
register_concmd("amx_unlag""unlag"ADMIN_KICK"[value]")

public 
unlag(id,level,cid
{      
       if(!
cmd_access(idlevelcid1))    
       {        
       return 
PLUGIN_HANDLED    
       
}    
          
       new 
arg1[32], name[32]    
       
read_argv(1arg131)        
       
get_user_name(idname31)  
       
chat_color(0"^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
 



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 19:50.


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