Advertisement
Guest User

Untitled

a guest
Jan 15th, 2014
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. MapVote = {}
  2. MapVote.Config = {}
  3.  
  4. -- CONFIG (sort of)
  5. MapVote.Config = {
  6. MapLimit = 24,
  7. TimeLimit = 28,
  8. AllowCurrentMap = true,
  9. }
  10. -- CONFIG
  11.  
  12. function MapVote.HasExtraVotePower(ply)
  13. -- Example that gives admins more voting power
  14. if ply:IsAdmin() then
  15. return true
  16. end
  17.  
  18. return false
  19. end
  20.  
  21.  
  22. MapVote.CurrentMaps = {}
  23. MapVote.Votes = {}
  24.  
  25. MapVote.Allow = false
  26.  
  27. MapVote.UPDATE_VOTE = 1
  28. MapVote.UPDATE_WIN = 3
  29.  
  30. if SERVER then
  31. AddCSLuaFile()
  32. AddCSLuaFile("mapvote/cl_mapvote.lua")
  33.  
  34. include("mapvote/sv_mapvote.lua")
  35. else
  36. include("mapvote/cl_mapvote.lua")
  37. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement