RU/setGameSpeed

From Multi Theft Auto: Wiki
Revision as of 10:48, 7 March 2010 by PoliticalOrel (talk | contribs)
Jump to navigation Jump to search

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

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

bool setGameSpeed ( int value )

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

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

Returns

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

Пример

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
)

Примечание