02-16-2015, 09:39 AM
(This post was last modified: 02-16-2015, 09:39 AM by Infinity-Codeur.)
Hello,
My first plugin advance but i have probleme which permission this my code of Info.lua :
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 ?
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 ?

