Author |
Message |
Bak ?ls -s 0 in
Age:25 Gender: Joined: Jun 11 2004 Posts: 1826 Location: USA Offline
|
Posted: Wed Jul 20, 2005 4:54 pm Post subject: <c> togglespec |
|
|
|
|
This module adds a single command "togglespec", which will toggle a player in and out of spectator mode and sends a message to the player issuing the command, exactly like subgame would. Used in conjunction with the cmdalias module I posted earlier, one can obtain the desired functionality for *spec. Remember to give the proper group access to use privcmd_togglespec. The spec locking is different from ?lock, so if you ?lock someone then *togglespec them they may get locked again by the togglespec module. _________________ SubSpace Discretion: A Third Generation SubSpace Client
module source
togglespec.c - 2.04 KB
File downloaded or viewed 62 time(s)
|
|
Back to top |
|
|
Smong Server Help Squatter
Joined: 1043048991 Posts: 0x91E Offline
|
Posted: Thu Jul 21, 2005 3:04 am Post subject: |
|
|
|
|
?lock/unlock and ?togglespec both use game->Lock()/Unlock() so how is this different? ?lock -s puts them in spec. Do you mean using one command for both speccing and unspeccing?
|
|
Back to top |
|
|
Bak ?ls -s 0 in
Age:25 Gender: Joined: Jun 11 2004 Posts: 1826 Location: USA Offline
|
Posted: Thu Jul 21, 2005 11:21 am Post subject: |
|
|
|
|
If you lock a player using ?lock -s, he will get locked in spec. The expected behavior of togglespec at this point would be to unlock the player. But since this module stores it's own data to determain if the player is locked or not, the player may end up remaining locked the first time *togglespec is used.
|
|
Back to top |
|
|
|