Wysłany: 2016-09-02, 13:02
szeroki
BlueRP.pl Zapraszam GTA5
Wiek: 36 Na forum: 3876 dni Posty: 104
Piwa : 9
Witam serdecznie mam taki problem nie mog? doda? funkcji policji karetki stra?y po?arnej mechanika i tym podobne do acl wydaje je ale co? nie mog? zrobi? nie wiem czemu nie mog? zrobi? ale chyba te? musi by? powi?zane co? z myqel oraz kasa nie zapisuje sie jak sie robi prace
Podpis
**⚡┃CyanRP┃⚡ **
**💻┃*Adres IP:*** *wyspa.cyanrp.pl*
**📱┃*Link do serwera discord:*** *https://discord.gg/MJKqHksanU
Wysłany: 2016-09-02, 13:09
luki123luki123
Place Game
Wiek: 28 Na forum: 5275 dni Posty: 1948
Nick w MP: LuKiO
Piwa : 6101
szeroki , nikt z tego nic nie zrozumie co ty napisa?e?. Opisz w spos?b zrozumia?y problem oraz z jakim gm jest problem poniewa? nikt ci nie pomo?e je?eli nie zrozumie ca?ej sytuacja b??du.
Wysłany: 2016-09-02, 13:23
szeroki
BlueRP.pl Zapraszam GTA5
Wiek: 36 Na forum: 3876 dni Posty: 104
Piwa : 9
Dodaj fukcje polcija do acl anie niedziala mi jak chce zmienic sie na polcje ja w pracy niemam jak to wytumaczyc lepiej
Podpis
**⚡┃CyanRP┃⚡ **
**💻┃*Adres IP:*** *wyspa.cyanrp.pl*
**📱┃*Link do serwera discord:*** *https://discord.gg/MJKqHksanU
Wysłany: 2016-09-02, 14:56
Podhal
Wiek: 25 Na forum: 3848 dni Posty: 101
Piwa : 805
szeroki ,
Po pierwsze na sto procent nie masz 26 lat.
Po drugie masz skrypt z gtao i nie wiesz jak stworzy? grupe ACL? Albo jak si? tam doda?? Je?li chodzi o dodanie to zr?b tak...
Otw?rz panel administratora pod "p"
Wejd? w resource i kliknij "Magnel ACL"
I zr?b albo createGroup albo addobject.
Je?li robisz createGroup nazwij t? grup? i tyle
Je?li chcesz doda? si? do ACL. Klikasz addobject i wpiszujesz user.(login)
Wysłany: 2016-09-02, 15:07
marcin778
Krytyk serwerów MTA
Wiek: 24 Na forum: 4149 dni Posty: 2268
Nick w MP: Marcineg
Piwa : 4662
szeroki , Podhal troch? chaotycznie to opisa? wi?c pozwol? sobie poprawi?.
W panelu administratora pod klawiszem 'p' w zak?adce 'Resource' po prawej stronie na samej g?rze jest przycisk "Manage ACL', kliknij go. Teraz je?li chcesz utworzy? now? grupe ACL klikasz na 'createGroup' nie 'createACL'. Po wybraniu tego, wpisujesz nazw? danej grupy ACL i klikasz 'Ok' lub 'create' nie pami?tam ju?. Po stworzeniu tej grupy aby kogo? do niej doda? musisz klikn?? dwa razy na t? grup? na li?cie. (Wszystko to w Manage ACL) nacisn?? 'add object' i wpisa? tam user. i za kropk? wpisujesz login u?ytkownika kt?ry chcesz doda? do ACL. Aby kogo? z niej usun?? musisz zrobi? tak samo tylko zamiast 'add object' wybra? 'remove object' i z listy wybra? login kt?ry chcesz usun??. My?l?, ?e dobrze wyt?umaczy?em....
Wysłany: 2016-09-04, 13:31
szeroki
BlueRP.pl Zapraszam GTA5
Wiek: 36 Na forum: 3876 dni Posty: 104
Piwa : 9
Dzienki Micha? Powiec mi jeszcze jedno jak zrobic aby Kasa sie zapisywala w bazie mysql or samochody prawko itp Ja mam 26Lat Jak nie wiezyszPodhal , to zapraszam cie na mojego tsa TS3-blue.pl
[ Dodano : 2016-09-04, 13:55 ]
Zrobilem tak i pisze nie jestes zatrudiony do taxi lub nie jestes na s?u?bie
Podpis
**⚡┃CyanRP┃⚡ **
**💻┃*Adres IP:*** *wyspa.cyanrp.pl*
**📱┃*Link do serwera discord:*** *https://discord.gg/MJKqHksanU
Wysłany: 2016-09-04, 14:07
Podhal
Wiek: 25 Na forum: 3848 dni Posty: 101
Piwa : 805
"szeroki" napisał/a :Zrobilem tak i pisze nie jestes zatrudiony do taxi lub nie jestes na s?u?bie
Mo?na prosi? o kod? B?dzie ?atwiej pom?c.
Wysłany: 2016-09-04, 14:39
szeroki
BlueRP.pl Zapraszam GTA5
Wiek: 36 Na forum: 3876 dni Posty: 104
Piwa : 9
to jakiej Frakcj dac ?
[ Dodano : 2016-09-04, 14:48 ]
Kod: function RGBToHex(red, green, blue, alpha)
if((red < 0 or red > 255 or green < 0 or green > 255 or blue < 0 or blue > 255) or (alpha and (alpha < 0 or alpha > 255))) then
return nil
end
if(alpha) then
return string.format("#%.2X%.2X%.2X%.2X", red,green,blue,alpha)
else
return string.format("#%.2X%.2X%.2X", red,green,blue)
end
end
local licz = {}
local marker=createMarker(232.29, 165.16, 1003.02, 'corona', 0.7, 0, 0, 255, 150)
setElementDimension(marker, 0)
setElementInterior(marker, 3)
local t=createElement('text')
setElementData(t, "scale", 1.5)
setElementData(t,'name','Rozpocz?cie pracy')
setElementDimension(t, 0)
setElementInterior(t, 3)
setElementPosition(t,232.29, 165.16, 1003.02)
local blip = createBlip(1109.55, -1759.39, 13.58,60)
function isPlayerInTaxiFaction(plr)
local uid=getElementData(plr,'player:uid')
if not uid then return end
local result=exports['ogrpg-db']:dbGet('SELECT 1 FROM ogrpg_factions WHERE code=? AND uid=? LIMIT 1;', "TAXI", uid)
if result[1] then
return true
else
return false
end
end
addEventHandler('onMarkerHit', marker, function(el,md)
if isPlayerInTaxiFaction(el) then
if not getElementData(el,'player:duty') then
exports['frakcja']:rozpocznijnaliczanie(el)
setElementData(el,'player:duty','TAXI')
local rank = exports['frakcja']:getPlayerFactionRank(el,'TAXI')
setElementData(el,"player:rank",rank)
setElementData(el,"last:nick",getPlayerName(el))
setElementData(el,"last:color",tostring(getPlayerNametagColor(el)))
setPlayerName(el,"#FFFF00"..getPlayerName(el):gsub("#%x%x%x%x%x%x",""))
executeCommandHandler("setblipcolor",el,255,255,0)
outputChatBox("#00FF00Rozpocz??e?/a?#FFFF00 s?u?b? w TAXI!", el, 255,255,0,true)
local uid=getElementData(el,'player:uid')
exports['ogrpg-db']:dbSet('UPDATE ogrpg_factions set actived=NOW() WHERE code=? AND uid=? LIMIT 1;', "TAXI", uid)
else
exports['frakcja']:zatrzymajnaliczanie(el)
setElementData(el, 'player:duty', false)
local skin=getElementData(el,"player:skin")
setElementModel(el, skin)
removeElementData(el, 'player:duty')
removeElementData(el,"player:rank")
setPlayerName(el,getElementData(el,"last:nick"))
executeCommandHandler("setblipcolor",el,255,255,255)
outputChatBox("#FF0000Zakonczy?e?/a?#FFFF00 s?u?b? w TAXI!", el, 255,255,0,true)
end
else
outputChatBox('Nie jeste? zatrudniony jako TAXI.', el, 255, 0, 0)
end
end)
function naliczanie(el)
if isElement(el) then
local x = getElementData(el,"player:workinjob") or 0
setElementData(el,"player:workinjob",x+1)
else
if isTimer(licz[el]) then
killTimer(licz[el])
licz[el] = nil
end
end
end
local t=createElement("text")
setElementData(t,"scale",1.7)
setElementData(t,"name","Wej?cie do bazy TSA.")
setElementInterior(t,0)
setElementDimension(t,0)
setElementPosition(t,1153.02, -1771.02, 16.60)
local t=createElement("text")
setElementData(t,"scale",1.7)
setElementData(t,"name","Wyj?cie z bazy TSA.")
setElementInterior(t,3)
setElementDimension(t,0)
setElementPosition(t,238.70, 138.95, 1003.02)
wejscie = createMarker (1153.02, -1771.02, 16.60, "arrow", 1.0, 0, 0, 255,0)
wyjscie = createMarker (238.70, 138.95, 1003.02, "arrow", 1.0, 0, 0, 255,255)
setElementDimension(wyjscie, 0)
setElementInterior(wyjscie, 3)
setElementDimension(wejscie, 0)
setElementInterior(wejscie, 0)
addEventHandler("onMarkerHit", wejscie, function(el, md)
if getElementType(el) ~= "player" then return end
if isPedInVehicle(el) then return end
setElementDimension(el, 0)
setElementInterior(el, 3)
setElementPosition(el, 238.78, 141.17, 1003.02)
end)
addEventHandler("onMarkerHit", wyjscie, function(el, md)
if getElementType(el) ~= "player" then return end
if isPedInVehicle(el) then return end
setElementDimension(el, 0)
setElementInterior(el, 0)
setElementPosition(el, 1150.48, -1767.03, 16.5)
end)
wejscie2 = createMarker (1139.35, -1762.12, 13.60, "arrow", 1.0, 0, 0, 255,0)
wyjscie2 = createMarker (1159.66, -1783.53, 33.63, "arrow", 1.0, 0, 0, 255,255)
setElementDimension(wyjscie, 0)
setElementInterior(wyjscie, 3)
setElementDimension(wejscie, 0)
setElementInterior(wejscie, 0)
addEventHandler("onMarkerHit", wejscie2, function(el, md)
if getElementType(el) ~= "player" then return end
if isPedInVehicle(el) then return end
setElementDimension(el, 0)
setElementInterior(el, 0)
setElementPosition(el, 1159.95, -1785.75, 33.63)
end)
addEventHandler("onMarkerHit", wyjscie2, function(el, md)
if getElementType(el) ~= "player" then return end
if isPedInVehicle(el) then return end
setElementDimension(el, 0)
setElementInterior(el, 0)
setElementPosition(el, 1139.60, -1758.71, 13.59)
end)
Cytat: function istaxi(plr)
local uid=getElementData(plr,'player:uid')
if not uid then return end
local result=exports['ogrpg-db']:dbGet('SELECT 1 FROM ogrpg_factions WHERE uid=? AND code=? LIMIT 1;', uid, "TAXI")
if result[1] then
return true
else
return false
end
end
local gate={
-- var
object=createObject(968, 1162.92, -1744.26, 13.40, 0, 90, 90),
marker=createMarker(1162.92, -1744.26, 13.40, "cylinder", 9, 0, 0, 0, 0),
closed=true,
animation=false,
}
gate.open=function()
if gate.animation or not gate.closed then return end
gate.animation=true
moveObject(gate.object, 2000,1162.92, -1744.26, 13.40, 0, -90, 0, "OutQuad")
setTimer(function()
gate.animation=false; gate.closed=false
end, 2000, 1)
end
gate.close=function()
if gate.animation or gate.closed then return end
gate.animation=true
moveObject(gate.object, 2000, 1162.92, -1744.26, 13.40, 0, 90, 0, "OutQuad")
setTimer(function()
gate.animation=false; gate.closed=true
end, 2000, 1)
end
gate.toggle=function(el)
if not el then return end
if istaxi(el) then
if gate.animation then
outputChatBox('* Odczekaj chwile...', el, 255, 0, 0)
return
end
if gate.closed then
gate.open()
setTimer(function()
gate.close()
end, 4000, 1)
end
else
outputChatBox("* Nie jeste? na s?u?bie, lub nie pracujesz w TAXI.", el, 255, 0, 0)
end
end
addEventHandler("onMarkerHit", gate.marker, function(el,md)
gate.toggle(el)
end)
[ Dodano : 2016-09-04, 20:29 ]
tu daje ssy
Fukcje mam Dodane ale nie mog? we?? na Polcjanta Itp
Podpis
**⚡┃CyanRP┃⚡ **
**💻┃*Adres IP:*** *wyspa.cyanrp.pl*
**📱┃*Link do serwera discord:*** *https://discord.gg/MJKqHksanU
Wysłany: 2016-09-04, 20:47
Podhal
Wiek: 25 Na forum: 3848 dni Posty: 101
Piwa : 805
szeroki , to dlatego, ?e frakcje s? pod mysql. Aby doda? si? do frakcji musisz stworzy? tabele.
ogrpg_factions:
CREATE TABLE IF NOT EXISTS `ogrpg_factions` (
`code` text NOT NULL,
`uid` int(11) NOT NULL,
`actived` date NOT NULL,
`added` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
INSERT INTO `ogrpg_factions` (`code`, `uid`, `actived`, `added`) VALUES
('TAXI', [Twoje UID], '0000-00-00', '[Data]'),
Wysłany: 2016-09-04, 21:31
szeroki
BlueRP.pl Zapraszam GTA5
Wiek: 36 Na forum: 3876 dni Posty: 104
Piwa : 9
dzienki tamta tabela co mialm byla kiepska leci piwko powiec mi jak naprawic zapis kasy oraz aby kasa wpada?a z pracy Itp
Podpis
**⚡┃CyanRP┃⚡ **
**💻┃*Adres IP:*** *wyspa.cyanrp.pl*
**📱┃*Link do serwera discord:*** *https://discord.gg/MJKqHksanU
Wysłany: 2016-09-04, 21:49
Podhal
Wiek: 25 Na forum: 3848 dni Posty: 101
Piwa : 805
szeroki , nie ma sprawy do zapisu kasy ogrpg trzeba stworzy? kolejn? tabele.
ogrpg_users
CREATE TABLE IF NOT EXISTS `ogrpg_users` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`login` text NOT NULL,
`pass` text NOT NULL,
`money` int(11) NOT NULL DEFAULT '0',
`skin` int(11) NOT NULL DEFAULT '0',
`weave` int(11) NOT NULL DEFAULT '50',
`reputation` int(11) NOT NULL DEFAULT '0',
`pjA` int(11) NOT NULL DEFAULT '0',
`pjB` int(11) NOT NULL DEFAULT '0',
`pjC` int(11) NOT NULL DEFAULT '0',
`pjL` int(11) NOT NULL DEFAULT '0',
`mandate` int(10) NOT NULL DEFAULT '0',
`registered` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=197 ;
Wysłany: 2016-09-04, 21:58
szeroki
BlueRP.pl Zapraszam GTA5
Wiek: 36 Na forum: 3876 dni Posty: 104
Piwa : 9
A prawko ?
Podpis
**⚡┃CyanRP┃⚡ **
**💻┃*Adres IP:*** *wyspa.cyanrp.pl*
**📱┃*Link do serwera discord:*** *https://discord.gg/MJKqHksanU
Wysłany: 2016-09-04, 22:02
Podhal
Wiek: 25 Na forum: 3848 dni Posty: 101
Piwa : 805
szeroki ,
`pjA` int(11) NOT NULL DEFAULT '0',
`pjB` int(11) NOT NULL DEFAULT '0',
`pjC` int(11) NOT NULL DEFAULT '0',
`pjL` int(11) NOT NULL DEFAULT '0',
pjA - kat.a
pjB - kat.b
pjC - kat.c
pjL - Licencja lotinicza
Wysłany: 2016-09-04, 22:04
szeroki
BlueRP.pl Zapraszam GTA5
Wiek: 36 Na forum: 3876 dni Posty: 104
Piwa : 9
dodalem ale nie zapisuje sie chba unoc stara i nowa zrobic ?
Podpis
**⚡┃CyanRP┃⚡ **
**💻┃*Adres IP:*** *wyspa.cyanrp.pl*
**📱┃*Link do serwera discord:*** *https://discord.gg/MJKqHksanU
Wysłany: 2016-09-04, 22:05
Podhal
Wiek: 25 Na forum: 3848 dni Posty: 101
Piwa : 805
szeroki ,
ogrpg_users
a
ogrpg_factions
To dwie inne tabele.
Tagi: jak :: dodać :: funkcję :: acl
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: