Czy istnieje jaki? darmowy skrypt synchronizacji naczep? Je?li tak to gdzie bo nie mog? ?adnego znale??. Je?li nie, jak napisa? go samemu? W sensie potrzebuj? logicznego krok po kroku (nie chc? gotowca). Z g?ry dzi?kuj? za pomoc.
Witam mam problem posiadam paczke z ya, przerobion?, mam komendy dajpremium dajpremiumplus, mog? tylko sobie nada? premium, lecz np. mojemu koledze nie mog?, Nawet jak daje sobie premium to potem jak wyjde z serwera to si? to nie zapisuje. Z g?ry dzi?ki.
[ Dodano : 2018-09-14, 18:30 ]
JEDNAK CO SIE OKAZA?O DA SIE DAC PREMIUM I PREMIUM PLUS ZA POMOCA KOMENDY LOSPREMIUM CZYLI LOSUJ PREMIUM TAK WYGLADA LINJIKA NA DajPremium : addCommandHandler("dajpremiumplus",function(plr,cmd,cel,dni)
if getAdmin(plr,5) then
if not cel then outputChatBox("/dajpremiumplus [gracz] [dni]",plr) return end
if not dni then outputChatBox("/dajpremiumplus [gracz] [dni]",plr) return end
if not tonumber(dni) then outputChatBox("/dajpremium [gracz] [dni]",plr) return end
local target=exports["tiyl-core"]:findPlayer(plr,cel)
if not target then
outputChatBox("* Nie znaleziono podanego gracza.", plr, 255, 0, 0)
return
end
setPremiumDay(target,dni)
outputChatBox("Nadano konto PREMIUM+ na "..dni.." dni!", plr, 255, 128, 64)
outputChatBox("Otrzymales konto PREMIUM+ na "..dni.." dni!", target, 255, 128, 64)
setElementData(plr,"player:svip",true)
triggerEvent("save:player",root,target)
triggerEvent("load:player",root,target)
end
end)
function getPremiumDate(plr)
local queryA=exports['tiyl-db']:dbGet("SELECT * FROM tiyl_gracze...
wget https://github.com/grasmanek94/AntiServerFullAttackFix/archive/master.zip
unzip master.zip
cd ./AntiServerFullAttackFix-master
make AntiServerFullFix
Kompatybilno??:
- SA-MP 0.3z-R4 Windows
- SA-MP 0.3z-R4 Linux
- SA-MP 0.3z-R4 Linux-1000p
Witajcie, dzisiaj zrobi?em panel aby da? fix, flip i nitro. Ale wla?nie, tutaj problem.
B??d?w w debugu zero.
Client:
[lua]function dajnitro ()
if (source == nitrotn) then
triggerServerEvent("buyNitro", getRootElement())
end
end
addEventHandler("onClientGUIClick", nitrobtn, dajfix)
function dajfix ()
if (source == fixbtn) then
triggerServerEvent("buyRepair", getRootElement())
end
end
addEventHandler("onClientGUIClick", fixbtn, dajfix)
function dajflipa ()
if (source == flipbtn) then
triggerServerEvent("buyFlip", getRootElement())
end
end
addEventHandler("onClientGUIClick", fliptn, dajflipa [/lua]
Server:
[lua]addEvent("buyNitro", true)
addEventHandler("buyNitro", rootElement,
function()
if isPedInVehicle(source) then
if ( getPlayerMoney (source) >= 7000 ) then
takePlayerMoney(source, 7000)
addVehicleUpgrade(getPedOccupiedVehicle(source),1010)
outputChatBox("Nitro dodano", source, 255, 255, 0, true)
else
outputChatBox("Nie masz tyle kasy.", source, 255, 0, 0, true)
end
else
outputChatBox("Nie jestes w aucie", source, 255, 0, 0, true)
end
end
)
addEvent("buyRepair", true)
addEventHandler("buyRepair", rootElement,
function()
if isPedInVehicle(source) then
if ( getPlayerMoney (source) >= 40 ) th...