1. I know this is newbie i've asked others and they dont see the issue.
    Code:
    function PLUGIN:Init()
      print("JohnsTest Loaded")
       command.AddChatCommand( "john", self.Plugin, "cmdJohn" )
       end
      
    function PLUGIN:cmdJohn(player, command, arg)
      if UserHasPermission(player, member) then
      rust.SendChatMessage(player, "<color=orange>★</color>", "True")
      else
      rust.SendChatMessage(player, "<color=orange>★</color>", "False")
      end
    end
    When I do /john ingame as a test for the if statements i dont the get message true or false. It bases the answer on checking my permission for "member". What am I doing wrong?
     
    Last edited by a moderator: Aug 2, 2015
  2. try
    Code:
    local steamId = rust.UserIDFromPlayer(player)
    if permission.UserHasPermission(steamId, "member") then
    --Do stuff
    end