Permission probleme
#1
Hello,

My first plugin advance but i have probleme which permission this my code of Info.lua :

-- Info.lua

-- Implements the g_PluginInfo standard plugin description

g_PluginInfo =
{
	Name = "Position",
	Date = "2015-02-15",
	Description = "Plugin who tp to your position setup",
	
	Commands = {
	["/setpos"] =
		{
			Permissions = "Position.setpos",
			Handler = GetPos,
			HelpString = " Set your  position",
		},
		
	["/tp"] =
		{
			Permissions = "Position.setpos",
			Handler = GetTp,
			HelpString = " Tp to your position",
		},
	}, --Commands
	
	ConsoleCommands = {},
	
	Permissions =
	{
		["Position.setpos"] =
		{
			Description = "Allows the players to setup home.",
			RecommendedGroups = "admins",
		},
	}
}

This code work but everyone can use it, normally only rank admin can use this command but here all rank can use it how to fix that ?
Reply
Thanks given by:


Messages In This Thread
Permission probleme - by Infinity-Codeur - 02-16-2015, 09:39 AM
RE: Permission probleme - by xoft - 02-16-2015, 06:16 PM
RE: Permission probleme - by Infinity-Codeur - 02-16-2015, 06:51 PM
RE: Permission probleme - by bearbin - 02-16-2015, 07:15 PM
RE: Permission probleme - by NiLSPACE - 02-16-2015, 07:22 PM
RE: Permission probleme - by xoft - 02-16-2015, 07:29 PM
RE: Permission probleme - by Infinity-Codeur - 02-16-2015, 07:38 PM



Users browsing this thread: 4 Guest(s)