Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.
GTAONLINE.PL
Tematy otagowane jako: tabie
1. nie zmienia sie kolor na tabie
Witam gdy dodaje sobie premium to kolor nicku na tabie sie zmienia a jak dodaje vipa to nie zmienia sie


        local queryA
=string.format("SELECT * FROM pystories_users WHERE id=%d AND premiumdate>NOW() LIMIT 1"getElementData(plr,"player:sid"))
        
local resultA=exports["DB2"]:pobierzWyniki(queryA)
        if (
resultAthen
            setElementData
(plr,"player:premium",true)
            
setElementData(plr,"player:premiumdate",v.premiumdate)
            
setPlayerName(plr,"#ffff00"..getPlayerName(plr))
            
setPlayerNametagColor(plr2552550)
            
setElementData(plr,"premium:level",1)
        else
            
setElementData(plr,"player:premium",false)
        
end
        
-- vip
        local queryA
=string.format("SELECT * FROM pystories_users WHERE id=%d AND premiumplusdate>NOW() LIMIT 1"getElementData(plr,"player:sid"))
        
local resultA=exports["DB2"]:pobierzWyniki(queryA)
        if (
resultAthen
            setElementData
(plr,"player:premiumplus",true)
            
setElementData(plr,"player:premiumdateplus",v.premiumplusdate)
            
setPlayerName(plr,"#ff9500"..getPlayerName(plr))
            
setPlayerNametagColor(plr2551490)
            
setElementData(plr,"premium:level",2)
        else
            
setElementData(plr,"player:premiumplus",false)
        
end
        

2. Levele na tabie
Cze??. Ostatnio pisz? sobie skrypt na levele, ale okaza?o si?, ?e na starcie ju? s? problemy. Chodzi mi o to, ?e jak jaki? gracz osi?gnie np. 300 SRP (bo 100 SRP to 1 lvl) by?o na tabie napisane, ?e ma ten 3 level. Ca?y czas na tabie pokazuje, ?e mam 1 level, a jak dam setElementData(localPlayer, "player:exp", 1000") to od razu znika nawet ten 1 level. Prosz? o szybk? pomoc, poniewa? mam ma?o czasu.

LEVELE:

Kod:


function levele()
if getElementData(localPlayer, "player:srp") > 1725 then
setElementData(localPlayer, "player:lvl", 1000)
end
end


TAB:
Kod:


{ ["name"] = "player:lvl", ["width"] = 50, ["friendlyName"] = "Poziom", ["priority"] = 4 },
3. Sortowanie ID na tabie
Witam ot?? mam kod na scorboarda. Chcia?bym by id sortowa?o si? pokolei 1,2,3,4,5,6,7,8,9,10... itd.
kod
[lua]--[[
Autor: Asperek
Zakaz u?ywania bez zgody autora!
Zakaz udost?pniania bez zgody autora!
]]

--[[
Wszelkie prawa odkupione przez STOPseba!
]]--


local screenW, screenH = guiGetScreenSize()
local dxfont0_CaviarDreams_Bold = dxCreateFont(":guied/fonts/CaviarDreams_Bold.ttf", 30)
local dxfont1_CaviarDreams_Bold = dxCreateFont(":guied/fonts/CaviarDreams_Bold.ttf", 16)
local dxfont2_CaviarDreams_Bold = dxCreateFont(":guied/fonts/CaviarDreams_Bold.ttf", 14)
local dxfont3_CaviarDreams_Bold = dxCreateFont(":guied/fonts/CaviarDreams_Bold.ttf", 11)
local px,sy = guiGetScreenSize()
local px,py = (screenW/1920),(screenH/1080)
local zoom = 1
local fh = 1920
if px < fh then
zoom = math.min(2,fh/px)
end

-- tego nie ruszaj
local k = 1
local n = 19

local score = false

local font = dxCreateFont("font.ttf", 13) or "default-bold"

local ping = {}

local logo = false -- wylaczanie/wlaczanie loga w scoreboardzie

function dxDrawShadowText(text,x,y,w,h,color,size,font,x1,x2)

end

addEventHandler("onClientRender", root, function()
score = getKeyState("tab")
local gracze = getElementsByType("player")
if score ~= true then return end
-- werjsa z logiem
if logo == true then
dxDrawRectangle(screenW * 0.3068, screenH * 0.0370, screen...
4. Ilość osób online na tabie (scorboardzie)
Witam ot??, zrobi mi kto? ?e jak klikn? taba to wy?wietli mi si? ilo?? online? Z g?ry dzi?kuje !

kod
[lua]--[[
Autor: Kubas & Asper
]]

local scoreFunc = {}
local screenW, screenH = guiGetScreenSize()
local gracze = "?"
scoreFunc.page = 1

scoreFunc.onPage = 28

scoreFunc.renderData = {screenW * 0.2723, screenH * 0.1497, screenW * 0.4561, screenH * 0.7005}

function scoreFunc.sort(op1, op2)
if isElement(op1) and isElement(op2) then
return getElementData(op1, "id") < getElementData(op2, "id")
end
end

local czcionka = dxCreateFont(":ogrpg-gui/font.ttf", 10)
if not czcionka then czcionka = "default-bold" end

local czcionka2 = dxCreateFont(":ogrpg-gui/font.ttf", 10)
if not czcionka2 then czcionka2 = "default-bold" end

function scoreFunc.render()
--dxDrawImage(screenW * 0.2533, screenH * 0.0859, screenW * 0.4934, screenH * 0.8294, ":nm-scoreboard/sb.png", 0, 0, 0, tocolor(255, 255, 255, 255), false)
local allPlayers = {}
--table.insert(allPlayers, localPlayer)
for k, v in ipairs(getElementsByType("player")) do
if v ~= localPlayer then
table.insert(allPlayers, v)
end
end
table.sort(allPlayers, scoreFunc.sort)
local _allPlayers = allPlayers
allPlayers = {}
table.insert(allPlayers, localPlayer)
for i = 1, #_allPlayers do
allPlayers[i + 1] = _allPlayers[i]
end
_allPlayers = nil

local i = 1
gracze = #allPlaye...
5. numerki na tabie zamiast kolorów
witam pomo?e mi kto? to naprawi? zamiast koloru przed nickiem pojawia sie litery,cyfry koloru

[spoiler][img]http://s10.ifotos.pl/img/Bez-nazwy_qeswnxx.png[/img][/spoiler]


wie ktos ? tu macie kod


[quote]
local screenW, screenH = guiGetScreenSize()
local sx, sy = guiGetScreenSize()
local w, h=(sx/1680), (sy/1050)

function isMouseIn(psx,psy,pssx,pssy,abx,aby)
if not isCursorShowing() then return end
cx,cy=getCursorPosition()
cx,cy=cx*sx,cy*sy
if cx >= psx and cx <= psx+pssx and cy >= psy and cy <= psy+pssy then
return true,cx,cy
else
return false
end
end

local tabulator = false
local czcionka = dxCreateFont("f.ttf", 13*w)
local czcionka2 = dxCreateFont("f.ttf", 18*w)


local k = 1
local n = 13
local m = 13

if not czcionka then
czcionka = "default"
end

local zakladki = {
id = "ID",
name = "Nazwa",
reputation = "RP",
organization = "Organizacja",
uid = "UID",
ping = "Ping",
faction = "Frakcja",
forum = "mta-storiesrpg.pl"
}

local ss = 1
local tabulator=false
local ping = {}


function sort(op1, op2)
if isElement(op1) and isElement(op2) then
return getElementData(op1, "id") < getElementData(op2, "id")
end
end

function gui()
local players = {}
for i,v in ipairs(getElementsByType("player")) do
table.insert(p...
6. [DM] Uid Na tabie
;( Nie wie Kto co mam Zrobi? ?ebym wiedzia? jakie kto ma uid np. Na tabie ?eby by?o wida? uid co zrobi? naprawade prosz? o pomoc!!
7. [GF] Premium na tabie
Witam, mam pewien problem
staram si? wykona? co? takiego:
Po klikni?ciu TAB wyskakuje lista u?ytkownik?w lecz gracze kt?rzy maj? premium powinni mie? z?oty kolor i tak jest lecz wtedy te? wida? ich na mapie, a w?a?nie temu chce zapobiec.
Jak zrobi? aby gracz nie by? widzialny na mapie, a na TAB'ie jego nick by? z?oty?
Pr?bowa?em wszystkiego
Moje zastosowania:


Kod:



1.

if(PlayerInfo[playerid][pPremium]>1)
{
SetPlayerMarkerForPlayer(playerid, KOLOR_ZOLTY);
}

2.

if(PlayerInfo[playerid][pPremium]>1)
{
SetPlayerColor(playerid,ZOLTY);
SetPlayerColor(playerid,KOLOR_NIEWIDZIALNY);
}

3.

if(PlayerInfo[playerid][pPremium]>1)
{
SetPlayerColor(playerid,ZOLTY);
}


Nic z tego. daje :piwo: