Advertisement
Guest User

sh_veto

a guest
Jan 14th, 2013
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.94 KB | None | 0 0
  1. /*-------------------------------------------------------------------------------------------------------------------------
  2.    
  3. -------------------------------------------------------------------------------------------------------------------------*/
  4. local PLUGIN = {}
  5. PLUGIN.Title = "Veto"
  6. PLUGIN.Description = ""
  7. PLUGIN.Author = "Frankess"
  8. PLUGIN.ChatCommand = "veto"
  9.  
  10. function PLUGIN:Call( ply )
  11.     if ( ply:EV_HasPrivilege( "Veto" ) ) then
  12.         if GetConVarNumber("ev_votemap_inprogress") == 1 then
  13.             RunConsoleCommand("EV_VetoVoteMap")
  14.         elseif GetConVarNumber("ev_votekick_inprogress") == 1 then
  15.             RunConsoleCommand("EV_VetoVoteKick")
  16.         else
  17.             evolve:Notify( ply, evolve.colors.red, "There is nothing to veto!")
  18.             return
  19.         end
  20.        
  21.         evolve:Notify( evolve.colors.blue, ply:Nick(), evolve.colors.red, " has vetoed!" )
  22.     else
  23.         evolve:Notify( ply, evolve.colors.red, evolve.constants.notallowed )
  24.     end
  25. end
  26.  
  27. evolve:RegisterPlugin( PLUGIN )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement