DNL291

Moderators
  • Content Count

    3,482
  • Joined

  • Last visited

  • Days Won

    43

Everything posted by DNL291

  1. entao voce esta usando a versao 1.0 ?. 1.1 em diante os recursos ficam localizados na pasta [gameplay], os gamemodes na pasta [gamemodes], assim por diante. enfim o editor_dump fica localizado na pasta [gameplay]
  2. fica localizado nessa pasta por padrao C:\Program Files\MTA San Andreas 1.3\server\mods\deathmatch\resources\[gameplay]\editor_dump
  3. DNL291

    Need Help

    local marker = createMarker(x,y,x,"cylinder",2,0,0,0) addEventHandler("onClientMarkerHit", marker, function (hitElement) if ( getElementModel(hitElement) == 0 ) then guiSetVisible(theWindow, true) else guiSetVisible(theWindow, false) end end )
  4. voce pode fazer isso com um ped. basta aprender lua scripting
  5. Primeiramente, voce quer se dizer scripter só porque se enche de posts que raramente ajuda as pessoas, e sempre persegue as pessoas sem conhecer nem saber oque elas fazem. nao seja convencido disso por que muitas vezes voce acaba se calando diante de scripters. diz que os scripts postados pelos outros nao funcionam sem pelo menos testar, que muitas vezes funciona. Voce deve parar de julgar as pessoas, com sua idiotice e pouca idade. eu nao pedi nenhuma opinião de voce sobre mim. Nao me julgue quem voce nao conhece, como o Laffu disse, pare de ajudar em pulblico so para ganhar status e ficar reconhecido. nao é bom ter mais de 1000 posts e nem um ano de cadastro no forum. melhor voce ver os seus poblemas, porque suas palavras sao sem nocao e de uma pessoa que nao demonstra qualquer mentalidade. sinta-se enganado se voce acha que vai tirar minha moral. voce nao me conhece, voce nao sabe oque passei, oque fiz e oque faço, entao porque julgar? e nao precisa falar sobre mus posts no forum de scripting ingles porque eu mesmo sei quando eu ajudo e quando eu nao ajudo. voce tenta ajudar na frente das pessoas mais muitas vezes se dar mal. já que voce gosta de falar, voce vai aprender ouvir tambem. @Laffu nao precisava infernizar esse topico que esta totalmente offTopic. pra mim ja esta tudo resolvido pode falar oque pensa de mim eu nao ligo vai em frente. voce nao vai tornar as pessoas idiotas só com suas palavras.
  6. DNL291

    Car

    getElementPosition createVehicle warpPedIntoVehicle
  7. DNL291

    Need Help

    @TAPL do not understand why I have never seen this script. not understand.
  8. DNL291

    Need Help

    still do not understand What you really want to do
  9. DNL291

    Need Help

    try addEvent("PinCar", true) addEventHandler("PinCar", getRootElement(), function (thePlayer) local vehicule = getPedOccupiedVehicle(thePlayer) if (vehicule) then local blip = createBlipAttachedTo(vehicule, 19, 4, 255, 0, 0, 255, 0, 99999.0, thePlayer) else outputChatBox("vehicule not found",thePlayer,255,0,0) end end )
  10. DNL291

    Need Help

    would be better if you show us the other part of the script and debugscript and root is the same as getRootElement()
  11. DNL291

    Need Help

    function PinCar(thePlayer,carname) local carname = getPedOccupiedVehicle(source) local vehicule = getVehicleName(carname) if (vehicule) then local blip = createBlipAttachedTo (vehicule, 19, 4, 255, 0, 0, 255, 0, 99999.0, thePlayer) else outputChatBox("vehicule not found",thePlayer,255,0,0) end end addEvent("PinCar", true) addEventHandler("PinCar", getRootElement(), PinCar)
  12. topic should be moved. posted in the wrong place
  13. You set the id of the vehicle? stop just copy the code and say it does not work.
  14. addEventHandler( "onPlayerJoin", root, function () x = 1762.18774 y = 815.470336 z = 10.4135589 local _vehicle = createVehicle(id, x, y, z) spawnPlayer(source, x, y, z) setElementModel(source, math.random(0,312)) warpPedIntoVehicle(source, _vehicle) setCameraTarget( source, source ) outputChatBox("* Successfully spawn ", source, 0, 255, 0) end )
  15. DNL291

    Create Vehicles

    You're asking to create a list of vehicles for you, nobody will work on a script for you for free. you could have done it and ask for help in the rest. you can learn no one is born knowing Lua scripting. viewtopic.php?f=148&t=40809
  16. DNL291

    Create Vehicles

    You're waiting for someone to create for you. Nobody will do the script for you for free.(Probably no one). learn Lua and make your scripts yourself
  17. DNL291

    Create Vehicles

    where is event carCreateTest ?
  18. DNL291

    Vehicle System

    yeah, forgot to set the variable above. is because the code that I tested did not have this error.
  19. DNL291

    Vehicle System

    I think you better test on some server before speaking it. the label is updated when the player enters and exits the vehicle, though the script needs to be corrected. but I will not do it all for him. he can learn.
  20. DNL291

    Vehicle System

    the label has been updated for me, when I enter and leave the vehicle
  21. DNL291

    Vehicle System

    Copy the code again
  22. DNL291

    Vehicle System

    GUIEditor_Label = {} theWindow = guiCreateWindow(300,200,250,200,"Sistema de Veiculos",false) guiWindowSetSizable(theWindow,false) guiSetVisible (theWindow, false) guiLabelSetHorizontalAlign(GUIEditor_Label[1],"left",false) guiSetFont(GUIEditor_Label[1],"default-bold-small") guiCreateButton(0.005, 0.250, 0.6, 0.130, "Vehiculo :", true, theWindow) guiCreateButton(0.005, 0.400, 0.6, 0.130, "Vehiculo :", true, theWindow) guiCreateButton(0.650,0.100,0.3,0.2,"Trancar / Destrancar",true,theWindow) guiCreateButton(0.650,0.330,0.3,0.2,"Blip",true,theWindow) destroyBut = guiCreateButton(0.650,0.560,0.3,0.2,"Visivel / Invisivel",true,theWindow) guiCreateButton(0.005,0.560,0.3,0.2,"Vender",true,theWindow) guiCreateButton(0.345,0.560,0.3,0.2,"Seila",true,theWindow) guiCreateLabel(0.080, 0.780, 0.6, 0.2, "Tabela feita por Ninguem", true, theWindow) function buttonLabel() local theVehicle = getPedOccupiedVehicle(localPlayer) if ( theVehicle ) then spawnBut1 = guiCreateButton(0.005, 0.100, 0.6, 0.130, "Veiculo: "..getVehicleName(theVehicle).."", true, theWindow) destroyElement(spawnBut2) else spawnBut2 = guiCreateButton(0.005, 0.100, 0.6, 0.130, "Veiculo: nenhum", true, theWindow) destroyElement(spawnBut1) end end function refreshLabel() setTimer(buttonLabel, 50, 1) end addEventHandler("onClientVehicleEnter", root, refreshLabel) addEventHandler("onClientVehicleExit", root, refreshLabel) addEventHandler("onClientResourceStart", root, refreshLabel) function resourceStart () bindKey ("F3", "down", menuShow) end addEventHandler ("onClientResourceStart", getResourceRootElement ( getThisResource () ), resourceStart) function menuShow () visableornot = guiGetVisible (theWindow) if (visableornot == true) then guiSetVisible (theWindow, false) showCursor (false) end if (visableornot == false) then guiSetVisible (theWindow, true) showCursor (true) end end addEvent ("carSpawn", true) addEvent ("carDestroy", true) function guiClick () if (source == spawnBut1 or source == spawnBut2) then triggerServerEvent ("carSpawn", getLocalPlayer()) elseif (source == destroyBut) then triggerServerEvent ("carDestroy", getLocalPlayer()) end end addEventHandler ("onClientGUIClick", getRootElement(), guiClick)
  23. DNL291

    Vehicle System

    local button = guiCreateButton(0.005, 0.100, 0.6, 0.130, "Veiculo:", true, theWindow, 255, 0, 0) addEventHandler("onClientGUIClick", button, root, function () local vehicle = getPedOccupiedVehicle(source) if vehicle then guiSetText( button, "Veiculo: "..getVehicleName(vehicle).."" ) else guiSetText( button, "Veiculo: nenhum" ) end end ) not sure if it works.
  24. DNL291

    Vehicle System

    local button = guiCreateButton(0.005, 0.100, 0.6, 0.130, "Veiculo :", true, theWindow, 255, 0, 0) addEventHandler("onClientGUIClick", button, root, function () local vehicle = getPedOccupiedVehicle(source) if vehicle then outputChatBox("your current vehicle is: "..getVehicleName(vehicle).."") else outputChatBox("you dont have any vehicle") end end )
  25. maybe it works local _markers = getElementsByType("marker") for i,marker in ipairs(_markers) do