Jump to content

ArcAngeL

Members
  • Posts

    42
  • Joined

  • Last visited

Everything posted by ArcAngeL

  1. Hey ı have meta <meta> <script src="disablepvp.lua" type="client"/> </meta>
  2. My all codes : cities = { ["Los Santos"] = true, ["San Fierro"] = true, ["Las Venturas"] = true, } addEventHandler ( "onClientPlayerDamage", localPlayer, function( attacker, weapon, bodypart ) local x,y,z = getElementPosition(localPlayer) local city = getZoneName(x,y,z, true) if cities[city] then if attacker and attacker ~= localPlayer and getElementType(attacker) == "player" then cancelEvent() end end end)
  3. LOOOOOL still I CAN SHOT sorry for my bad
  4. I changed but still ı cant shot my friend in los santos cities = { ["Los Santos"] = true, ["San Fierro"] = true, ["Las Venturas"] = true, } addEventHandler ( "onClientPlayerDamage", localPlayer, function( attacker, weapon, bodypart ) local x,y,z = getElementPosition(localPlayer) local city = getZoneName(x,y,z, true) if cities[city] then if attacker and attacker ~= localPlayer and getElementType(attacker) == "player" then cancelEvent() end end end)
  5. I want disable PvP in Las Venturas, San Fierro,Los Santos and ı created some codes.but when ı burn or fall, ı dont lose health.ı just want disable player vs. player(pvp).someone help me ? what is my wrong ? cities = { ["Los Santos"] = true, ["San Fierro"] = true, ["Las Venturas"] = true, } addEventHandler ( "onClientPlayerDamage", root,function( attacker, weapon, bodypart ) local x,y,z = getElementPosition(localPlayer) local city = getZoneName(x,y,z, true) if cities[city] then if getElementType(attacker) == "player" then cancelEvent() end end end)
  6. thanks man you always helping me thanks a lot
  7. Hi guys this codes giving money pickup after the ped kill.but ı need make 5 money pickup.how can ı create pickups table ? ı tried but didnt work.someone help me ? thanks function money (theKiller) if (source == nemesiR) then x,y,z = getElementPosition ( nemesiR ) ---get Element position(zombie that dead)position money = createPickup ( x + 1,y,z, 3, 1212,0 ) if money then function GivePlayerMoney (theKiller) givePlayerMoney ( theKiller, 5000 ) destroyElement ( source ) end addEventHandler ( "onPickupHit", money, GivePlayerMoney ) end end return end addEvent( "onBotWasted",true ) addEventHandler ("onBotWasted",getRootElement(),money)
  8. Hello all ı want remove the leaves of trees.months ago ı was saw this resource in some mta sa sites but now ı cant find I can use removeWorldObject but ID's of leaves is unknown.Can someone help me for this ? Screenshot : https://ibb.co/d5hkvpf
  9. Hello All, Why ı cant create rank in scoreboard when players kill players ? just it creating 'Rango' on scoreboard but ranks is not created.please help me thanks. exports.scoreboard:addScoreboardColumn('Rango') addEventHandler("onPlayerSpawn",root, function() local account = getPlayerAccount(source) local kills = getAccountData(account,"kills") if (kills >= 0) and (kills <= 4) then setAccountData ( account, "Rango", "Nuevo" ) elseif (kills >= 5) and (kills <= 99) then setAccountData ( account, "Rango", "Iniciado" ) elseif (kills >= 100) and (kills <= 249) then setAccountData ( account, "Rango", "Aficionado" ) elseif (kills >= 250) and (kills <= 499) then setAccountData ( account, "Rango", "Amateur" ) elseif (kills >= 500) and (kills <= 999) then setAccountData ( account, "Rango", "Asesino" ) elseif (kills >= 1000) and (kills <= 1499) then setAccountData ( account, "Rango", "Maestro" ) elseif (kills >= 1500) and (kills <= 1999) then setAccountData ( account, "Rango", "Cannibal" ) elseif (kills >= 2000) and (kills <= 2999) then setAccountData ( account, "Rango", "Rampager" ) elseif (kills >= 3000) and (kills <= 3999) then setAccountData ( account, "Rango", "Monster" ) elseif (kills >= 4000) and (kills <= 4999) then setAccountData ( account, "Rango", "Blooder" ) elseif (kills >= 5000) and (kills <= 5999) then setAccountData ( account, "Rango", "ZombieKiller" ) elseif (kills >= 5000) and (kills <= 5999) then setAccountData ( account, "Rango", "HeadShooter" ) elseif (kills >= 6000) and (kills <= 6999) then setAccountData ( account, "Rango", "Animal" ) elseif (kills >= 7000) and (kills <= 7999) then setAccountData ( account, "Rango", "Depredador" ) elseif (kills >= 8000) and (kills <= 8999) then setAccountData ( account, "Rango", "Psicopata" ) elseif (kills >= 9000) and (kills <= 10000000) then setAccountData ( account, "Rango", "PsykoKiller" ) end end ) addEventHandler("onPlayerSpawn",root, function () local cuenta = getPlayerAccount(source) if isGuestAccount(cuenta) then return end local rango = getAccountData(cuenta,"Rango") if rango then setElementData(source,"Rango", rango) end end )
  10. thanks for your idea ı am triyng now
  11. local working = true local stream = playSound("http://test.com./jashdjkashdk.mp3",true) setSoundVolume (stream, 0.7) function toggleRadio() working = not working if working == false then moveOn = false setSoundVolume(stream, 0) else moveOn = true setSoundVolume(stream, 0.7) end end addCommandHandler ( "music", toggleRadio ) Hi Guys, this codes playing mp3 sounds in server background.but this URL playing when players join.ı need add 'when players login'.how can ı add 'onPlayerLogin'.Plase help me thanks .
  12. Thanks man its done ı need work now thanks again
  13. hi guys ı just need ask a question.ı am searching for this but ı cant found.ı tried fxAddBlood but it didnt work like this.ı can make texture or shader but ı dont know what is blood ID ı need make blood effect like this. If someone knows who can help?
  14. hellooo ! ı cant see my vip logo on my head.how can ı see ? cause ı need edit logo ı am working on my local server.please help friends. client side : local imgW = 500 local imgH = 90 function dxDrawImageOnElement(TheElement,Image,distance,height,width,R,G,B,alpha) local x, y, z = getElementPosition(TheElement) local x2, y2, z2 = getElementPosition(localPlayer) local distance = distance or 20 local height = height or 1 local width = width or 1 local checkBuildings = checkBuildings or true local checkVehicles = checkVehicles or false local checkPeds = checkPeds or false local checkObjects = checkObjects or true local checkDummies = checkDummies or true local seeThroughStuff = seeThroughStuff or false local ignoreSomeObjectsForCamera = ignoreSomeObjectsForCamera or false local ignoredElement = ignoredElement or nil if (isLineOfSightClear(x, y, z, x2, y2, z2, checkBuildings, checkVehicles, checkPeds , checkObjects,checkDummies,seeThroughStuff,ignoreSomeObjectsForCamera,ignoredElement)) then local sx, sy = getScreenFromWorldPosition(x, y, z+height) if(sx) and (sy) then local distanceBetweenPoints = getDistanceBetweenPoints3D(x, y, z, x2, y2, z2) if(distanceBetweenPoints < distance) then dxDrawMaterialLine3D(x, y, z+1+height-(distanceBetweenPoints/distance), x, y, z+height, Image, width-(distanceBetweenPoints/distance), tocolor(R or 255, G or 255, B or 255, alpha or 255)) end end end end function adminLogo() for i, player in ipairs(getElementsByType ('player')) do if getElementData(player,"Vip") then if player ~= localPlayer then dxDrawImageOnElement(player, "logo.png", 20, imgH, imgW ) end end end end addEventHandler("onClientPreRender", root, adminLogo)
×
×
  • Create New...