I need help with something I’m trying to code for darkrp, basically it allows the Mayor to fire cps if they don’t do their job probably, the other is a thing to stop cps from self promoting themselves to the Chief, so basically the Mayor has to choose the CP.
Now I’ve tried starting the fire command, but I don’t think I have it right.
[Lua] local function FirePlayer(ply, args)
if args == “” then return “” end
if ply:Team() ~= TEAM_MAYOR then Notify(ply, 1, 4, “You are not the Mayor”) return “” end [/lua]
The problem Im having here is the name, like you would type it out as /fire “name” but I don’t know how to get the name part, that’s what confusing me.
The self promotion bit I have no clue on how to do.
Any help would be appreciated.