Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- MapVote = {}
- MapVote.Config = {}
- -- CONFIG (sort of)
- MapVote.Config = {
- MapLimit = 24,
- TimeLimit = 28,
- AllowCurrentMap = true,
- }
- -- CONFIG
- function MapVote.HasExtraVotePower(ply)
- -- Example that gives admins more voting power
- if ply:IsAdmin() then
- return true
- end
- return false
- end
- MapVote.CurrentMaps = {}
- MapVote.Votes = {}
- MapVote.Allow = false
- MapVote.UPDATE_VOTE = 1
- MapVote.UPDATE_WIN = 3
- if SERVER then
- AddCSLuaFile()
- AddCSLuaFile("mapvote/cl_mapvote.lua")
- include("mapvote/sv_mapvote.lua")
- else
- include("mapvote/cl_mapvote.lua")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement