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: leveli
1. Proszę o pomoc z zmianą leveli
Gdy mam wymagan? ile?? exp levele si? nie zmieniaj?.
Kod:
[lua]local lvl =
{
50, -- 1
500, -- 2
1000, -- 3
2000, -- 4
3000, -- 5
4500, -- 6
6000, -- 7
8000, -- 8
9500, -- 9
11000, -- 10
13000, -- 11
15000, -- 12
17000, -- 13
18000, -- 14
20000, -- 15
22500, -- 16
25000, -- 17
27500, -- 18
30000, -- 19
35000, -- 20
50000, -- 21
60000, -- 22
70000, -- 23
80000, -- 24
100000 -- 25
}

addEvent ( "onZombieWasted", true )
addEventHandler ( "onZombieWasted", root,
function ( killer )
addPlayerZombieKills ( killer )
end
)

function addPlayerZombieKills ( killer )
local account = getPlayerAccount ( killer )
if isGuestAccount ( account ) then
return
end

local H = tonumber ( getElementData ( killer, "Exp" ) ) or 0
local L = tonumber ( getElementData ( killer, "Level" ) ) or 0
setElementData ( killer, "Exp", tonumber ( H ) + 1 )
local H = ( H + 5 )
local L = ( L + 1 )
if ( L <= #lvl ) and ( lvl [ L ] ) and ( tonumber ( H ) >= tonumber ( lvl [ L ] ) ) then
setElementData ( killer, "Level", L )
triggerClientEvent(killer, "CreateBox", getRootElement(), "info", "Osi?gn??e? nast?pny level! Gratulacje!")
end
end


function addPlayerKills ( totalAmmo, killer, killerWeapon, bodypart )
if isElement(killer) and g...
2. [INNE] System leveli
Witam was.
Chcia?bym prosi? was o pomoc.
Wi?c chcia?bym doda? do swojej mapy system poziom?w.
Nie chce ?adnych td.
Do td sobie sam dodam chce ?eby?cie mi powiedzieli jak mam zacz?? to robi?.
?eby by?o tak:
Level: x/10
Exp: 0/100
I jak sie wbije 100 expa awans na wy?szy poziom.