Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local function ccRemoveCheck(ply, cmd, args)
- if ply:EntIndex() ~= 0 and not ply:HasPriv("rp_commands")then
- ply:PrintMessage(2, string.format(LANGUAGE.need_admin, "rp_removechecks"))
- return
- end
- local target = FindPlayer(args[1])
- if target then
- for k, v in pairs(ents.FindByClass("darkrp_cheque")) do
- if v.SID == target.SID then v:Remove() end
- end
- else
- -- Remove ALL letters
- for k, v in pairs(ents.FindByClass("darkrp_cheque")) do
- v:Remove()
- end
- end
- if ply:EntIndex() == 0 then
- DB.Log("Console force-removed all checks!" )
- else
- DB.Log(ply:SteamName().." ("..ply:SteamID()..") force-removed all letters" )
- end
- end
- concommand.Add("rp_removechecks", ccRemoveCheck)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement