Raised This Month: $51 Target: $400
 12% 

[NMRiH] Pause Game


Post New Thread Reply   
 
Thread Tools Display Modes
Author
sh0tx
Junior Member
Join Date: Nov 2019
Plugin ID:
6863
Plugin Version:
1.0
Plugin Category:
Server Management
Plugin Game:
No More Room in Hell
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Pause the server with a command
    Unapprover:
    Reason for Unapproving:
    per author request
    Old 12-21-2019 , 12:54   [NMRiH] Pause Game
    Reply With Quote #1

    About
    This is the first plugin I uploaded to AlliedModders so feedback is appreciated!

    This plugin is intended to pause the game via a command.
    Admins with the flag I (or ADMFLAG_CONFIG) are the only ones that can use the commands.
    When an admin runs the pause command, everyone freezes, nobody can move or adjust eye angles.
    Admins can also unpause the server so everyone can again move and aim.
    This plugin requires the CVar "sv_pausable" to be set to 1 (sv_pausable "1"). Otherwise this plugin will not function and gives out a message saying "Pausing the game is currently disabled."

    The plugin is actually quite simple so I don't really see why I should write a bible about it.

    Commands/CVars
    CVars: sv_pausable 1 (required)
    Commands: sm_pause, sm_unpause (in chat; !pause, !unpause, /pause, /unpause)
    Attached Files
    File Type: sp Get Plugin or Get Source (sm_pause.sp - 200 views - 2.4 KB)
    File Type: smx sm_pause.smx (4.9 KB, 287 views)
    __________________

    Last edited by sh0tx; 12-22-2019 at 04:28. Reason: added more info
    sh0tx is offline
    phoenix0001
    Senior Member
    Join Date: Apr 2010
    Location: China
    Old 12-22-2019 , 04:21   Re: [NMRiH] Pause Game
    Reply With Quote #2

    !pause
    Pausing the game is currently disabled.
    How to pause the game???
    __________________
    I like this BBS sharing of spirit

    I come from China, my English is poor
    phoenix0001 is offline
    sh0tx
    Junior Member
    Join Date: Nov 2019
    Old 12-22-2019 , 04:25   Re: [NMRiH] Pause Game
    Reply With Quote #3

    Quote:
    Originally Posted by phoenix0001 View Post
    !pause
    Pausing the game is currently disabled.
    How to pause the game???
    You need to have CVar sv_pausable 1 in your server.cfg or listenserver.cfg if you are running the server from your game.
    You can also type it in the console if you're running it from your game.
    __________________
    sh0tx is offline
    phoenix0001
    Senior Member
    Join Date: Apr 2010
    Location: China
    Old 12-22-2019 , 06:50   Re: [NMRiH] Pause Game
    Reply With Quote #4

    Quote:
    Originally Posted by sh0tx View Post
    You need to have CVar sv_pausable 1 in your server.cfg or listenserver.cfg if you are running the server from your game.
    You can also type it in the console if you're running it from your game.
    ok
    __________________
    I like this BBS sharing of spirit

    I come from China, my English is poor
    phoenix0001 is offline
    Reply



    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT -4. The time now is 01:01.


    Powered by vBulletin®
    Copyright ©2000 - 2024, vBulletin Solutions, Inc.
    Theme made by Freecode