Jump to content

Cavorta

Members
  • Posts

    33
  • Joined

  • Last visited

Everything posted by Cavorta

  1. Zango's code is the producer's script translated into numbers. Please remember to give authority to the acl in the admin script to work! Add to that the ACL admin group: https://community.multitheftauto.com/index.php?p= ... ls&id=2567
  2. Yes yes.. Sorry . I edit _common.lua. Thanks for code.
  3. Code is: function dxDrawColorText(str, ax, ay, bx, by, color, scale, font) local pat = "(.-)#(%x%x%x%x%x%x)" local s, e, cap, col = str:find(pat, 1) local last = 1 while s do if s ~= 1 or cap ~= "" then local w = dxGetTextWidth(cap, scale, font) dxDrawText(cap, ax, ay, ax + w, by, color, scale, font) ax = ax + w color = tocolor(tonumber("0x"..string.sub(col, 1, 2)), tonumber("0x"..string.sub(col, 3, 4)), tonumber("0x"..string.sub(col, 5, 6)), 255) end last = e+1 s, e, cap, col = str:find(pat, last) end if last <= #str then cap = str:sub(last) local w = dxGetTextWidth(cap, scale, font) dxDrawText(cap, ax, ay, ax + w, by, color, scale, font) end end addEventHandler ( "onClientRender", g_Root, function() -- Hideous quick fix -- for i,player in ipairs(getElementsByType ("player")) do if player ~= g_Me then setPlayerNametagShowing ( player, false ) if not nametags[player] then nametag.create ( player ) end end end if bHideNametags then return end local x,y,z = getCameraMatrix() for player in pairs(nametags) do while true do if not isPedInVehicle(player) or isPlayerDead(player) then break end local vehicle = getPedOccupiedVehicle(player) local px,py,pz = getElementPosition ( vehicle ) local pdistance = getDistanceBetweenPoints3D ( x,y,z,px,py,pz ) if pdistance <= NAMETAG_DISTANCE then --Get screenposition local sx,sy = getScreenFromWorldPosition ( px, py, pz+0.95, 0.06 ) if not sx or not sy then break end --Calculate our components local scale = 1/(NAMETAG_SCALE * (pdistance / NAMETAG_DISTANCE)) local alpha = ((pdistance - NAMETAG_ALPHA_DISTANCE) / NAMETAG_ALPHA_DIFF) alpha = (alpha < 0) and NAMETAG_ALPHA or NAMETAG_ALPHA-(alpha*NAMETAG_ALPHA) scale = math.evalCurve(maxScaleCurve,scale) local textscale = math.evalCurve(textScaleCurve,scale) local textalpha = math.evalCurve(textAlphaCurve,alpha) local outlineThickness = NAMETAG_OUTLINE_THICKNESS*(scale) --Draw our text local r,g,b = getPlayerNametagColor (player) local team = getPlayerTeam(player) if team then r,g,b = getTeamColor(team) end local offset = (scale) * NAMETAG_TEXT_BAR_SPACE/2 dxDrawColorText ( getPlayerName(player), sx, sy - offset, sx, sy - offset, tocolor(r,g,b,textalpha), textscale*NAMETAG_TEXTSIZE, "default-bold", "center", "bottom", false, false, false ) --We draw three parts to make the healthbar. First the outline/background local drawX = sx - NAMETAG_WIDTH*scale/2 drawY = sy + offset local width,height = NAMETAG_WIDTH*scale, NAMETAG_HEIGHT*scale dxDrawRectangle ( drawX, drawY, width, height, tocolor(0,0,0,alpha) ) --Next the inner background local health = getElementHealth(vehicle) health = math.max(health - 250, 0)/750 local p = -510*(health^2) local r,g = math.max(math.min(p + 255*health + 255, 255), 0), math.max(math.min(p + 765*health, 255), 0) dxDrawRectangle ( drawX + outlineThickness, drawY + outlineThickness, width - outlineThickness*2, height - outlineThickness*2, tocolor(r,g,0,0.4*alpha) ) --Finally, the actual health dxDrawRectangle ( drawX + outlineThickness, drawY + outlineThickness, health*(width - outlineThickness*2), height - outlineThickness*2, tocolor(r,g,0,alpha) ) end break end end end ) Image here:
  4. Script is not running
  5. You have not understood me. EPG server gonna like it. As an example, the name of Cavo # FF0000rta dxDrawText Cavorta function as a write.
  6. So how did the EPG? Do you have a knowledge?
  7. Are you a writer export function for RGB to HEX? EDİT: For example, the player's name Cavo # 990000RTA Would you show it as RGB? As in the EPG server.
  8. Color codes to people on the server how the R, G, B, as you project? Which functions are used?
  9. marker = createMarker (-2032.97,-115.76,1036.17, "cylinder", 1.5, 255,255,255,255,getRootElement()) setElementInterior (marker, 3) ???
  10. marker = createMarker (posX,posY,posZ, "cylinder", 1.5, 255,255,255,255,getRootElement()) setElementInterior (marker, 3)
  11. I create a marker in the interior. But "setElementInterior" function does not work. What could be the reason for this?
  12. dzek (varez) anyone mirror it ?
  13. OK. Would you link to the new game mode?
  14. BETA-1 link, however, did. Why do not you link to Beta-2?
  15. Beta 2 of the Do not have a link?
  16. Bu anlatımımda RPG de olduğu gibi bir alan belirliyoruz ve o alana giriş-çıkış yaptıımızda ChatBox da mesaj bildiriliyor.Ayrıca bu script sadece PLAY sunucuları içindir. Hemen anlatıma geçelim; Kodu uzun olduğundan sitenin görünümünü etkilememesi açısından resourceyi direk upload ettim. Buraya Tıklayarak Resource'ni İndirebilirsin Area alanını değiştirmek için zone.lua dosyasını Rar dan çıkarın ve NotePad ile açın,üstte bulunan değerleri istediğiniz areanın konum değerleriyle değiştirerek area nızı belirleyebilirsiniz.(Scriptte area turkuaz reng ile radarda işaretlenmiştir.)Ardından mtaserv.conf dosyasını WordPad ile açıyorsunuz ve alttaki satırlara <resource src="zone" startup="1" protected="0" /> Satırını ekliyoruz ve kaydedip çıkıyoruz. Dikkat! Lütfen bu işleri yaparken sunucunuzu kapalı tutunuz! Herkeze başarılar.%100 By Cavorta|TR
  17. İlk Önce music.lua adında bir script acalım ve ardından içine su yazıları atalım Kod: function onResourceStart() local sound = playSound("sarkiadi.mp3",true) end addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), onResourceStart) local sound = playSound("sarkiadi.mp3",true) da sarkiadi yazan yeri kendi sarkinizin ismi ile degistirin. Script'i kaydedin ve kapatın simdi meta.xml adında bir dosya oluşturun uzantısı .xml olsun notepad ile acıp su satırları koyun Kod: <meta> <info type="script" version="1.0.0" /> <script src="music.lua" type="client" /> <file src="sarkiadi.mp3" /> <settings> <setting name="#minplayers" value="[ 0 ]" /> <setting name="#maxplayers" value="[ 128 ]" /> <setting name="#gravity" value="[ 0.008000 ]" /> <setting name="#weather" value="[ 8 ]" /> <setting name="#time" value="0:0" /> <setting name="#locked_time" value="[ false ]" /> <setting name="#waveheight" value="[ 0 ]" /> <setting name="#gamespeed" value="[ 1 ]" /> </settings> </meta> yazan yeri kendi müziğin ismi ile degistirmeniz gerekmektedir. Not : Hem lua scriptinde hem meta.xml dosyasındada müzik adının aynı olması gerekmektedir aksi halde calışmaz. meta.xml yi kaydettikten sonra hepsini .zip formatında sıkıştırıp resource'ların oldugu yere atıyoruz. Alıntı : gtaturk.com
  18. Bu konumda ise yine bizzat kendimin düzenleyip sunduğum anti sistemini göreceksiniz.Açıklama ; * Anti Silah Sistemi ; Anti Silah Sistemi-Tıkla İndir Bu sistem race serverlerinde pek fazla tavsiye edilmez.Ancak freeroam ve RolePlay sunucunuz varsa belirtilen ağır silahları alınca admine mesaj gider.İstenirse hem admine mesaj gider hemde oyuncu kicklenir.Kick leme için. Acl.xml > Consol satırına yazarak oyuncunun otomatik kicklenmesi sağlanır. * Anti Flood Sistemi ; Anti Flood - Tıkla İndir Bu sistemde seunucnuzda durmadan ve gereksiz konuşanları admine bildirir.Bunun oto-kick sistemi var mı bilmiyorum ama istenirse Acl.xml de admin yada consol satırına yine aynı kodu ekleyerek (ismini: anti_flood yapın.) deniyebilirsiniz. * Anti Hile Sistemi ; Anti Hile Sistemi - Tıkla İndir Bu sistemdede sobeit v.s gibi hile açanları değil F12 de kapalı bile olsa bulmaya yarayan bir sistemdir. Açıklanacak pek birşey yok ama yinede: MTA:SanAndreas klasörüne girin server > mods > deatchmatch > resources klasörüne atın. Herkeze Başarılar. By Cavorta|TR
  19. But not full turkish server. Gradually, will be Turkish. Now I'm writing about it will release a mod is completely Turkish.
  20. Yes indeed Turkish. I hope enjoy. :D
  21. Bu scriptimde ise meslekleri sizlerle paylaşacağım işte meslekler:[Race Modu İçin Değildir.] [li]Tamirci[/li] [li]Taxici[/li] [li]Ozel Sofor[/li] [li]Hastane Görevlisi[/li] [li]Tır Şöförü[/li] [li]Polis[/li] [li]Yunus(POLİS)[/li] [li]Mafya[/li] [li]Pezevenk[/li] [li]Swat Birliği[/li] [li]Asker[/li] Mesleklere başlarına " / " koyarak örneğin asker olmak isteyen kişi /asker yazarak olabilir. Meslekleri İndir Betav1'dir. Beta v2: *Türkiye Mapı ile birlikte verilecek * Spawn Yerlei Koyulcak. Görüntüler[v2 İçin]: Oyuncu Hangi Mesleğe Girdiyse ChatBoxda mesaj çıkıcak. Turkey Map Pezevenk Mağarasında Görünüm1: Turkey Map Pezevenk Mağara Dışı: Başarılar.
  22. Communitys cloed . change nick? or re-upload?
  23. Forums closed. Change link?
×
×
  • Create New...