25.03.2011, 19:52
yes, i got it, lua-style is like this:
(example command, but works)
setTimer(function()setElementHealth(root,1000) end, 1000,30)
it sets a timer for 1 second which runs for 30 times, and sets everything's health to 1000 (vehicles, robots, players).
in lua, you need to write the first as a small one.
setTimer
setElementHealth
setElementPosition
outputChatBox (same as SendClientMessage in samp)
um, this was MTA.
(example command, but works)
setTimer(function()setElementHealth(root,1000) end, 1000,30)
it sets a timer for 1 second which runs for 30 times, and sets everything's health to 1000 (vehicles, robots, players).
in lua, you need to write the first as a small one.
setTimer
setElementHealth
setElementPosition
outputChatBox (same as SendClientMessage in samp)
um, this was MTA.