0 Üye ve 1 Ziyaretçi konuyu incelemekte.
triggerServerEvent("event-adi",localPlayer)
addEventHandler("onPlayerChat",root,function(msg) cancelEvent() local pr,pg,pb = getPlayerNametagColor(source) outputChatBox(RGBToHex(pr,pg,pb)..tag-degiskeni..getPlayerName(source).."#FFFFFF: "..msg,root,255,255,255,true)end)
addEventHandler("onClientGUIClick",root,function() if source == buton-degiskeni then triggerServerEvent("tag_ver",localPlayer,"[Sıradan Oyuncu]") endend)
local taglar = {}addEvent("tag_ver",true)addEventHandler("tag_ver",root,function(tag) taglar[source] = tagend)addEventHandler("onPlayerChat",root,function(msg) cancelEvent() if taglar[source] then local pr,pg,pb = getPlayerNametagColor(source) outputChatBox(RGBToHex(pr,pg,pb)..taglar[source].." "..getPlayerName(source).."#FFFFFF: "..msg,root,255,255,255,true) else outputChatBox(RGBToHex(pr,pg,pb)..getPlayerName(source).."#FFFFFF: "..msg,root,255,255,255,true) endend)
Adamın Üzerinde Tag Göstercek Mesaj Birleştirildi: 25 Mart 2017, 17:46:48Yani Hem Chatboxda Göstercek Bide Adamın Üzerinde Yazcak Tagı
local tablo = {}_tagVerisiAdi = "TAG";_tagVerisiAl = getElementData;_YerelOyuncu = localPlayer;_komutEkle = addCommandHandler;_eventCalistir = addEventHandler;_root = getRootElement();_komut = "tagver";_oyuncuIsimRengi = getPlayerNametagColor;function tablo._tagAl(cmd,tag) _tag = tag; _tostring = tostring; triggerServerEvent("tag_ver",_YerelOyuncu, _YerelOyuncu,"[".._tostring(_tag).."]");end_komutEkle(_komut, tablo._tagAl)function tablo._TagYazisi() for k,_v in ipairs(getElementsByType("player")) do if _v == _YerelOyuncu then cancelEvent() else local _r,_g,_b = _oyuncuIsimRengi(_YerelOyuncu); _dxDrawText(_v,_tagVerisiAl(_v, _tagVerisiAdi),1,20,_r,_g,_b,255,1,"pricedown") end endend_eventCalistir("onClientRender", _root, tablo._TagYazisi)function _dxDrawText(TheElement,text,height,distance,R,G,B,alpha,size,font,checkBuildings,checkVehicles,checkPeds,checkDummies,seeThroughStuff,ignoreSomeObjectsForCamera,ignoredElement) local x, y, z = getElementPosition(TheElement) local x2, y2, z2 = getElementPosition(localPlayer) local distance = distance or 20 local height = height 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 dxDrawText(text, sx+2, sy+2, sx, sy, tocolor(R or 255, G or 255, B or 255, alpha or 255), (size or 1)-(distanceBetweenPoints / distance), font or "arial", "center", "center") end end endend
local taglar = {}local tablo = {}_tagVerisiVer = setElementData;_tagVerisiAl = getElementData;_bool = true;_mesajVer = outputChatBox;_root = getRootElement();_eventEkle = addEvent;_eventCalistir = addEventHandler;_serverEventi = "tag_ver";_oyuncuKonusmasi = "onPlayerChat";_oyuncuIsimRengi = getPlayerNametagColor;_oyuncuIsimiAl = getPlayerName;_tagVerisiAdi = "TAG";function tablo._tagVerFunc(player, tag) taglar[source] = tag _tagVerisiVer(player, _tagVerisiAdi, taglar[source]);end_eventEkle(_serverEventi, _bool)_eventCalistir(_serverEventi, _root, tablo._tagVerFunc)function tablo._func(msg) _kaynak = source _msg = msg; if taglar[source] then local _r,_g,_b = _oyuncuIsimRengi(_kaynak); _mesajVer(_tagVerisiAl(_kaynak, _tagVerisiAdi).." ".._oyuncuIsimiAl(_kaynak).."#FFFFFF: ".._msg,_root,math.random(0,255),math.random(0,255),math.random(0,255),_bool); else _mesajVer(_oyuncuIsimiAl(_kaynak).."#FFFFFF: ".._msg,_root,_r,_g,_b,true); endend_eventCalistir(_oyuncuKonusmasi, _root, tablo._func)