0 Üye ve 1 Ziyaretçi konuyu incelemekte.
addEventHandler("onResourceStart", resourceRoot, function() for i, player in ipairs(getElementsByType("player")) do if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(player)), aclGetGroup("GoldVıp")) then setElementData(player,"GoldVıp",true) end endend)addEventHandler("onPlayerLogin", root, function() if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("GoldVıp")) then setElementData(source,"GoldVıp",true) endend)
local imgW = 135local imgH = 75function adminLogo() for i, player in ipairs(getElementsByType("player")) do if getElementData(player,"GoldVıp") then if player ~= localPlayer then local cX, cY, cZ = getCameraMatrix() local hX, hY, hZ = getPedBonePosition(player, 8) local hZ = hZ + 0.7 local pX,pY,pZ = getPedBonePosition(localPlayer, 8) local pZ = pZ + 0.7 if getScreenFromWorldPosition(hX, hY, hZ) and isLineOfSightClear(cX,cY,cZ, pX,pY,pZ) then local sX, sY, sD = getScreenFromWorldPosition(hX, hY, hZ) local relative = (50 - sD) / 50 if relative > 0 then local iW = imgW * relative local iH = imgH * relative local iX = sX - (iW / 2) local iY = sY - (iH / 2) dxDrawImage(iX, iY, iW, iH, "logo.png") end end end end endendaddEventHandler("onClientRender", root, adminLogo)