-
Posts
1,991 -
Joined
-
Last visited
-
Days Won
2
Everything posted by #RooTs
-
@Pedro, você quer que o veiculo quando explode com ou sem player dentro retorne para o lugar aonde saiu ? eu entendi isto, se for isso mesmo tente esse code aqui. local model = 400 local vehicle = createVehicle ( model, -708.98931884766,950.66259765625,11.769227981567 ) -- criar veiculo em uma Pos no mapa function respawnExplodedVehicle() setTimer(respawnVehicle, 5000, 1, source) end addEventHandler("onVehicleExplode", getRootElement(), respawnExplodedVehicle) ou você pode tentar este outro exemplo function respawnVehicle( vehicle ) spawnVehicle ( vehicle, getElementData( vehicle, "posX" ), getElementData( vehicle, "posY" ), getElementData( vehicle, "posZ" ), getElementData( vehicle, "rotX" ), getElementData( vehicle, "rotY" ), getElementData( vehicle, "rotZ" ) ) end function onVehicleSpawn () local x,y,z = -708.98931884766,950.66259765625,11.769227981567 setElementData (source,"posX",x) setElementData (source,"posY",y) setElementData (source,"posZ",z) end addEventHandler ("onVehicleExplode",getRootElement(),onVehicleSpawn) function onVehicleExplode () setTimer( respawnVehicle, 5000, 1, source ) end addEventHandler("onVehicleExplode", getRootElement(), onVehicleExplode)
-
use the template arguments local pos1, pos2, pos3 = 1468.8785400391, -919.25317382813, 100.153465271 local pos4, pos5, pos6 = 1468.388671875, -918.42474365234, 99.881813049316 setCameraMatrix(source/localplayer, pos1, pos2, pos3, pos4, pos5, pos6 )
-
use: setCameraMatrix(source, 1468.8785400391, -919.25317382813, 100.153465271, 1468.388671875, -918.42474365234, 99.881813049316)
-
@Hornet. worked, thx. I can now improve. and create a stamina system. thanks! You want to join me to complete the system?
-
@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 )
-
tente usar takePlayerMoney ( thePlayer, tonumber(amount) )
-
@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
-
você pode usar takePlayerMoney ( thePlayer, tonumber(amount) ) ou definir um valor para ser retirado! takePlayerMoney ( thePlayer, 5000 )
-
I think. I did not express myself right. when I press w + space. it runs faster. I want to cancel it and after a while activate again
-
tem que presta mais atenção quando está programando..... olha a linha 10 local money_suborno = getPlayerMoney(tonumber(amount))
-
olhe os topicos acima --'
-
eu acho que você quis tentar isto. local money = getPlayerMoney(thePlayer) if (money > 1000) then -- maior ou menor < > --code end
-
if getPlayerMoney(tonumber(amount)) then você não definiu o elemento "jogador"; acho que definiu a quantidade de dinheiro e não o jogador.
-
I will cancel the bind of an event that I do not know what it is?
-
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)
-
is there any way for me to cancel the "w" and "space" for me I get to create a stamina system. I want to cancel so I can not run. ( "w" and "space" )
-
no decription https://community.multitheftauto.com/in ... ls&id=8458 https://community.multitheftauto.com/in ... ls&id=9064 https://community.multitheftauto.com/in ... s&id=12373 https://community.multitheftauto.com/in ... s&id=12879 https://community.multitheftauto.com/in ... ls&id=8521 https://community.multitheftauto.com/in ... ls&id=3396 Description little or no https://community.multitheftauto.com/in ... ls&id=6514 https://community.multitheftauto.com/in ... s&id=10861 https://community.multitheftauto.com/in ... ls&id=8773 https://community.multitheftauto.com/in ... ls&id=7226 https://community.multitheftauto.com/in ... ails&id=78 https://community.multitheftauto.com/in ... ls&id=1660 https://community.multitheftauto.com/in ... s&id=10947 delete https://community.multitheftauto.com/in ... s&id=10407 resource created by another author https://community.multitheftauto.com/in ... s&id=12487 DONE
-
já temos um projeto BR para o MTA http://www.mtasa.com.br , "talves" seu esforço será inutil ( ou não ) se quiser se juntar-se a nós, será bem vindo.
-
@CodyL. thank you so much.
-
Boa dica predro.
-
Dê mais descrição sobre o tema