Ulysses

Ulysses Stuff => General Chat & Help and Support => Topic started by: xLiaMz on October 10, 2013, 02:13:06 PM

Title: Editing Admin/Other Groups [DarkRP]
Post by: xLiaMz 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.
Title: Re: Editing Admin/Other Groups [DarkRP]
Post by: Megiddo on October 13, 2013, 06:29:21 AM
I believe there are releases to do this. Have you checked the release forum?
Title: Re: Editing Admin/Other Groups [DarkRP]
Post by: xLiaMz 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.
Title: Re: Editing Admin/Other Groups [DarkRP]
Post by: Racer 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 :)