Skip to content

Commit

Permalink
Merge pull request FPtje#1088 from fruitwasp/master
Browse files Browse the repository at this point in the history
  • Loading branch information
FPtje committed Sep 28, 2013
2 parents 4db55fb + 6fafd4f commit bbc860d
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 bbc860d

Please sign in to comment.