Jump to content

raynner

Members
  • Posts

    223
  • Joined

  • Last visited

Everything posted by raynner

  1. https://discord.gg/aEUsP7C - Ip disponivel em nosso chat de voz !
  2. como eu falei, você teria que criar uma coluna para cada argumento para armazenar os dados separadamente um em cada coluna !
  3. não nesse script ele salva cada elemento dentro de uma cadeia .. como hp,PosX,PosY,PosZ,Valor entre outros eu havia feito um setAccountData para cada argumento ! e sim no internal.db
  4. não tenho especificamente focado nele mais tem alguns mostrando outros roteiros meus que vc pode ver ele em ação ! https://www.youtube.com/liragamer
  5. seria mais fácil utilizar um sql ou mysql online ! Definitivamente NÂO nunca tive nenhum problema ! Quando eu tropecei nesse mod disponibilizado pelo topmods eu até passei raiva dps fiz uma versão que usava setAccountData ao invés desse database !
  6. depende do modo de reniciar que vc diz ! assim se a conta se vc diz reniciar até mesmo as contas pode acontecer de sim mais também pode ser que não.. agora se vc diz ligar e desligar o sv n nunca tive nenhum problema com isso ... vale lembra que um arquivo .db é um banco de dados ele é mt chato na minha opinião pois apenas ao move-lo de pasta você corre o risco de perde os dados contidos nele !
  7. bom até essa parte do vip eu tenho ele também upa mais rápido que o player normal .. em fim ele é totalmente adaptável para oque vcs querem se quiser experimentar antes veja ele em ação entre em nosso discord e obtenha o ip do nosso open alpha > https://discord.gg/aEUsP7C
  8. bom eu uso ele mais eu fiz muitas modificações nele pois tive que adaptalo para meu servidor "RPG" então eu n editei mt a parte de salvar apenas adicionei para salvar handling pois meu tuning shop foi feito com semelhança "inspirado' no need for speed então o player compra novo motor etc ... e eu tive que adapta-lo mais nunca tive problemas com salvamento utilizando ele ..
  9. tanto faz .. inclusive meu script foi feito para meu projeto rpg vc pode visitar quanto mais level você tem mais demora pra upar mais se você quiser idêntico ao do samp eu posso sim faze-lo para vocês ..
  10. Eu já tenho um projeto de RPG em andamento caso queira visitar, como já tivemos um contato antes embora não foi muito longe ... pois por alguma razão você não manteve mais contato .. em fim visite oque você quiser reciclar .. fique a vontade para me pedir afinal devo muito a você, foi você quem me ajudou a sair do nível intermediário na programação em Lua sou grato Discord : https://discord.gg/aEUsP7C IP: 167.114.32.47:22173 Vale lembrar que o servidor não esta nem 20% completo apenas esta em open alpha para encontrar bug´s !
  11. Primeiro de tudo vc está lidando com um mod roubado que foi mt mal editado na minha opinião vc deveria usar o oficial vc só terá que traduzido. https://community.multitheftauto.com/index.php?p=resources&s=details&id=11115
  12. Por um acaso eu tenho esse script de baixo custo ele é compatível com vários outros vc pode verificar level e exp com getElementData .. porém ele vai até 100 de exp para conseguir 1 level mais posso por pra 6 ..
  13. Resolved thanks to Ayush Rathore and all others for helping me.
  14. I can not think of any way to do this! Any idea ?
  15. I liked it more, it's still not correct because the player with or without box will always return true and I want it to really carry the box up to the marker! I could see from your output that the box position is not updated as it moves .. why does this happen?
  16. note : not is postion (1558,2779.2048,-2485.4523) is correct: (2779.2048,-2485.4523,13.1577) And it did not work
  17. TbPlEmp = {} function StartJobEmpilhadeiraForPlayer() --> verifica se não há uma tabela e cria uma no nome do player ! if not(TbPlEmp[source]) then TbPlEmp[source] = {} end --> Verifica se o player tem um veículo e destroy se houver ! if TbPlEmp[source]["veh"] then destroyElement(TbPlEmp[source]["veh"]) TbPlEmp[source]["veh"] = nil end TbPlEmp[source]["veh"] = createVehicle(530,2799,-2401,13,0,0,93) warpPedIntoVehicle(source,TbPlEmp[source]["veh"]) TbPlEmp[source]["box"] = createObject(1558,2779.2048,-2485.4523,13.1577,0,0,0,false) TbPlEmp[source]["marker"] = createMarker(2724,-2398,12,"cylinder",3,0,255,150,255,source) end addEvent("GiveItensForJobEmpilhadeira",true) addEventHandler("GiveItensForJobEmpilhadeira",root,StartJobEmpilhadeiraForPlayer) function PlayerHitInMarkerLeaveBox(hitElement) if (isElement(hitElement) and getElementType(hitElement) == "player") then if TbPlEmp[hitElement] and source == TbPlEmp[hitElement]["marker"] then if TbPlEmp[hitElement]["box"] and isElement(TbPlEmp[hitElement]["box"]) and isElementWithinMarker(TbPlEmp[hitElement]["box"],source) then outputChatBox("#FFAA00||#00FF00 ✔ #FFAA00||#00FF00 ok !",hitElement,255,255,255,true) else outputChatBox("#FFAA00||#FF0000 ✘ #FFAA00||#FF0000 error !",hitElement,255,255,255,true) end end end end addEventHandler("onMarkerHit",root,PlayerHitInMarkerLeaveBox)
  18. function PlayerHitInMarkerLeaveBox(hitElement) if (isElement(hitElement) and getElementType(hitElement) == "player") then if TbPlEmp[hitElement] and source == TbPlEmp[hitElement]["marker"] then if TbPlEmp[hitElement]["box"] and isElement(TbPlEmp[hitElement]["box"]) and isElementWithinMarker(TbPlEmp[hitElement]["box"],source) then outputChatBox("#FFAA00||#00FF00 ✔ #FFAA00||#00FF00 ok !",hitElement,255,255,255,true) else outputChatBox("#FFAA00||#FF0000 ✘ #FFAA00||#FF0000 error !",hitElement,255,255,255,true) end end end end addEventHandler("onMarkerHit",root,PlayerHitInMarkerLeaveBox) My problem here is, everything works fine excerpt box check in marker does anyone have any idea why? - Always returns false
  19. I would like to create a > guiCreateEdit(wx,wy,hx,hy) I only accept numbers more without having to send a message saying that it only accepts numbers I want something that just to enter numbers does anyone know how to do?
  20. Hello friends I was wondering if there is any way to put the helmet on other skin's besides cj? If not I can use a createObject and an attachElement to paste the helmet on the head of a player after even typing a command? Or any other idea?
  21. Hello friends I was wondering if there is any way to put the helmet on other skin's besides cj? If not I can use a createObject and an attachElement to paste the helmet on the head of a player after even typing a command?
  22. I was wondering if it is possible to do these types of checkpoint and how ?
×
×
  • Create New...