Skip to content

Commit

Permalink
Fixed FPtje#1086
Browse files Browse the repository at this point in the history
  • Loading branch information
fruitwasp committed Sep 27, 2013
1 parent 4db55fb commit 6fafd4f
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion gamemode/server/admincc.lua
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,14 @@ end
concommand.Add("rp_unarrest", ccUnarrest)

local function ccSetMoney(ply, cmd, args)
if not tonumber(args[2]) then ply:PrintMessage(HUD_PRINTCONSOLE, "Invalid arguments") return end
if not tonumber(args[2]) then
if ply:EntIndex() == 0 then
print("Invalid arguments")
else
ply:PrintMessage(HUD_PRINTCONSOLE, "Invalid arguments")
end
return
end
if ply:EntIndex() ~= 0 and not ply:IsSuperAdmin() then
ply:PrintMessage(2, DarkRP.getPhrase("need_sadmin", "rp_setmoney"))
return
Expand Down

0 comments on commit 6fafd4f

Please sign in to comment.