RU/Server Scripting Functions: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(Undo revision 20382 by Enterprise (Talk))
Line 7: Line 7:
Head over to [[Module functions]] for a list of non-native serverside functions and modules that are available.
Head over to [[Module functions]] for a list of non-native serverside functions and modules that are available.


'''Функции для работы на клиентской стороне вы можете найти здесь: [[RU/Client Scripting Functions|Клиентские Функции Скриптинга]].'''
'''Функции для работы на клиентской стороне вы можете найти здесь: [[RU/Client Scripting Functions|Клиентские функции скриптинга]].'''


==Account functions==
==Account functions==

Revision as of 19:41, 8 July 2009

Warning.png This page requires local translation. If page will remain not translated in reasonable period of time it would be deleted.
After translating the page completely, please remove the ‎{{translate}}‎ tag from the page.

This page lists all the server-side scripting functions that have been implemented and are available as native functions from the Deathmatch mod. To request a function or event, use Requested Functions and Events.

Please note that the scripting functions can now be extended by loading in dynamic modules that provide new functionality, such as MySQL database access. These scripting functions are non-native and require the module to be loaded in order to work.

Head over to Module functions for a list of non-native serverside functions and modules that are available.

Функции для работы на клиентской стороне вы можете найти здесь: Клиентские функции скриптинга.

Account functions


ACL functions


Admin functions


Audio functions


All Seeing Eye functions

Template:ASE functions

Blip functions


Camera functions


Collision shape functions


Client functions

BEFORE VERSION 1.0 :

Clothes and body functions


Cursor functions


Element functions


Event functions


Explosion functions


File functions


HTTP functions

These functions can only be used from within lua blocks in HTML pages hosted by the server


Input functions


Map functions


Marker functions


Object functions


Pickup functions


Player functions


Radar area functions


Resource functions


Serial functions


Server functions


Settings registry functions


SQL functions


Team functions


Text functions


Utility functions


Vehicle functions


Функции оружия

Серверные функции

  • giveWeapon - дает указанное оружие игроку или пешеходу
  • takeAllWeapons - удаляет всё оружие с указанного игрока или пешехода
  • takeWeapon - удаляет указанное оружие или боеприпасы с игрока или пешехода
ДО ВЕРСИИ 1.3.1 :
  • takeWeaponAmmo - удаляет определённое кол-во боеприпасов у игрока для указанного оружия
  • giveWeaponAmmo - даёт определённое кол-во боеприпасов игроку для указанного оружия

Клиентские функции

Общие функции

  • getOriginalWeaponProperty - получает исходное свойство указанного типа оружия
  • getPickupWeapon - получает ID оружия из указанного пикапа
  • getSlotFromWeapon - получает слот к которому принадлежит оружие
  • getWeaponIDFromName - получает ID оружия из его названия
  • getWeaponNameFromID - получает название оружия или причину смерти из его ID
  • getWeaponProperty - получает свойство указанного оружия
  • setWeaponAmmo - устанавливает определенное кол-во боеприпасов для указанного оружия
  • setWeaponProperty - устанавливает свойство указанного типа оружия


World functions


XML functions


Deprecated Functions

Access: [[Category:Depreciated]]
Note: dont change this, done purposely to keep this page from being included in the listing.