ULX

Author Topic: Editing Admin/Other Groups [DarkRP]  (Read 2062 times)

0 Members and 1 Guest are viewing this topic.

Offline xLiaMz

  • Newbie
  • *
  • Posts: 33
  • Karma: 0
Editing Admin/Other Groups [DarkRP]
« on: October 10, 2013, 02:13:06 PM »
Hello, I want to make my Admins see people leave/join the game and also allow them to see who killed who etc... I was wondering how this would be possible? (Bearing in mind I want this for DarkRP).

I also want all players to see peoples SteamIDs when they leave (If this is a wise idea - if not, then at least so the Mods+ can see them).

If anyone can give me basic information on how to do this I would be very happy.

Thank for Reading - xLiaMz.

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: Editing Admin/Other Groups [DarkRP]
« Reply #1 on: October 13, 2013, 06:29:21 AM »
I believe there are releases to do this. Have you checked the release forum?
Experiencing God's grace one day at a time.

Offline xLiaMz

  • Newbie
  • *
  • Posts: 33
  • Karma: 0
Re: Editing Admin/Other Groups [DarkRP]
« Reply #2 on: October 16, 2013, 12:35:03 AM »
I believe there are releases to do this. Have you checked the release forum?

If there's a plugin for it.. It hasn't being updated yet.

Offline Racer

  • Newbie
  • *
  • Posts: 11
  • Karma: 0
Re: Editing Admin/Other Groups [DarkRP]
« Reply #3 on: October 22, 2013, 09:14:55 AM »
Code: [Select]
-- Join Leave message
local function JoinMessage(steamid64,ip,svpasswd,enteredpw,name)
    for k,v in pairs(player.GetAll()) do
        if !v:IsAdmin() then continue end
        v:ChatPrint("Player: "..name.." ["..util.SteamIDFrom64(steamid64).."] has just joined the server!")
    end
end
hook.Add("CheckPassword", "Joining Message", JoinMessage)

local function LeaveMessage(ply)
    for k,v in pairs(player.GetAll()) do
        if !v:IsAdmin() then continue end
        v:ChatPrint("Player: "..ply:Nick().." ["..ply:SteamID().."] has just left the server!")
    end
end
hook.Add("PlayerDisconnected", "Leaving Message", LeaveMessage)

Throw this at the bottom of your gameserverroot/gamemodes/darkrp/gamemode/server/gamemode_functions.lua folder.

If you need more help, let me know. (If you have the newest version of the gamemode, someone will point you in the proper way of adding it for that.)

I seen you needed help so I figure I would stop in and answer your question. Back to trying to find my issue :)
« Last Edit: October 24, 2013, 11:20:13 PM by Racer »