User Tools

Site Tools


en:suckerserv:functions

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
en:suckerserv:functions [2011/07/01 12:38]
loveforever [Connection Stats]
en:suckerserv:functions [2014/05/31 00:27] (current)
Line 25: Line 25:
 | server.player_shots(cn) ​       | number ​      ​| ​                                                                                                                                                                | | server.player_shots(cn) ​       | number ​      ​| ​                                                                                                                                                                |
 | server.player_accuracy(cn) ​    | number ​      | Calculated from shots and misses. Note: game client uses different calculation method which maybe noticeable in game modes such as ffa or efficiency. ​          | | server.player_accuracy(cn) ​    | number ​      | Calculated from shots and misses. Note: game client uses different calculation method which maybe noticeable in game modes such as ffa or efficiency. ​          |
 +| server.player_accuracy2(cn) ​   | number ​      | Calculated from damage and damagewasted. Client calculation method, used in awards/​best_stats and stats modules. ​                                               |
 | server.player_timeplayed(cn) ​  | number ​      | Number of seconds played in the current game.                                                                                                                   | | server.player_timeplayed(cn) ​  | number ​      | Number of seconds played in the current game.                                                                                                                   |
 | server.player_win(cn) ​         | number ​      | Returns 1 or 0 for win or lose, respectively. In singles mode, a winner is a player with the most frags. In team mode, winners are players on the winning team. | | server.player_win(cn) ​         | number ​      | Returns 1 or 0 for win or lose, respectively. In singles mode, a winner is a player with the most frags. In team mode, winners are players on the winning team. |
 | server.player_rank(cn) ​        | number ​      | Player'​s rank calculated at the end of the game. For team games, rank is relative to team members. ​                                                             | | server.player_rank(cn) ​        | number ​      | Player'​s rank calculated at the end of the game. For team games, rank is relative to team members. ​                                                             |
-| server.player_armour(cn) ​      | number ​      | | +| server.player_armour(cn) ​      | number ​      ​| ​                                                                                                                                                                ​
-| server.player_armour_type(cn) ​      | number ​      | | +| server.player_armour_type(cn) ​ | number ​      ​| ​                                                                                                                                                                ​|
-| server.player_gun(cn) ​      | number ​      | | +
-| server.player_hits(cn) ​      | number ​      | | +
-| server.player_misses(cn) ​      | number ​      | |+
  
  
Line 63: Line 61:
 | server.player_msg(cn,​ text) | nil | Send a server message to a player.| | server.player_msg(cn,​ text) | nil | Send a server message to a player.|
 | server.player_slay(cn) | nil | Kill a player; their stats aren't affected.| | server.player_slay(cn) | nil | Kill a player; their stats aren't affected.|
-| server.player_suicide(cn) | nil || +| server.player_suicide(cn) | nil | Force a player to suicide, which will affect their game stats. |
-| server.player_priv_code(cn) | nil | Force a player to suicide, which will affect their game stats.|+
 | server.changeteam(cn,​ team) | boolean | Move a player to another team.| | server.changeteam(cn,​ team) | boolean | Move a player to another team.|
 | server.kick(cn,​[bantime],​[admin],​[reason]) | nil | Kick and ban a player from the server. Argument defaults: bantime=4 hours, admin="​server",​ reason=""​.| | server.kick(cn,​[bantime],​[admin],​[reason]) | nil | Kick and ban a player from the server. Argument defaults: bantime=4 hours, admin="​server",​ reason=""​.|
Line 76: Line 73:
 | server.setadmin(cn) | nil | Give a player admin privilege. Note: only 1 visible master/​admin is supported.| | server.setadmin(cn) | nil | Give a player admin privilege. Note: only 1 visible master/​admin is supported.|
 | server.unsetmaster() | nil | Take away master privilege from the current master.| | server.unsetmaster() | nil | Take away master privilege from the current master.|
-| server.set_invadmin(cn) | nil | Give player admin status, but is invisible to other players.| +| server.set_invisible_admin(cn) | nil | Give player admin status, but is invisible to other players.| 
-| server.set_invmaster(cn) | nil | Give player master status, but is invisible to other players.|+| server.set_invisible_master(cn) | nil | Give player master status, but is invisible to other players.|
 | server.unsetpriv(cn) | nil | Take away player'​s master or admin privilege. This function should work on all privilege configurations.| | server.unsetpriv(cn) | nil | Take away player'​s master or admin privilege. This function should work on all privilege configurations.|
  
en/suckerserv/functions.1309516729.txt.bz2 · Last modified: 2014/05/31 00:26 (external edit)