Welcome to PlagueFest.com! Log in or Sign up to interact with the Plague Fest community.
  1. Welcome Guest! to interact with the community and gain access to all the site's features.

admin menu custom - help please

Discussion in Help Desk started by LadyMoOnLiGht, Sep 7, 2011

  1. Oct 10, 2010
    Posts
    want this in the admin menu custom file,
    but only the give weapon works, why not spec?

    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"
    {
    "PlayerCommands"
    {
    "Give Player Weapon"
    {
    "cmd"			"sm_weapon #1 #2"
    "1"
    {
    "type" 		"player"
    "title"		"Player to Give to"
    }
    "2"
    {
    "type" 		"list"
    "title"		"Weapon:"
    "1"		"weapon_ak47"
    "1."		"Ak-47"
    "2"		"weapon_m4a1"
    "2."		"M4A1"
    "3"		"weapon_deagle"
    "3."		"Desert Eagle"
    "4"		"weapon_mp5"
    "4."		"MP5"
    }
    "Spec Player"
    {
    "cmd"			"sm_spec #1"
    "execute"		"player"
    "1"
    {
    "type" 		"groupplayer"
    "method"	"name"
    "title"		"Player to Spec"
    
    }
    }
    }
    }