Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.

Wysłany: 2016-08-04, 16:42


=DC=







Wiek: 35
Na forum: 3944 dni
Posty: 223
Nick w MP: =DC=

Piwa: 72

Respekt: 150
Respekt: 150Respekt: 150

Ja zapomnia?em przecinka teraz powinno ?miga? ju?:
addEventHandler("onPlayerLogin"root, function(thePlayer)
local konto getAccountName getPlayerAccount thePlayer ) )
if isObjectInACLGroup ("user."..kontoaclGetGroup "Premium" ) ) then
setElementData(thePlayer"gracz_premium"1)
outputChatBox "#FFFF00*Posiadasz aktywne konta premium."thePlayer255255255true )
end
end)


Podpis

Witaj
, jeśli Ci pomogłem postaw mi :piwo: lub R* Dzięki!

Postaw piwo autorowi tego posta
 

 
Wysłany: 2016-08-04, 17:21


STOPseba

Emeryt na scenie MTA






Wiek: 25
Na forum: 3771 dni
Posty: 448
Nick w MP: STOPseba

Piwa: 5014

Respekt: 576,3
Respekt: 576,3

a tak dla pewno?ci tak to ma by? bo zielono mi xd
function premium thePlayer_, ... )
    local message table.concat ( { ... }, " " )
    if ( isPlayerOnGroup thePlayer ) ) then
        for _player in ipairs getElementsByType "player" ) ) do
            if ( isPlayerOnGroup player ) ) then
              outputChatBox "#FFFF00[PREMIUM]#FFFFFF".. getPlayerName thePlayer ) ..": #FFFF00".. messageplayer255255255true )
            end
        end
    else
        outputChatBox "#FFFF00*Nie posiadasz aktywnego konta premium."thePlayer255255255true )
    end
end
addCommandHandler "v"premium )
 
function isPlayerOnGroup thePlayer )
    local account getPlayerAccount thePlayer )
    local inGroup false
    for _group in ipairs ( { "Premium" } ) do  
        if isObjectInACLGroup "user.".. getAccountName account ), aclGetGroup group ) )   then
            inGroup true
            break
        end
    end
 
    return inGroup
end

addEventHandler("onPlayerLogin"root, function(thePlayer)
local konto getAccountName getPlayerAccount thePlayer ) )
if isObjectInACLGroup ("user."..kontoaclGetGroup "Premium" ) ) then
setElementData(thePlayer"gracz_premium"1)
outputChatBox "#FFFF00*Posiadasz aktywne konta premium."thePlayer255255255true )
end
end)

sorry za g?upie pytanie xd

Podpis



Kontakt
Discord: STOPseba#7603
STOPseba na fejsie
Messenger


Postaw piwo autorowi tego posta
 

 
Wysłany: 2016-08-04, 17:23


=DC=







Wiek: 35
Na forum: 3944 dni
Posty: 223
Nick w MP: =DC=

Piwa: 72

Respekt: 150
Respekt: 150Respekt: 150

To wszystko jest git tak ma by? :P Dzia?a ci ju? przebieralnia ?

Podpis

Witaj
, jeśli Ci pomogłem postaw mi :piwo: lub R* Dzięki!

Postaw piwo autorowi tego posta
 

 
Wysłany: 2016-08-04, 17:31


STOPseba

Emeryt na scenie MTA






Wiek: 25
Na forum: 3771 dni
Posty: 448
Nick w MP: STOPseba

Piwa: 5014

Respekt: 576,3
Respekt: 576,3

nie

[ Dodano: 2016-08-04, 17:33 ]
nawet niema info Posiadasz aktywne konta premium

Podpis



Kontakt
Discord: STOPseba#7603
STOPseba na fejsie
Messenger


Postaw piwo autorowi tego posta
 

 
Wysłany: 2016-08-04, 17:44


marcin778

Krytyk serwerów MTA






Wiek: 24
Na forum: 4149 dni
Posty: 2268
Nick w MP: Marcineg

Piwa: 4662

Respekt: 1436,8
Respekt: 1436,8

addEventHandler("onPlayerLogin"root, function(thePlayer)
local konto getAccountName getPlayerAccount thePlayer ) )
if isObjectInACLGroup ("user."..kontoaclGetGroup "Premium" ) ) then
setElementData(thePlayer"gracz_premium"1)
if getElementData(thePlayer"gracz_premium") == "1" then
outputChatBox "#FFFF00*Posiadasz aktywne konta premium."thePlayer255255255true )
end
end
end)


Podpis
Moje prace: https://www.youtube.com/c...MuaWGHPp1mhlGnw

-- obecnie
-- obecnie
-- dawniej
-- dawniej
-- dawniej
Postaw piwo autorowi tego posta
 

 
Wysłany: 2016-08-04, 17:51


=DC=







Wiek: 35
Na forum: 3944 dni
Posty: 223
Nick w MP: =DC=

