Jump to content

ArcAngeL

Members
  • Posts

    42
  • Joined

  • Last visited

Everything posted by ArcAngeL

  1. Guys, I'm not talking about building a new radar.I think the dx functions are not what I need.I think I will use shader but I don't know what to do.How can I square the original radar?I just don't want it to be round.Can anyone tell me if anyone knows or has done this before?
  2. I think the internet browser provides more detailed information.you can also see which resource other players are having trouble with.Use option and press 'd' .
  3. you need to use performanceBrowser to see which function is wrong.open your internet browser and try this : http://serverip:port/performancebrowser/ >>>>> (Enter the your server ip and port number.) this page will ask you for a username and password.you will write the account information you use on the server. Everythink you need in this link : https://wiki.multitheftauto.com/wiki/Resource:Performancebrowser
  4. local screenW, screenH = guiGetScreenSize() function EXP_HUD(myexp) local exp = getElementData( localPlayer, "ZR_EXP" ) dxDrawText( tostring(exp) , screenW/2, screenH/2, screenW/2, screenH/2, tocolor( 255,255,255,255 ), 1, "bankgothic", "center", "center" ) end addEventHandler("onClientRender", root, EXP_HUD) addEvent( "showHUD", true ) addEventHandler( "showHUD", localPlayer, EXP_HUD ) ı think this will work.
  5. Hi Tut, Yes ı looked at all the topics.they are very old or unanswered topics.ı looking for a really good performing host.
  6. Hello to everyone. I would appreciate it if friends with experience answer this topic.In the past a lot of people have opened the topic for a good host.but it's been over a lot of time and we really need help.It's hard to manage a server with zombies or peds.Because many players are getting poor performance from the server.(high ping or lowest level FPS) When we buy a host in Europe, it is a problem for players of the Americas.Likewise when we get a host from the continent of america, those in europe are having problems. Can an experienced friend recommend a good host company?Need a good company or a good location.If you have a really good suggestion, can you share with us? We will really be grateful.
  7. Mate this can't be for rpg servers.maybe its good for freeroam mode.
  8. I think he need this resource.you will see how it is used for weapons or another objects. https://community.multitheftauto.com/index.php?p=resources&s=details&id=11836
  9. I mean zombie is losing health but ,health bar does not go down
  10. local sX,sY = guiGetScreenSize() local sX,sY = sX*0.05,sY*0.95 font = "default-bold" function healthbar() local plr = localPlayer for k, pedsz in pairs(getElementsByType("ped", root, true)) do if getElementData(pedsz, "zombie") then target = getPedTarget(plr) if (not target) then return false end if (not getElementType(target) == "ped" ) then return false end if (not isElementOnScreen(pedsz)) then return false end dxDrawText("Zombie", sX+460, sY-627, sX+155, sY-19-(32*7), tocolor(0,0,0, 255), 1.5, font, "left", "top") dxDrawText("Zombie", sX+461.5, sY-625.5, sX+153.5, sY-17.5-(32*7), tocolor(204, 204, 204, 255), 1.5, font, "left", "top") local healthA = dxDrawRectangle(sX+420, sY-600,150, 12, tocolor(241, 236, 253, 114), false) local health = getElementHealth(pedsz) local lineLength = 100 * (health / 100) local healthB = dxDrawRectangle(sX+423, sY-597,lineLength, 7, tocolor(9, 172, 213, 254), false) end end end addEventHandler("onClientRender", root, healthbar) Hello All, its simple zombie health bar codes.dxDrawText and dxDrawRectangle look successful.but zombie is losing health but,health bar is doesnt go down sometimes even when ı aim at the zombies,health bar does not appear what can ı do for it ? Can my math. be wrong ?
  11. Hello, This is a simple rank tag on the players head.but how can ı destroy this tag when riding the vehicle ? this nametag needs to disappear while riding the vehicle.can someone help me ? addEventHandler( "onClientRender",root, function( ) local px, py, pz, tx, ty, tz, dist px, py, pz = getCameraMatrix( ) for _, v in ipairs( getElementsByType 'player' ) do --if(player ~= localPlayer) then tx, ty, tz = getElementPosition( v ) dist = math.sqrt( ( px - tx ) ^ 2 + ( py - ty ) ^ 2 + ( pz - tz ) ^ 2 ) if dist < 30.0 then if isLineOfSightClear( px, py, pz, tx, ty, tz, true, false, false, true, false, false, false,localPlayer ) then local sx, sy, sz = getPedBonePosition( v, 6 ) local x,y = getScreenFromWorldPosition( sx, sy, sz +1.5 ) if x then -- getScreenFromWorldPosition returns false if the point isn't on screen dxDrawLine3D ( sx, sy, sz+0.2,sx, sy, sz+1.35, tocolor ( 0, 210,0, 90 ), 1.45,false) dxDrawText( "Warrior", x-9.5, y, x, y, tocolor(0,210,0,150), 0.85 + ( 15 - dist ) * 0.035, "default-bold" ) end end end end end )
  12. ı downloaded gta 4 animations for my server but only local player see the animations.how can ı change local player to 'player'.ı didint put on serverside its not worked.anybody can help me ? local animTable = { ifp = {}, anims = { "abseil", "ARRESTgun", "ATM", "BIKE_elbowL", "BIKE_elbowR", "BIKE_fallR", "BIKE_fall_off", "BIKE_pickupL", "BIKE_pickupR", "BIKE_pullupL", "BIKE_pullupR", "bomber", "CAR_alignHI_LHS", "CAR_alignHI_RHS", "CAR_align_LHS", "CAR_align_RHS", "CAR_closedoorL_LHS", "DAM_armL_frmLT", "DAM_armR_frmBK", "DAM_armR_frmFT", "DAM_armR_frmRT", "DAM_LegL_frmBK", "SHOT_leftP", "SHOT_partial", "SHOT_partial_B", "SHOT_rightP", "Shove_Partial", "Smoke_in_car", "sprint_civi", "sprint_panic", "Sprint_Wuzi", "swat_run", "Swim_Tread", "Tap_hand", "Tap_handP", "turn_180", "Turn_L", "Turn_R", "WEAPON_crouch", "XPRESSscratch" } } addEventHandler("onClientResourceStart", resourceRoot, function() animTable.ifp["block"] = "ped" animTable.ifp["ifp"] = engineLoadIFP("ped.ifp", animTable.ifp["block"]) for _, v in ipairs(animTable.anims) do engineReplaceAnimation(localPlayer, "ped", v, animTable.ifp["block"], v) end end )
  13. lol ı am not lying it is not working maybe problem is my 'vehicle shop resource'
  14. I want to add name of the 'car owner' on the car.ı maked some codes but not working.my car shop resource owner element data is "owner" but still ı cant add dx tag name on the car.can someone help me ? maybe ı cant see my mistakes. local fontP = dxCreateFont( "normal.ttf", 20 ) local SX,SY = guiGetScreenSize() local px,py = 1366,768 local sx,sy = (SX/px), (SY/py) function drawCarTags() for k, veh in pairs(getElementsByType("vehicle", resourceRoot, true)) do local cx, cy, cz, lx, ly, lz = getCameraMatrix() local px, py, pz = getElementPosition(veh) local dist = getDistanceBetweenPoints3D(cx, cy, cz, px, py, pz) if dist < 60 then if( isLineOfSightClear(cx, cy, cz, px, py, pz, true, false, false) ) then local x, y = getScreenFromWorldPosition (px, py, pz + 1) if(x and y) then local owner = getElementData(veh, "owner") if (owner and getPlayerFromName(owner)) then local h = dxGetFontHeight(sy*0.8, fontP) local w = dxGetTextWidth(owner, sy*0.8, fontP) dxDrawText(owner, x - w / 2, y + h*-2, w, h, tocolor(getPlayerNametagColor(getPlayerFromName(owner))), sy*0.8, fontP) end end end end end end addEventHandler("onClientRender", root, drawCarTags)
  15. Yes IIYAMA. Really its likr a bug.friendyfire is saved.i did restart server and again teams cant kill each other.
  16. Hello Guys ı was enabled friendlyfire for some tests but now ı deleted friendlyfire.But still teams cant kill each other.and ı maked some codes but still teams cant kill each other.what can ı do for this ? local allTeams = getElementsByType ( "team" ) for index, theTeam in ipairs(allTeams) do if ( getTeamFriendlyFire ( theTeam ) == true ) then setTeamFriendlyFire ( theTeam, false ) end end
  17. ı want add specific panel for Hells Angels group.but still everyone can open with /grouppanel command.what s my wrong friends ? client : function OpenWin() if guiGetVisible ( GUIEditor.window[1] ) then guiSetVisible ( GUIEditor.window[1], false ) showCursor(false) guiSetInputEnabled(false) else guiSetVisible ( GUIEditor.window[1], true ) showCursor(true) guiSetInputEnabled(true) end end addCommandHandler('grouppanel', OpenWin) addEvent( "onGreet", true ) addEventHandler( "onGreet", localPlayer, OpenWin ) server : function panel(source) if getElementData(source, "Group") == "HellsAngels" then triggerClientEvent ( source, "onGreet", source ) end end addEventHandler ( "onResourceStart", root, panel )
  18. Hi Community My codes make sense.when zombies hit the zone they dying but zombies still spawning and 2 seconds later dying in anti zombie zone.ı stuck to it!ı have seen some topics like this,but problems are not solved. what can ı do for disable zombie spawn in these zone ? someone help me ? ı took screenshot :https://pasteboard.co/I5Owj3n.png zones = { { 1102.84851, -2076.73242, 50.39820, 140.31323242188, 86.654296875, 38.136251831055}, { 93.98439, 1797.64380, 10.64063, 183.03248596191, 143.92370605469, 25.82357254028}, {253.78212, 660.28491, -100.31984, 553.6088104248, 391.908203125, 132.129859352112}, {-2099.59644, -282.63025, 33.46355, 89.87451171875, 206.22969055176, 34.355757141113}, } for i,v in pairs(zones) do local x, y, z, width, height, depth = unpack(zones[i]) col = createColCuboid ( x, y, z, width, height, depth) setElementData(col, "zombieProof", true) end addEventHandler("onColShapeHit", root, function(hiter) if getElementData(source,"zombieProof") == true and getElementType(hiter) == "ped" then if getElementData(hiter, "zombie") then destroyElement(hiter) end end end)
  19. its working with these codes but disabling all damage types.ı dont know what must ı do for just PvP damages.nvm topic can close 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)
×
×
  • Create New...