Server Side Scripting – ArmA: Armed Assault
Jump to navigation
Jump to search
m (Partly translated, removed commands which were not implemented) |
m (Translation completed) |
||
Line 22: | Line 22: | ||
{| border="true" | {| border="true" | ||
! | ! event !! description !! handler parameters | ||
|- | |- | ||
| doubleIdDetected || | | doubleIdDetected || 2nd user with the same ID detected || user id | ||
|- | |- | ||
| onUserConnected || | | onUserConnected || user has connected || user id | ||
|- | |- | ||
| onUserDisconnected || | | onUserDisconnected || user has disconnected || user id | ||
|- | |- | ||
| onHackedData || | | onHackedData || modification of signed pbo detected || user id, file name | ||
|- | |- | ||
| onDifferentData || | | onDifferentData || signed pbo detected with a valid signature, but a different version than a server has (very strict test, use sparingly) || user id, file name | ||
|- | |- | ||
| onUnsignedData || | | onUnsignedData || unsigned data detected || user id, file name | ||
|- | |- | ||
| regularCheck || | | regularCheck || called time by time for each user, test index is growing || user id, test index | ||
|} | |} | ||
[[Category:ArmA: Multiplayer|Server Side Scripting]] | [[Category:ArmA: Multiplayer|Server Side Scripting]] |
Revision as of 09:45, 8 June 2007
The server has a separate Virtual Machine (VM) running administration scripts. This VM is completely independent on the game scripting environment and is designed to automate some administration tasks related to player administration and cheat detection. The basic way how scripts are executed is via event handlers reacting to some typical events, server admin can also execute individual commands using a chat command #exec.
Event handlers are defined in server.cfg file.
The scripting language shares the core (overall structure and syntax, arithmetic operations, control structures) with the scripting used in the game. The are a few commands specific to Server Side Scripting:
příkaz | popis |
---|---|
users | list of users, each user is described as [id,name] array |
ban id | add given user id into the ban list |
kick id | kick off given user id from the server |
level checkFile [id,name] | check file signature test for file name on user id computer, level determines test depth |
numberOfFiles id | number of addons files used for given player |
Following event handlers are executed:
event | description | handler parameters |
---|---|---|
doubleIdDetected | 2nd user with the same ID detected | user id |
onUserConnected | user has connected | user id |
onUserDisconnected | user has disconnected | user id |
onHackedData | modification of signed pbo detected | user id, file name |
onDifferentData | signed pbo detected with a valid signature, but a different version than a server has (very strict test, use sparingly) | user id, file name |
onUnsignedData | unsigned data detected | user id, file name |
regularCheck | called time by time for each user, test index is growing | user id, test index |