RU/setGameSpeed

From Multi Theft Auto: Wiki
Revision as of 10:28, 7 March 2010 by PoliticalOrel (talk | contribs) (Created page with '__NOTOC__ {{RU/Server client function}} Эта функция устанавливает скорость игры. ==Использование== <syntaxhighlight lang="lua">bool setGameSpeed…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Эта функция устанавливает скорость игры.

Использование

bool setGameSpeed ( int value )

Обязательные величины

  • value: Значение скорости игры ( 0 - 10)

Returns

Returns true if the gamespeed was set successfully, false otherwise.

Example

Click to collapse [-]
Server
addCommandHandler("setgamespeed",
  function(sourcePlayer, command, value)
    setGameSpeed(tonumber(value))
  end
)
Click to collapse [-]
Client
addCommandHandler("setgamespeed",
  function(command, value)
    setGameSpeed(tonumber(value))
  end
)

Примечание