Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function ulx.bpromote( calling_ply, target_plys )
- for i = 1, #calling_ply do
- local c = calling_ply[ i ]
- local callingrank = c:GetRank()
- end
- for i = 1, #target_plys do
- local t = target_plys[ i ]
- local targetrank = t:GetRank()
- end
- if t:GetRank() > c:GetRank() or t:Team() != c:Team() then // Line 17
- return
- end
- // Default code shit under here.
- if targetrank == nil then
- v:SetRank( "0" )
- end
- local hackyrank = t:GetRank() or 1
- t:SetRank(hackyrank + 1)
- GetCorrectRankUp( t, t:GetRank(), false )
- ulx.fancyLogAdmin( calling_ply, "#A promoted #T", affected_plys )
- end
- local bpromote = ulx.command( CATEGORY_NAME, "ulx bpromote", ulx.bpromote, "!bpromote" )
- bpromote:addParam{ type=ULib.cmds.PlayersArg }
- bpromote:defaultAccess( ULib.ACCESS_ADMIN )
- bpromote:help( "Promotes target(s)." )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement