Witam, mam kod, ?e pojawia mi si? okienko po klikni?ciu F4, jednak po ponownym klikni?ciu pojawia si? ono znowu (skoro nie ma zaprogramowane inaczej to logiczne) i si? buguje. Zamykam je aktualnie przyciskiem, kt?ry sobie zaprogramowa?em na klikni?cie go i zamkni?cie.
Tutaj jest kod, prosze o pomoc aby zrobi? tak, ?e po ponownym klikni?ciu F4 by si? to zamyka?o. D?uba?em ostatnio przy tym z 3-4 miesi?ce temu a zawsze by?em laikiem w LUA.
Wygl?da na to, ?e ostatnie zawirowania na linii wydawca – gracze maj? si? ku ko?cowi.
Niespe?na dwa tygodnie temu firma Take-Two Interactive wymierzy?a swoje dzia?a prosto w scen? moddersk? skupion? wok?? Grand Theft Auto. Pod pretekstem przeciwdzia?ania oszustwom w GTA Online za??dano usuni?cia narz?dzia OpenIV, kt?re umo?liwia?o korzystanie z nieoficjalnych rozszerze? w grze. Jego tw?rcy po otrzymaniu pisma od Take-Two zdecydowali si? usun?? linki do OpenIV w obawie przed konsekwencjami prawnymi z tytu?u praw autorskich. Na odzew graczy nie trzeba by?o d?ugo czeka? i pi?ta ods?ona GTA zosta?a niemal natychmiast zbombardowana fal? negatywnych opinii na Steam. Okazuje si? jednak, ?e po nag?o?nieniu sprawy i rozmowach ze studiem Rockstar Games, Take-Two dokona?o rewizji swojej polityki wobec modder?w. Dozwolone s? wszystkie mody dedykowane rozgrywce solowej, a program OpenIV zosta? zaktualizowany i teraz nie powinien ju? ingerowa? w dzia?anie trybu wieloosobowego w Grand Theft Auto V.
Nie wiadomo co mia?o bezpo?redni wp?yw na zmian? decyzji, ale ca?a sprawa jasno pokazuje, ?e gracze nie pozostaj? oboj?tni na ograniczanie ich mo?liwo?ci.
function nadaj(player) local konto = getAccountName(getPlayerAccount(player))
if isObjectInACLGroup("user."..konto, aclGetGroup("Premium")) then
setElementData(player, "Premium", true) outputChatBox("* Posiadasz aktywne konto premium", player)
else setElementData(player, "Premium", false) end
end
addEventHandler("onPlayerLogin", getRootElement(), nadaj)
Prosz? je?eli kto? mo?e niech poprawi mi kod .
B?de bardzo wdzi?czny .
s-side
[lua]
function marker ()
triggerClientEvent("gui",source,source)
outputChatBox("Chcesz rozpocz?? prac? kliknij rozpocznij !",player)
end
addEventHandler("onMarkerHit", m1, marker)
addEventHandler("onClientGUIClick", b1, function(el, md)
if getElementData(el, "zrespilGracz") then
outputChatBox("praca w trakcie poprawek", el)
return
end
if not md or getElementType(el) ~= "player" or getPedOccupiedVehicle(el) then return end
local x,y,z = getElementPosition(el)
local bus = createVehicle(437, x ,y - 8,z, 0.0, 0.0, 180.0)
Witam, tym razem z czatem frakcyjnym kt?ry pr?buj? zrobi?.
[lua]
function message (thePlayer,cmd,...)
if not getPlayerAccount(thePlayer) then return end
local accName = getAccountName ( getPlayerAccount ( thePlayer ) )
if not accName then return end
local allArgs = {...}
local theMessage = table.concat(allArgs, " ")
if isObjectInACLGroup ("user."..accName, aclGetGroup("PSP") ) or isObjectInACLGroup ("user."..accName, aclGetGroup("SAPD") ) or isObjectInACLGroup ("user."..accName, aclGetGroup("SAMC") ) then
for k,v in ipairs (getElementsByType("player")) do
if getPlayerAccount(v) then
accName = getAccountName(getPlayerAccount(v))
if accName then
if isObjectInACLGroup ("user."..accName, aclGetGroup("PSP") ) or isObjectInACLGroup ("user."..accName, aclGetGroup("SAPD") ) or isObjectInACLGroup ("user."..accName, aclGetGroup("SAMC") ) then
outputChatBox("#ff0000"..getPlayerName(thePlayer).."#ffffff**#1D9DE6Frakcyjny:#ffffff**#49AC4C "..theMessage, v, 255,255,255, true)
end
end
end
end
end
addCommandHandler("u", message)
addEventHandler("onPlayerJoin",getRootElement(),
function ()
bindKey(source,"u&...
(doda?em tam tylko moderatora]
[lua]Admin = aclGetGroup ( "Admin" )
Rcon = aclGetGroup ( "RCON" )
Moderator = aclGetGroup ( "Moderator" )
function jestRCONem(gracz)
if not getPlayerAccount(gracz) then return false end
accName = getAccountName(getPlayerAccount(gracz))
if not accName then return false end
if isObjectInACLGroup ("user."..accName, Rcon ) then return true end
end
function jestADMINem(gracz)
if not getPlayerAccount(gracz) then return false end
accName = getAccountName(getPlayerAccount(gracz))
if not accName then return false end
if isObjectInACLGroup ("user."..accName, Admin ) then return true end
end
function jestModem(gracz)
if not getPlayerAccount(gracz) then return false end
accName = getAccountName(getPlayerAccount(gracz))
if not accName then return false end
if isObjectInACLGroup ("user."..accName, Moderator ) then return true end
end
addCommandHandler("admins", function(gracz,cmd)
admini = {}
rconi = {}
moderatorzy = {}
for k,v in ipairs(getElementsByType("player")) do
if jestRCONem(v) then
table.insert(rconi, getPlayerName(v))
elseif jestModem (v) then
table.insert(moderatorzy, getPlayerName(v))
elseif jestADMINem(v) then
table.insert(admini, getPla...