Version 1.0b
Description
Allows users to sleep. They glow in a specified color, the screen changes to black, and they gain hp for a specified hp each second for a specified maximum hp.
CVARS
slm_allow 0|1 [Default: 1]
Allow (1) or disallow (0) players to sleep
slm_glowr 0 - 255 [Default: 0]
How much player glows in red.
slm_glowg 0 - 255 [Default: 255]
How much player glows in green.
slm_glowb 0 - 255 [Default: 0]
How much player glows in blue.
slm_regainhp Any integers [Default: 1]
How much player regains the hp in each second.
slm_maxregainhp Any integers [Default: 150]
The maximum hp after regain of the player.
slm_transperancy 0 - 255 [Default: 25]
Change the transperancy of the sleeping players. 0 = Fully transperant, 255 = No transperant
Clients commands
say /sleep
Sleep and regain hp
say /zzz
Sleep and regain hp (= say /sleep)
say /wake
Wake up
say /wakeup
Wake up (= say /wake)
say /sleephelp
SleepMod Related Help
Bugs
If you set slm_regainhp to 3 or more that not divisible for 150, your hp will regain more than slm_maxregainhp, i.e. 153.
Todo list
1.1
1. Remove slm_regainhp
2. Tiredness System
3. You can specify or disable the sound
Required Modules
Fun
Changelog
(+) Bug fix, (#) Optimization, (-) Removed, (^) Added, (*) Others
1.0b
^ Change players transperancy by using slm_transperancy
^ Client command say /zzz
^ Client command say /sleephelp
^ When you type a message that include the word "sleep", a message will come up, that tells you can find for help
1.0
* Release
