Raised This Month: $ Target: $400
 0% 

How to add commands ? :D


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Sillium
AlliedModders Donor
Join Date: Sep 2008
Location: Germany
Old 10-25-2012 , 07:05   Re: How to add commands ? :D
Reply With Quote #1

I still don't get it why you're not only adding it to the admin menu... like this:
PHP Code:
// Custom admin menu commands.
// For more information:
//
// http://wiki.alliedmods.net/Custom_Admin_Menu_%28SourceMod%29
//
// Note: This file must be in Valve KeyValues format (no multiline comments)
//

"Commands"
{
   
"MixCommands"
   
{
      
"Restart"
      
{
         
"cmd"    "sm_rr"
         
execute  "server"
      
}
      
"Live"
      
{
         
"cmd"    "war_live"
         
execute  "server"
      
}
      
"War Reset"
      
{
         
"cmd"    "war_reset"
         
execute  "server"
      
}
      
"Spectate all"
      
{
         
"cmd"    "sm_spec @all"
         
execute  "server"
      
}
   }

__________________
brb, dishes have developed their own language and are talking to the garbage about overthrowing me... i must correct this

www.unterwasserpyromanen.de
Sillium 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 11:42.


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