@KariiiM, not work.
maybe with??:
toggleControl("sprint", false)
addEventHandler ( "onClientKey", getRootElement(),
function (button, press)
if (button == "w") then
setElementData (getLocalPlayer(), "w", press)
else
return false
end
if (button == "space" and press) then
if (getElementData (getLocalPlayer(), "w")) then
toggleControl("sprint", false)
end
end
end)
but it also did not work
my attempt was this. but it did not work
function test(thePlayer, command)
toggleControl("sprint", false)
outputChatBox ( "test1" )
end
addCommandHandler ( "test", test )
@KariiiM, nothing happens.
addEventHandler("onClientKey", root,
function ( key, press )
if (key == "w") then
if (getKeyState("space")) then
cancelEvent()
outputChatBox ( "test" )
end
end
end)
usa
setElementData(thePlayer, "suborno", true )
no /aceitar_suborno. mais ou menos assim
if getElementData(thePlayer, "suborno" )
takePlayerMoney ( thePlayer, 5000 )
outputChatBox ( "o suborno foi aceito" )
else
outputChatBox ( "o suborno não foi aceito" )
end
estude um pouco
setElementData
getElementData
que você consegue fazer qualquer mode com essa função
http://imgur.com/dPmsW0k | ( to access, http://www.mtasa.com.br )
I will be making available to administrators.
attention
administrators and moderators .. contact me for I to send the html site. (zipped)