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: lem
1. Prob lem
addEvent("wystawM"true)
addEventHandler("wystawM"getRootElement(),
function (
mandatscoregracz)
    
local daj getPlayerFromName(gracz)
    if (
dajthen
        local money 
getPlayerMoney(daj)
        
local pkt getElementData(daj,"Score")
        if (
tonumber(money) < tonumber(mandat)) then
        
if (tonumber(pkt) < tonumber(score)) then
            outputChatBox
("Dany gracz posiada tylko #FF0000"..money.."$,#FFFFFF. Nie starczy mu na mandat!"getRootElement(), 255255255true)
            
outputChatBox("Dany gracz posiada tylko #FF0000"..pkt.."$,#FFFFFF. Nie starczy mu na mandat!"getRootElement(), 255255255true)
        else
            
takePlayerMoney(dajmandat)
            
setElementData(daj,pkt,true)
            
outputChatBox("Wystawi?e? "..gracz.." mandat w wysoko?ci #00FF00"..mandat.."$#FFFFFF."getRootElement(), 255255255true)
            
outputChatBox("Otrzyma?e? mandat w wysoko?ci #00FF00"..mandat.."$#FFFFFF."daj255255255true)
            
triggerClientEvent("closeM"getRootElement())
        
end
        end
    end
end
)


b??d linijki :
if (tonumber(pkt) < tonumber(score)) then