Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 25/02/19 in all areas

  1. أ، ب، ت، ث، ج، ح، خ، د، ذ، ر، ز، س، ش، ص، ض، ط، ظ، ع، غ، ف، ق، ك، ل، م، ن، هـ، و، ي تصير لي جارية ؟
    2 points
  2. hey needs a script for kd radio under the panel tab someone wants to help, pay. greetings
    1 point
  3. ماقلبت النية انا ، قاعد اسألك الموضوع هذا لوش بالضبط انا جديد بالمنتدى اتمنى تعلمني
    1 point
  4. شكلكم ما تعرفون الاختراع اللي اسموا الشات الخاص
    1 point
  5. ما يحتاج انك تفيد ناس ما تستاهل طبعا مو الجميع لناس لى تغيير الحقوق وتحط حقوقها وتنشره , ع شن كذا انا وقفت النشر مودات الوزارة افيد ناس بلأخير تدور علي قال أيش فري روم فخامة وانا لى ناشر حق الوزارة وهم معدلين صورة م يحتاج اطلع عن سياق الموضوع مختصر كلامي احذف المود ولا تنشره
    1 point
  6. العفو يا عسل بالتوفيق
    1 point
  7. function fileClear( filePath ) if( filePath and type( filePath ) == 'string' ) then file = fileOpen( filePath ) if( not file ) then return false end fileSetPos( file , 0 ) fileWrite( file , string.rep( " " , fileGetSize( file ) ) ) fileClose( file ) end end مشششششششششششششششششششششششششششكور يا قمر
    1 point
  8. Tente isso, Não testei Marca = createMarker ( -2423.06445, -608.87097, 131.56250, "cylinder", 1.5, 0, 255, 127, 200 ) createBlipAttachedTo(ageita, 27) function mensagemMarker (thePlayer) outputChatBox( "Mecânico #FBA403 PARA Alugar Um Guincho User #F8F401/alugar #08EF0C$5000", thePlayer, 255, 0, 255, true) end addEventHandler( "onMarkerHit", Marca, mensagemMarker ) Carro = {} -- Tabela vazia pra armazenar todos carros criados Tempo = {} -- Tabela pra armazenar os timer function Guincho ( thePlayer ) if getPlayerMoney >= 5000 then -- Jogador deve ter 5000 mil pra alugar o veiculo if Carro[thePlayer] and isElement( Carro[thePlayer] ) then destroyElement ( Carro[thePlayer] ) Carro[thePlayer] = nil end Carro[thePlayer] = createVehicle ( 525, -2409.55566, -597.95282, 132.64844 ) -- Cria um veiculo pro jogaodr warpPedIntoVehicle ( thePlayer, Carro ) -- Leva jogador até interior do veiculo takePlayerMoney( thePlayer, 5000 ) -- Remove dinheiro do jogador destroyElementonPlayerVehicleExit ( Carro ) -- NÃO SEI PRA QUE SERVER outputChatBox ( "#F58403Mecânico: #8BF204Vehiculo Alugado Porem Pegarei De Volta Em 10 minutos [5000$]", thePlayer, 255, 0, 255, true ) if (Carro[thePlayer]) and isElement(Carro[thePlayer]) then Tempo[thePlayer] = setTimer ( function() destroyElement (Carro[thePlayer]) end, 1200000, 1 ) -- Adicione o tempo para destruir aqui end else outputChatBox ( "#F58403Mecânico: #ff0000Dinheiro insuficiente Para Alugar Meu Guincho", thePlayer, 255, 0, 0, true ) end end addCommandHandler( "alugar", Guincho )
    1 point
  9. Eu acho que entendi mais ou menos oque quis dizer, Acho que isso deve ajudar, eu nunca usei "executeCommandHandler" Mas acabei lendo pra ver como funcionava não dizia como destruir porém ai vai. function BindK ( source ) if ( source ) then setElementData(source, "Comando_BindKey", true) if getElementData(source, "Comando_BindKey") == false then setTimer ( function() removeCommandHandler ( "motor", BindK ) bindKey ( source, "K", "down", BindK ) end, 600, 1 ) end end end addCommandHandler ( "motor", BindK ) function BindK_2 ( source ) executeCommandHandler ( "motor", source ) end
    1 point
  10. Maybe try something like that: -- CLIENT SIDE addEventHandler("onClientPedDamage", getRootElement(), function(attacker) if attacker == localPlayer then triggerServerEvent("startFollow", localPlayer, source, localPlayer) end end) -- SERVER SIDE local ped = createPed(0, 0, 0, 3) function startFollow(pedElement, playerElement) if isElement(pedElement) then setPedAnimation(pedElement, "muscular", "musclerun") setTimer(function() local x1, y1 = getElementPosition(playerElement) local x2, y2 = getElementPosition(pedElement) local rot = findRotation( x2, y2, x1, y1 ) setPedRotation(pedElement, rot) end, 250, 0) end end addEvent("startFollow", true) addEventHandler("startFollow", root, startFollow) function findRotation( x1, y1, x2, y2 ) local t = -math.deg( math.atan2( x2 - x1, y2 - y1 ) ) return t < 0 and t + 360 or t end
    1 point
  11. اذا طلبت مستر اكس من ام تي اي :
    1 point
  12. أنا مين وفين وزاي مود رائع واصل يامواصل
    1 point
  13. 1 point
  14. Hello! Send me a private message and I can help you in Hungarian.
    1 point
  15. Olá pessoal, estou com um problema no meu sistema de prisão, a tabela que salva o veículo funciona normalmente em todas as partes do script, porém, na função onPlayerWasted a tabela parece que não funciona, não sei se tem algum outro resource dando algum tipo de conflito/bug Segue o código abaixo: local positions = { {x = 1536, y = -1675.5, z = 12}, {x = 2185, y = -1757, z = 12}, {x = 777.6, y = -1387.5, z = 12}, {x = -1568.1, y = 661.18, z = 6}, {x = 2290.18, y = 2420.7, z = 10} } local cadeias = { {-1283.88013, 1200.47180, 13.01935}, {-1283.51514, 1207.08447, 13.02033}, {-1283.46167, 1213.87219, 13.02705}, {-1284.11597, 1220.69495, 13.01871} } local IDS = { [490] = true, [598] = true, [596] = true, [597] = true, [560] = true } local timerArrested = {} function createPrisonMarker(source) for _, v in ipairs(positions) do if isPlayerPolice(source) then if not marker then local marker = createMarker(v.x, v.y, v.z, 'cylinder', 3.0, 10, 10, 10, 255, source) createBlipAttachedTo(marker, 30, 2, 255, 255, 255, 255, 0, 9999, source) end end end end function onResourceStart() for _, player in ipairs(getElementsByType("player")) do createPrisonMarker(player) end end addEventHandler("onResourceStart", resourceRoot, onResourceStart) local carros = {} function onPlayerVehicleEnter(theVehicle, seat, jacked) local idModel = getElementModel(theVehicle) if IDS[idModel] then carros[source] = theVehicle print(carros[source]) -- retorna tabela print(getElementModel(carros[source])) -- retorna id end end addEventHandler('onPlayerVehicleEnter', root, onPlayerVehicleEnter) function onPrender(police, _, target) if isPlayerPolice(police) then local target = getPlayerFromPartialName(target) if not target then return outputChatBox('#bebebeJogador inválido', police, 255, 255, 255, true) end local px, py, pz = getElementPosition(police) local bx, by, bz = getElementPosition(target) local dist = getDistanceBetweenPoints3D(px, py, pz, bx, by, bz) if target == police then return outputChatBox('#bebebeVocê não pode prender a si mesmo', police, 255, 255, 255, true) end if getPlayerWantedLevel(target) == 0 then return outputChatBox('#bebebe Este jogador não está sendo procurado', police, 255, 255, 255, true) end if isPedInVehicle(police) then return outputChatBox('#bebebeVocê não pode prender de dentro da viatura', police, 255, 255, 255, true) end if isPedInVehicle(target) then return outputChatBox('#bebebeVocê não pode prender um bandido enquanto ele estiver dentro de um veículo', police, 255, 255, 255, true) end if dist >= 2.5 then return outputChatBox('#bebebeVocê precisa chegar mais perto para prender', police, 255, 255, 255, true) end if not carros[police] then return outputChatBox('#bebebeEntre na VIATURA e saia para poder prender', police, 255, 255, 255, true) end warpPlayerInVTR(police, target) end end addCommandHandler('prender', onPrender) function onPlayerCommand(command) cancelEvent() end function onMarkerHit(hitElement, d) if hitElement and d then if getElementType(hitElement) == "vehicle" then local police = getVehicleOccupant(hitElement, 0) if carros[police] then local pregados = getAttachedElements(hitElement) for _, preso in ipairs(pregados) do if not isElement(preso) then return end if getElementData(preso, 'navtr') then removeElementData(preso, 'navtr') end setElementData(preso, 'arrested', true) detachElements(preso, hitElement) setPedAnimation(preso) toggleAllControls(preso, true) setPlayerInPrison(preso, "controls") local wanted = getPlayerWantedLevel(preso) local tempo = 30000 * wanted timerArrested[preso] = setTimer(function(p) onSoltar(p) end, tempo, 1, preso) triggerClientEvent(preso, "onClientPlayerArrested", resourceRoot, "add", tempo) local niv = getPlayerWantedLevel(preso) local premio = 1000*niv givePlayerMoney(police, premio) outputChatBox('#bebebeVocê prendeu um procurado nível #00ffff'..niv..'#bebebe e ganhou #00ffff$'..premio..'#bebebe de prêmio', police, 255, 255, 255, true) end end end end end addEventHandler("onMarkerHit", resourceRoot, onMarkerHit) function onPlayerWasted(totalAmmo, killer, killerWeapon, bodypart, stealth) if isElement(source) then onSoltarWasted(source) end end addEventHandler("onPlayerWasted", root, onPlayerWasted) function onSoltarWasted(source) if isPlayerPolice(source) then local vtr = carros[source] print(vtr) -- retorna a tabela print(getElementModel(vtr)) -- da erro e retorna false if vtr and isElement(vtr) then local pregados = getAttachedElements(vtr) for _, preso in ipairs(pregados) do if preso and isElement(preso) then detachElements(preso, vtr) setPedAnimation(preso) if getElementData(preso, "navtr") then removeElementData(preso, "navtr") end removeEventHandler('onPlayerCommand', preso, onPlayerCommand) toggleAllControls(preso, true) local x,y,z = getElementPosition(preso) setElementPosition(preso,x+1.5,y+1.5,z+1) end end end end end function warpPlayerInVTR(police, preso) setElementData(preso, 'navtr', true) addEventHandler('onPlayerCommand', preso, onPlayerCommand) local vtr = carros[police] attachElements(preso, vtr, 0.2, -1.5, 0, 0, 0, 90) takeAllWeapons(preso) toggleAllControls(preso, false) setPedAnimation(preso, 'ped','CAR_dead_LHS') local vrx, vry, vrz = getElementRotation(vtr) setElementRotation(preso, vrx, vry, vrz+83) warpPedIntoVehicle(police, vtr) outputChatBox('#bebebeLeve o preso para a delegacia mais próxima #00ffff(sirenes azuis).', police, 255, 255, 255,true) end function onSoltar(preso) removeEventHandler('onPlayerCommand', preso, onPlayerCommand) removeElementData(preso, 'arrested') setElementDimension(preso, 0) setElementPosition(preso, -1607.02698, 715.03778, 12.53868) toggleControl(preso, "fire", true) toggleControl(preso, "aim_weapon", true) toggleControl(preso, "next_weapon", true) toggleControl(preso, "previous_weapon", true) setPlayerWantedLevel(preso, 0) if timerArrested[preso] then if isTimer(timerArrested[preso]) then killTimer(timerArrested[preso]) end timerArrested[preso] = nil end triggerClientEvent(preso, "onClientPlayerArrested", resourceRoot, "remove") end function onPlayerQuit() local account = getPlayerAccount(source) if account and not isGuestAccount(account) then if timerArrested[source] then if isTimer(timerArrested[source]) then local time = getTimerDetails(timerArrested[source]) setAccountData(account, "jailTime", time) killTimer(timerArrested[source]) else local statusJailTime = getAccountData(account, "jailTime") if statusJailTime then setAccountData(account, "jailTime", false) end end timerArrested[source] = nil end local status = getElementData(source,"arrested") if status then setAccountData(account, "arrested", true) else local statusArrested = getAccountData(account, "arrested") if statusArrested then setAccountData(account, "arrested", false) end end if getElementData(source, "navtr") then setAccountData(account, "jailTime", 180000) setAccountData(account, "arrested", true) end end end addEventHandler("onPlayerQuit", root, onPlayerQuit) function onPlayerLogin(_, account) local status = getAccountData(account, "arrested") if status then setElementData(source, "arrested", true) local tempo = getAccountData(account, "jailTime") timerArrested[source] = setTimer(function(p) onSoltar(p) end, tempo, 1, source) triggerClientEvent(source, "onClientPlayerArrested", resourceRoot, "add", tempo) setPlayerInPrison(source, "controls") end createPrisonMarker(source) end addEventHandler("onPlayerLogin", root, onPlayerLogin) function setPlayerInPrison(source, type) setElementDimension(source, 2) setElementPosition(source, unpack(cadeias[math.random(#cadeias)])) if type == "controls" then toggleControl(source, "fire", false) toggleControl(source, "aim_weapon", false) toggleControl(source, "next_weapon", false) toggleControl(source, "previous_weapon", false) end end local policeACLs = { aclGetGroup("Console"), -- aclGetGroup("FT"), -- aclGetGroup("ROTA"), -- aclGetGroup("CORE"), -- aclGetGroup("CHOQUE"), -- aclGetGroup("EXE"), } function isPlayerPolice(p) local acc = getPlayerAccount(p) if not acc then return false end if isGuestAccount(acc) then return false end local object = getAccountName(acc) for _,group in ipairs(policeACLs) do if isObjectInACLGroup("user."..object,group) then return true end end return false end function getPlayerFromPartialName(name) local name = name and name:gsub("#%x%x%x%x%x%x", ""):lower() or nil if name then for _, player in ipairs(getElementsByType("player")) do local name_ = getPlayerName(player):gsub("#%x%x%x%x%x%x", ""):lower() if name_:find(name, 1, true) then return player end end end end
    1 point
  16. Pois é, está tudo normal, acho que está dando algum conflito no servidor que estou utilizando ele, vou tentar resolver isso.
    1 point
  17. Já sim, o problema é na parte do evento onPlayerWasted
    1 point
  18. Continua a mesma coisa
    1 point
  19. تم اضافة نظام التشغيل Windows Server 2012 R2 64bit لخوادم الويندوز يمكن لعملائنا الجدد اختيار النظام اثناء عملية الشراء ويمكن للعملاء الحاليين اختيار تركيب النظام عبر عمل فورمات من خلال لوحة تحكم الخادم في الخيار OS Reinstall
    1 point
  20. I know someone why I can not connect to any server and I get something like this? https://imgur.com/a/AZrSGUj how would someone say something about things or how to fix it gets a big plus from me: D thank you in advance
    1 point
  21. شوفت انتا نيتك وحشة ازاي mta sa هذا مجرد توقع ان انتم ما تتدرون عن مود الشات الخاص اللي في
    0 points
×
×
  • Create New...