Piwa: 72

Respekt: 150
Respekt: 150Respekt: 150

Jak nie zadzia?a to co marcin napisa? to poka? ss ?e jeste? dodany do acl bo nie chce mi si? wierzy?, ?e nie dzia?a :D

Podpis

Witaj
, jeśli Ci pomogłem postaw mi :piwo: lub R* Dzięki!

Postaw piwo autorowi tego posta
 

 
Wysłany: 2016-08-04, 17:59


STOPseba

Emeryt na scenie MTA






Wiek: 25
Na forum: 3771 dni
Posty: 448
Nick w MP: STOPseba

Piwa: 5014

Respekt: 576,3
Respekt: 576,3

Dalej nic
ss:

function premium thePlayer_, ... )
    local message table.concat ( { ... }, " " )
    if ( isPlayerOnGroup thePlayer ) ) then
        for _player in ipairs getElementsByType "player" ) ) do
            if ( isPlayerOnGroup player ) ) then
              outputChatBox "#FFFF00[PREMIUM]#FFFFFF".. getPlayerName thePlayer ) ..": #FFFF00".. messageplayer255255255true )
            end
        end
    else
        outputChatBox "#FFFF00*Nie posiadasz aktywnego konta premium."thePlayer255255255true )
    end
end
addCommandHandler "v"premium )
 
function isPlayerOnGroup thePlayer )
    local account getPlayerAccount thePlayer )
    local inGroup false
    for _group in ipairs ( { "Premium" } ) do  
        if isObjectInACLGroup "user.".. getAccountName account ), aclGetGroup group ) )   then
            inGroup true
            break
        end
    end
 
    return inGroup
end

addEventHandler("onPlayerLogin"root, function(thePlayer)
local konto getAccountName getPlayerAccount thePlayer ) )
if isObjectInACLGroup ("user."..kontoaclGetGroup "Premium" ) ) then
setElementData(thePlayer"gracz_premium"1)
if getElementData(thePlayer"gracz_premium") == "1" then
outputChatBox "#FFFF00*Posiadasz aktywne konta premium."thePlayer255255255true )
end
end
end)


Podpis



Kontakt
Discord: STOPseba#7603
STOPseba na fejsie
Messenger


Postaw piwo autorowi tego posta
 

 
Wysłany: 2016-08-04, 18:03


=DC=







Wiek: 35
Na forum: 3944 dni
Posty: 223
Nick w MP: =DC=

Piwa: 72

Respekt: 150
Respekt: 150Respekt: 150

Plik przebieralnia zamie? na to:
local sx,sy guiGetScreenSize()

-- Wyb?r skina
local m3 createMarker(204.63,-159.53,1000.52-1"cylinder"223,214,255,140)
setElementInterior(m314)
setElementDimension(m35)
local ped createPed(80204.37,-157.54,1000.52180)
setElementInterior(ped14)
setElementDimension(ped5)

-- Ustawienia
local skiny_premium = {18,80,87,15,7,307,29}
local skiny_meskie = {0,1,6,19,20,21,22,23,24,25,28,32,33,34,36,43,44,45,46,47,49,52,58,59,61,66,72,78,79,81,82,83,84,95,96,99,100,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,120,122,123,124,133,134,136,137,142,143,144,146,147,155,158,160,163,164,167,170,173,174,175,176,177,179,184,185,186,187,188,189,202,203,204,210,217,220,223,228,229,236,240,241,242,247,248,249,250,252,253,255,260,262,264,269,270,271,272,290,291,292,293,294,295,296,297,299,300,303,306,308,311}
local skiny_kobiece = {12,13,31,38,39,40,41,53,55,88,91,93,135,138,139,140,145,148,150,169,192,193,197,198,201,205,211,216,219,233}

-- GUI
local sp = {}
sp.pr_okno guiCreateWindow(990/1280*sx200/720*sy270/1280*sx447/720*sy"Wybierz skin"false)
guiWindowSetMovable(sp.pr_oknofalse)
guiWindowSetSizable(sp.pr_oknotrue)
guiSetVisible(sp.pr_oknofalse)
guiSetAlpha(sp.pr_okno0.9)

sp.pr_grid guiCreateGridList(12/1280*sx36/720*sy248/1280*sx389/720*syfalsesp.pr_okno)
guiGridListSetSortingEnabled(sp.pr_gridfalse)
guiGridListAddColumn(sp.pr_grid"SKIN"0.9)

