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: prawka.
1. Zabieranie prawka.
Witam ,mam pewien problem. Idzie jako? zrobic, ?e zabiera na jaki? czas, bo zabiera na zawsze?

Kod:
   addCommandHandler ( "zp.b", function ( plr, cmd, gracz, czas, rodzaj, ... )
    if 
getElementData(plr, "ekipa") == 5 then
    
if not gracz and not rodzaj and not czas and not ... or not gracz == nil or rodzaj == nil or czas == nil then
    
return end
    player 
= getPlayerFromName(gracz)
    
konto = getPlayerAccount ( player ) 
    if 
not player then return end
    txt 
= table.concat ( {...}, " " )
    if 
rodzaj == "m" then
        rodzaj 
= "minut"
        
czas1 = czas * 60
    
elseif rodzaj == "s" then
        rodzaj 
= "sekund"
        
czas1 = czas * 1
    
elseif rodzaj == "d" then
        rodzaj 
= "dni"
        
czas1 = czas * 360
    
elseif rodzaj == "h" then
        rodzaj 
= "godzin"
        
czas1 = czas * 60 * 60
    end
    
if not getAccountData(konto, "prawojazdy") then
    
else
    
setAccountData(konto, "prawojazdy", false)
    
setAccountData(konto, "prawojazdy", false, czas1)
end
end
end
)