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

Custom admin menu problem


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Loyal_ty
Junior Member
Join Date: Oct 2020
Location: techno world
Old 10-30-2020 , 04:19   Custom admin menu problem
Reply With Quote #1

Hi everybody.

i am trying to make a custom admin menu:

Code:
    
"Commands"
{
               "Example"
		{
			"cmd"		"#1 #2"
			"admin"		"sm_kick"
			"1"
			{
				"type"	"list"
				"title"		"Example"
				"1"		"sm_sample1"
				"1*"		"sm_kick"	
				"2"		"sm_sample2"
				"2*"		"sm_ban"	

			}
			"2"
			{
					"type"		"player"
					"title"		"Select a Player :"
			}
		}
	}
}
i wanna have nothing for sample1 means use it like sm_sample1 and wanna include players for sample2 like sm_sample2 #1
i tried more than 10 method to make this but faild that example was the last method i wrote and deleted extra text from it.

i wish it was possible to use if/else commands e.g:
Code:
"2"
{
if (#1==sm_sample2)
"type"   "player"
else
""
}
something like this but it is not possible
also this one didnt work
Code:
"1"
{
   "type"   "list"
   "1"       "sm_sample2 #1"
   "1" {"type"   "player"}
}

also this one

Code:
"example"
{
   "sample1"
    {
          "cmd"         "sm_sample1"
    }
   "sample2"
   {
         "cmd"         "sm_sample2 #1"
         "1"
          {"type"   "player"}
   }
}
and somemore


If you know how can i add player list to one commands list and do not include it to other commands post it here thanks

.
Loyal_ty 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 08:08.


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