-- Ustawienia2
function przebieralniaStart()
    guiGridListClear(sp.pr_grid)

    local row guiGridListAddRow(sp.pr_grid)
    guiGridListSetItemText(sp.pr_gridrow1"Skiny m?skie"truefalse)
    for i,v in ipairs(skiny_meskie) do
        local row guiGridListAddRow(sp.pr_grid)
        guiGridListSetItemText(sp.pr_gridrow1vfalsefalse)
    end

    local row guiGridListAddRow(sp.pr_grid)
    guiGridListSetItemText(sp.pr_gridrow1"Skiny kobiece"truefalse)
    for i,v in ipairs(skiny_kobiece) do
        local row guiGridListAddRow(sp.pr_grid)
        guiGridListSetItemText(sp.pr_gridrow1vfalsefalse)
    end
    
    local row guiGridListAddRow(sp.pr_grid)
    guiGridListSetItemText(sp.pr_gridrow1"Skiny premium"truefalse)
    for i,v in ipairs(skiny_premium) do
        local row guiGridListAddRow(sp.pr_grid)
        guiGridListSetItemText(sp.pr_gridrow1vfalsefalse)
        guiGridListSetItemData(sp.pr_gridrow1"gracz_premium")
        guiGridListSetItemColor(sp.pr_gridrow12552550)
    end
end

-- Sprawdzanie
addEventHandler("onClientGUIClick"sp.pr_grid, function()
    local selectedRowselectedCol guiGridListGetSelectedItem(sp.pr_grid)
    if not selectedRow or selectedCol ~= 1 then return end
    local premium guiGridListGetItemData(sp.pr_gridselectedRowselectedCol)
    if premium then
        if getElementData(localPlayer"gracz_premium") ~= 1 then
            outputChatBox("* Ten skin jest dla graczy PREMIUM.")
            return
        end
    end
    local model guiGridListGetItemText(sp.pr_gridselectedRowselectedCol)
    if not model then return outputChatBox("* Nie pobrano ID skina!",255,0,0end
    triggerServerEvent("changeSkin"localPlayertonumber(model))
end)

-- Ustawienia 2
addEventHandler("onClientMarkerHit"m3, function(el,md)
    if el ~= localPlayer then return end
    if guiGetVisible(sp.pr_okno) == false then
        --[[if getPlayerName(el) ~= "Split" then
            outputChatBox("* Przebieralnia w trakcie poprawek"el)
            return
        end]]
        przebieralniaStart()
        showCursor(truefalse)
        guiSetVisible(sp.pr_oknotrue)
    end
end)

-- Ustawienia 3
addEventHandler("onClientMarkerLeave"m3, function(elmd)
    if el ~= localPlayer then return end
    if guiGetVisible(sp.pr_okno) == true then
        showCursor(false)
        guiSetVisible(sp.pr_oknofalse)
    end
end)


[ Dodano: 2016-08-04, 18:04 ]
Co? sie pokazuje w db3? ( /debugscript 3 )

Podpis

Witaj
, jeśli Ci pomogłem postaw mi :piwo: lub R* Dzięki!

Postaw piwo autorowi tego posta
 

 
Wysłany: 2016-08-04, 18:13


STOPseba

Emeryt na scenie MTA






Wiek: 25
Na forum: 3771 dni
Posty: 448
Nick w MP: STOPseba

Piwa: 5014

Respekt: 576,3
Respekt: 576,3

Dalej nie dzia?a b??d?w 0

Podpis



Kontakt
Discord: STOPseba#7603
STOPseba na fejsie
Messenger


Postaw piwo autorowi tego posta
 

 
Wysłany: 2016-08-04, 18:37


=DC=







Wiek: 35
Na forum: 3944 dni
Posty: 223
Nick w MP: =DC=

Piwa: 72

Respekt: 150
Respekt: 150Respekt: 150

Zaraz wgram sobie to na lokalny serwerek i ci naprawi? :)

[ Dodano: 2016-08-04, 18:52 ]
Naprawi?em i dzia?a - stestowane na loklanym :D
http://www103.zippyshare.com/v/tuqWDDum/file.html

Usu? ca?y tamten skrypt i wgraj to z linku :)

Podpis

Witaj
, jeśli Ci pomogłem postaw mi :piwo: lub R* Dzięki!

Postaw piwo autorowi tego posta
 

 
Wysłany: 2016-08-04, 19:04


STOPseba

Emeryt na scenie MTA






Wiek: 25
Na forum: 3771 dni
Posty: 448
Nick w MP: STOPseba

Piwa: 5014

Respekt: 576,3
Respekt: 576,3

Dobra dzia?a Wielkie dzi?ki za pomoc ka?dy dosta? :piwo:

Podpis



Kontakt
Discord: STOPseba#7603
STOPseba na fejsie
Messenger


Postaw piwo autorowi tego posta
 

 
Tagi: premium
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » LUA » Premium Ten temat jest zablokowany bez możliwości zmiany postów lub pisania odpowiedzi

Nie możesz pisać nowych tematów
Nie możesz odpowiadać w tematach
Nie możesz zmieniać swoich postów
Nie możesz usuwać swoich postów
Nie możesz głosować w ankietach
Dodaj temat do Ulubionych
Wersja do druku