Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local gang_module = {}
- --- This function will return weather one user can perform an action the other from the gang.
- -- @param action The action as a string to be performed
- -- @param kickerSteamID The steamID of the person attempting to kick
- -- @param kickeeSteamID The steamID of the victim
- -- @return A boolean whether the user can kick the other
- function gang_module.canAction(action ,kickerSteamID, kickeeSteamID)
- return tonumber(gang_module.doSQL("SELECT `priority_{0}` FROM `gang_ranks` WHERE `id` = (SELECT `rank_id` FROM `gang_members` WHERE `steamid` ={1})",{action, kickerSteamID}))>=tonumber(gang_module.doSQL("SELECT `priority` FROM `gang_ranks` WHERE `id` = (SELECT `rank_id` FROM `gang_members` WHERE `steamid` ={0})",{kickeeSteamID}))
- end
- return gang_module
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement