Wysłany: 2019-07-11, 13:38
maciek553
Wiek: 26 Na forum: 3455 dni Posty: 10
Piwa : 1
Dlaczego na serwerze nie dzia?aj? mi duty w bazie mysql si? doda?em pisze /duty nic nie dziala
w /admins mnie nie wida?
/suszarka nie dziala
Wysłany: 2019-07-11, 16:55
Wilq
Wiek: 24 Na forum: 4428 dni Posty: 3410
Piwa : 739
Sk?d mamy wiedzie?, czemu nie dzia?a je?li nie wklei?e? kodu tego, czego nie dzia?a I nie wklei?e? nam ewentualnych b??d?w debugscript.
Wysłany: 2019-07-11, 18:42
maciek553
Wiek: 26 Na forum: 3455 dni Posty: 10
Piwa : 1
"Wilq" napisał/a :Sk?d mamy wiedzie?, czemu nie dzia?a je?li nie wklei?e? kodu tego, czego nie dzia?a I nie wklei?e? nam ewentualnych b??d?w debugscript.
Paczka to PSRPG 2.0 Jaki kod tu mam wklei? kt?rego skryptu
Wysłany: 2019-07-11, 19:21
Wilq
Wiek: 24 Na forum: 4428 dni Posty: 3410
Piwa : 739
Masz wklei? kod tego, co nie dzia?a. Ju? drugi raz to pisz?.
Wysłany: 2019-07-11, 20:03
maciek553
Wiek: 26 Na forum: 3455 dni Posty: 10
Piwa : 1
"Wilq" napisał/a :Masz wklei? kod tego, co nie dzia?a. Ju? drugi raz to pisz?.
Podasz nazwy skrypt?w kt?re s? odpowiedzialne za suszarke i duty ? to ci wy?l? ! i z ftp to wys?a? ? JA ?WIE?Y I MA?O UMIEM
Wysłany: 2019-07-11, 20:37
Wilq
Wiek: 24 Na forum: 4428 dni Posty: 3410
Piwa : 739
Znajomo?? skrypt?w z jakiego? pseudola nie jest obowi?zkiem, tak wi?c nie wiem.
Chcesz otrzyma? pomoc to chocia? do??? co? od siebie i znajd? te skrypty.
Wysłany: 2019-07-12, 00:21
maciek553
Wiek: 26 Na forum: 3455 dni Posty: 10
Piwa : 1
NameTags
Kod: --local nametagFont = "default"
local nametagFont = dxCreateFont( "czcionka.ttf", 20 )
if not nametagFont then nametagFont = "default-bold" end
local vopisFont = dxCreateFont( "czcionka.ttf", 20 )
if not vopisFont then vopisFont = "default-bold" end
local screenSize = Vector2(guiGetScreenSize())
local timer = false
local nametagAlpha = 175
local nametagColor =
{
r = 255,
g = 255,
b = 255
}
-- Funkcja nametag?w graczy i pojazd?w
-- zazwyczaj s? dla u?atwienia wygl?du.
addEventHandler("onClientRender", root, function()
local rootx, rooty, rootz = getCameraMatrix()
for i,player in ipairs(getElementsByType("player")) do
if getElementDimension(localPlayer) == getElementDimension(player) and getElementInterior(localPlayer) == getElementInterior(player) then
local x,y,z = getPedBonePosition(player,7)
local sx, sy = getScreenFromWorldPosition(x, y, z+0.50)
local sxc,syc =getScreenFromWorldPosition(x, y, z+0.69)
local sxc1,syc2 =getScreenFromWorldPosition(x, y, z+0.57)
local sxc2,syc3 =getScreenFromWorldPosition(x, y, z+0.63)
local sxc5,syc5 =getScreenFromWorldPosition(x, y, z+0.42)
if sx and sy and sxc and syc and sxc1 and syc2 then
local distance = getDistanceBetweenPoints3D(rootx, rooty, rootz, x, y, z)
if getElementAlpha(player) < 2 and not getElementData(localPlayer,"player:admin") then
return end
if(distance <= 12) then
--if isLineOfSightClear( rootx,rooty,rootz, x,y,z, true, false, false, false, false, false, true,localPlayer ) then
dxDrawText ((getPlayerName(player).." [#b8b8b8"..getElementData(player,"id").."#ffffff]"):gsub("#%x%x%x%x%x%x",""),sx, sy, sx, sy,tocolor(255, 255, 255,255),1.0,"default-bold","center","center",false,false,true,true,true)
if getElementData(player,"player:premium") then
dxDrawText ("[PREMIUM]",sxc1, syc2, sxc1, syc2, tocolor(255, 191, 0, 255),1.02,"default","center","center")
end
if getElementData(player,"player:premiumplus") then
dxDrawText ("[PREMIUM+]",sxc1, syc2, sxc1, syc2, tocolor(255, 215, 0, 255),1.02,"default","center","center")
end
if getElementData(player, "player:mute") then
dxDrawText ("[Zmutowany]",sxc5, syc5, sxc5, syc5,tocolor(255, 0, 0, 255),1.02,"default","center","center")
end
local frakcja = getElementData(player, "player:faction")
if frakcja == "SAPD" then
dxDrawText("[San Andreas Police Departament]", sxc2, syc3, sxc2, syc3, tocolor(3, 0, 253, 255), 1.02, "default-bold", "center", "center")
elseif frakcja == "SAFD" then
dxDrawText("[San Andreas Fire Departament]", sxc2, syc3, sxc2, syc3, tocolor(255, 0, 0, 255), 1.02, "default-bold", "center", "center")
elseif frakcja == "SAMD" then
dxDrawText("[San Andreas Medical Departament]", sxc2, syc3, sxc2, syc3, tocolor(0, 255, 255, 255), 1.02, "default-bold", "center", "center")
elseif frakcja == "SARA" then
dxDrawText("[San Andreeas Road Assistance]", sxc2, syc3, sxc2, syc3, tocolor(205, 87, 0, 255), 1.02, "default-bold", "center", "center")
elseif frakcja == "TSA" then
dxDrawText("[Transport San Andreas]", sxc2, syc3, sxc2, syc3, tocolor(255, 255, 0, 255), 1.02, "default-bold", "center", "center")
end
local level = getElementData(player, "player:level")
if type(level) == "number" then
if level == 6 then
dxDrawText("POMOCNIK", sxc, syc, sxc, syc, tocolor(0, 255, 12, 255), 1.02, "default-bold", "center", "center")
elseif level == 1 then
dxDrawText("MODERATOR", sxc, syc, sxc, syc, tocolor(66, 182, 244, 255), 1.02, "default-bold", "center", "center")
elseif level == 2 then
dxDrawText("ADMINISTRATOR", sxc, syc, sxc, syc, tocolor(242, 0, 0, 255), 1.02, "default-bold", "center", "center")
elseif level == 3 then
dxDrawText("RCON", sxc, syc, sxc, syc, tocolor(160, 19, 173, 255), 1.02, "default-bold", "center", "center")
elseif level == 4 then
dxDrawText("TECHNIK", sxc, syc, sxc, syc, tocolor(255, 102, 0, 255), 1.02, "default-bold", "center", "center")
end
--dxDrawText (name,fX+1, fY+1, fX+1, fY+1,white,nametagScale,"default","center","center",false,false,false,true,true )
if getElementData(localPlayer,"player:duty") == "SAMD" then
dxDrawRectangle(sx-25*2-1, sy+5*2, 100-distance, 18+2-distance/2.0, tocolor(27,27,27,155))
dxDrawRectangle(sx-25*2, sy+5*2+1, getElementHealth(player)-distance, 18-distance/1.0, tocolor(255,5,5,155))
end
end
end
end
end
end
for i,ped in ipairs(getElementsByType("ped")) do
if ped~=localPlayer and getElementDimension(localPlayer)==getElementDimension(ped) and getElementInterior(localPlayer) == getElementInterior(ped) and getElementAlpha(ped) > 0 then
local x,y,z=getElementPosition(ped)
local sx,sy =getScreenFromWorldPosition(x, y, z+1)
if sx and sy then
local desc=getElementData(ped,"ped:desc")
if desc then
local distance = getDistanceBetweenPoints3D(rootx,rooty,rootz,x,y,z)
if distance <= 25 then
dxDrawText(desc, sx, sy, sx, sy, tocolor(255, 255, 255, 255), 1.0, "default`", "center", "center")
end
end
end
end
end
for i,vehicle in ipairs(getElementsByType("vehicle")) do
local x,y,z=getElementPosition(vehicle)
local sx,sy=getScreenFromWorldPosition(x,y,z)
if sx and sy then
local desc=getElementData(vehicle,"vehicle:desc")
if desc then
local distance=getDistanceBetweenPoints3D(rootx,rooty,rootz,x,y,z)
if distance <= 25 then
if isLineOfSightClear( rootx,rooty,rootz, x,y,z, true, false, false, true, false, false, true,localPlayer ) then
dxDrawText(desc:gsub("#%x%x%x%x%x%x",""), sx, sy, sx, sy, tocolor(255, 255, 255, 255), 1.00,"default", "center", "center")
end
end
end
end
end
end)
addEventHandler("onClientResourceStart", resourceRoot, function()
for _,v in ipairs(getElementsByType("player")) do
setPlayerNametagShowing(v, false)
end
end)
addEventHandler("onClientPlayerSpawn", root, function()
setPlayerNametagShowing(source, false)
end)
Suszarka
Kod: local w,h = guiGetScreenSize()
local vehicle={}
vehicle.id=nil
vehicle.speed=nil
vehicle.driver=nil
local option={}
value=nil
element=nil
option.selected=0
option.actived=false
option["vehicle"]={
"Akcja: Napraw pojazd",
"Akcja: Odeslij do przechowalni",
"Akcja: Respawnuj Pojazd(usun)",
"Akcja: Przenie? pojazd",
"Akcja: Zatankuj pojazd",
"Akcja: Otw?rz pojazd",
}
option["player"]={
"Akcja: Przenie? do siebie",
"Akcja: Wyrzu? gracza",
"Akcja: Prze?aduj gracza",
"Akcja: Ulecz gracza",
"Akcja: Przenie? do niego",
}
option["object"]={
"Akcja: Usu? obiekt",
}
function isPedAiming ( thePedToCheck )
if isElement(thePedToCheck) then
if getElementType(thePedToCheck) == "player" or getElementType(thePedToCheck) == "ped" then
if getPedTask(thePedToCheck, "secondary", 0) == "TASK_SIMPLE_USE_GUN" then
return true
end
end
end
return false
end
function isRendering()
if option.actived == true then
if not element then return end
local vx,vy,vz=getElementVelocity(element)
local sW, sH = guiGetScreenSize()
local screenW, screenH = guiGetScreenSize()
mathSpeed=(vx^2+vy^2+vz^2)^0.5*1.8*100
if mathSpeed < 0 then return end
if value == "vehicle" then
local vid=getElementData(element,"vehicle:id") or "Pojazd Respiony!"
local ownerid=getElementData(element,"vehicle:ownedPlayer") or "---"
local group=getElementData(element,"vehicle:ownedGroup") or "---"
local driver=getElementData(element,"vehicle:driver") or "Nie ma!"
local plate=getVehiclePlateText(element) or 0
local kolor = {getVehicleHeadLightColor(element)}
dxDrawLine((screenW * 0.4041) - 1, (screenH * 0.3112) - 1, (screenW * 0.4041) - 1, screenH * 0.6888, tocolor(22, 235, 254, 161), 1, false)
dxDrawLine(screenW * 0.5966, (screenH * 0.3112) - 1, (screenW * 0.4041) - 1, (screenH * 0.3112) - 1, tocolor(22, 235, 254, 161), 1, false)
dxDrawLine((screenW * 0.4041) - 1, screenH * 0.6888, screenW * 0.5966, screenH * 0.6888, tocolor(22, 235, 254, 161), 1, false)
dxDrawLine(screenW * 0.5966, screenH * 0.6888, screenW * 0.5966, (screenH * 0.3112) - 1, tocolor(22, 235, 254, 161), 1, false)
dxDrawRectangle(screenW * 0.4041, screenH * 0.3112, screenW * 0.1925, screenH * 0.3776, tocolor(0, 0, 0, 161), false)
dxDrawText(string.format("Pr?dko??: %.02f", mathSpeed).." km/h", screenW * 0.4026, screenH * 0.3711, screenW * 0.5966, screenH * 0.4128, tocolor(255, 255, 255, 255), 1.00, "clear", "center", "top", false, false, false, false, false)
dxDrawText("\n\nRejestracja: "..plate, screenW * 0.4041, screenH * 0.3906, screenW * 0.5966, screenH * 0.4362, tocolor(255, 255, 255, 255), 1.00, "clear", "center", "top", false, false, false, false, false)
dxDrawText("\n\nID: "..vid.."\n\nOstatni kierowca: "..driver:gsub("#%x%x%x%x%x%x","").."\nW?a?ciciel pojazdu: "..owner.."\n(SID Gracza: "..ownerid..")\nOrganizacja: "..group.."", screenW * 0.4034, screenH * 0.4453, screenW * 0.5966, screenH * 0.5977, tocolor(255, 255, 255, 255), 1.00, "clear", "center", "top", false, false, false, false, false)
if getElementData(localPlayer,"player:faction") ~= 5 then
dxDrawText(option[value][option.selected] or "Akcja: Nie wybrano", (screenW * 0.4034) - 1, (screenH * 0.6198) - 1, (screenW * 0.5966) - 1, (screenH * 0.6654) - 1, tocolor(0, 0, 0, 255), 1.2, "clear", "center", "center", false, false, false, false, false)
dxDrawText(option[value][option.selected] or "Akcja: Nie wybrano", (screenW * 0.4034) + 1, (screenH * 0.6198) - 1, (screenW * 0.5966) + 1, (screenH * 0.6654) - 1, tocolor(0, 0, 0, 255), 1.2, "clear", "center", "center", false, false, false, false, false)
dxDrawText(option[value][option.selected] or "Akcja: Nie wybrano", (screenW * 0.4034) - 1, (screenH * 0.6198) + 1, (screenW * 0.5966) - 1, (screenH * 0.6654) + 1, tocolor(0, 0, 0, 255), 1.2, "clear", "center", "center", false, false, false, false, false)
dxDrawText(option[value][option.selected] or "Akcja: Nie wybrano", (screenW * 0.4034) + 1, (screenH * 0.6198) + 1, (screenW * 0.5966) + 1, (screenH * 0.6654) + 1, tocolor(0, 0, 0, 255), 1.2, "clear", "center", "center", false, false, false, false, false)
dxDrawText(option[value][option.selected] or "Akcja: Nie wybrano", screenW * 0.4034, screenH * 0.6198, screenW * 0.5966, screenH * 0.6654, tocolor(255, 0, 0, 255), 1.2, "clear", "center", "center", false, false, false, false, false)
end
end
if value == "player" then
local id=getElementData(element,"id") or "b??d"
local sid=getElementData(element,"player:sid") or "b??d"
local ogp=getElementData(element,"player:reputation") or "b??d"
local faction=getElementData(element,"player:duty") or "Brak"
local organization=getElementData(element,"player:organization") or "Brak"
local organizationid =getElementData(element,"player:organization:id") or "-"
if not getElementData(element,"p:inv") then
dxDrawLine((screenW * 0.4041) - 1, (screenH * 0.3112) - 1, (screenW * 0.4041) - 1, screenH * 0.6888, tocolor(22, 235, 254, 161), 1, false)
dxDrawLine(screenW * 0.5966, (screenH * 0.3112) - 1, (screenW * 0.4041) - 1, (screenH * 0.3112) - 1, tocolor(22, 235, 254, 161), 1, false)
dxDrawLine((screenW * 0.4041) - 1, screenH * 0.6888, screenW * 0.5966, screenH * 0.6888, tocolor(22, 235, 254, 161), 1, false)
dxDrawLine(screenW * 0.5966, screenH * 0.6888, screenW * 0.5966, (screenH * 0.3112) - 1, tocolor(22, 235, 254, 161), 1, false)
dxDrawRectangle(screenW * 0.4041, screenH * 0.3112, screenW * 0.1925, screenH * 0.3776, tocolor(0, 0, 0, 161), false)
dxDrawText("SID: "..sid, screenW * 0.4034, screenH * 0.3984, screenW * 0.5966, screenH * 0.4505, tocolor(255, 255, 255, 255), 1.00, "default", "center", "top", false, false, false, false, false)
dxDrawText("Reputacja: "..ogp, screenW * 0.4034, screenH * 0.4245, screenW * 0.5966, screenH * 0.4635, tocolor(255, 255, 255, 255), 1.00, "default", "center", "top", false, false, false, false, false)
dxDrawText(getPlayerName(element):gsub("#%x%x%x%x%x%x","").."("..id..")\n\nS?u?ba: "..faction.."\n\nOrganizacja: "..organization.."("..organizationid..")", screenW * 0.4034, screenH * 0.4570, screenW * 0.5966, screenH * 0.5898, tocolor(255, 255, 255, 255), 1.00, "default", "center", "center", false, false, false, false, false)
dxDrawText(option[value][option.selected] or "Akcja: Nie wybrano", (screenW * 0.4034) - 1, (screenH * 0.6198) - 1, (screenW * 0.5966) - 1, (screenH * 0.6654) - 1, tocolor(0, 0, 0, 255), 1.2, "clear", "center", "center", false, false, false, false, false)
dxDrawText(option[value][option.selected] or "Akcja: Nie wybrano", (screenW * 0.4034) + 1, (screenH * 0.6198) - 1, (screenW * 0.5966) + 1, (screenH * 0.6654) - 1, tocolor(0, 0, 0, 255), 1.2, "clear", "center", "center", false, false, false, false, false)
dxDrawText(option[value][option.selected] or "Akcja: Nie wybrano", (screenW * 0.4034) - 1, (screenH * 0.6198) + 1, (screenW * 0.5966) - 1, (screenH * 0.6654) + 1, tocolor(0, 0, 0, 255), 1.2, "clear", "center", "center", false, false, false, false, false)
dxDrawText(option[value][option.selected] or "Akcja: Nie wybrano", (screenW * 0.4034) + 1, (screenH * 0.6198) + 1, (screenW * 0.5966) + 1, (screenH * 0.6654) + 1, tocolor(0, 0, 0, 255), 1.2, "clear", "center", "center", false, false, false, false, false)
dxDrawText(option[value][option.selected] or "Akcja: Nie wybrano", screenW * 0.4034, screenH * 0.6198, screenW * 0.5966, screenH * 0.6654, tocolor(255, 0, 0, 255), 1.2, "clear", "center", "center", false, false, false, false, false)
end
end
if value == "object" then
local player = getElementData(element,"create:player")
dxDrawLine((screenW * 0.4041) - 1, (screenH * 0.3112) - 1, (screenW * 0.4041) - 1, screenH * 0.6888, tocolor(22, 235, 254, 161), 1, false)
dxDrawLine(screenW * 0.5966, (screenH * 0.3112) - 1, (screenW * 0.4041) - 1, (screenH * 0.3112) - 1, tocolor(22, 235, 254, 161), 1, false)
dxDrawLine((screenW * 0.4041) - 1, screenH * 0.6888, screenW * 0.5966, screenH * 0.6888, tocolor(22, 235, 254, 161), 1, false)
dxDrawLine(screenW * 0.5966, screenH * 0.6888, screenW * 0.5966, (screenH * 0.3112) - 1, tocolor(22, 235, 254, 161), 1, false)
dxDrawRectangle(screenW * 0.4041, screenH * 0.3112, screenW * 0.1925, screenH * 0.3776, tocolor(0, 0, 0, 161), false)
dxDrawText("Utworzy?: "..player:gsub("#%x%x%x%x%x%x",""), screenW * 0.4034, screenH * 0.4570, screenW * 0.5966, screenH * 0.5898, tocolor(255, 255, 255, 255), 1.00, "default", "center", "center", false, false, false, false, false)
dxDrawText(option[value][option.selected] or "Akcja: Nie wybrano", (screenW * 0.4034) - 1, (screenH * 0.6198) - 1, (screenW * 0.5966) - 1, (screenH * 0.6654) - 1, tocolor(0, 0, 0, 255), 1.2, "clear", "center", "center", false, false, false, false, false)
dxDrawText(option[value][option.selected] or "Akcja: Nie wybrano", (screenW * 0.4034) + 1, (screenH * 0.6198) - 1, (screenW * 0.5966) + 1, (screenH * 0.6654) - 1, tocolor(0, 0, 0, 255), 1.2, "clear", "center", "center", false, false, false, false, false)
dxDrawText(option[value][option.selected] or "Akcja: Nie wybrano", (screenW * 0.4034) - 1, (screenH * 0.6198) + 1, (screenW * 0.5966) - 1, (screenH * 0.6654) + 1, tocolor(0, 0, 0, 255), 1.2, "clear", "center", "center", false, false, false, false, false)
dxDrawText(option[value][option.selected] or "Akcja: Nie wybrano", (screenW * 0.4034) + 1, (screenH * 0.6198) + 1, (screenW * 0.5966) + 1, (screenH * 0.6654) + 1, tocolor(0, 0, 0, 255), 1.2, "clear", "center", "center", false, false, false, false, false)
dxDrawText(option[value][option.selected] or "Akcja: Nie wybrano", screenW * 0.4034, screenH * 0.6198, screenW * 0.5966, screenH * 0.6654, tocolor(255, 0, 0, 255), 1.2, "clear", "center", "center", false, false, false, false, false)
end
end
end
addEventHandler("onClientPlayerTarget",root, function(el)
if isPedAiming(localPlayer) and el and getPedWeapon(localPlayer) == 22 and getElementData(localPlayer, "player:admin") == true then
if not option.actived then
if getElementData(el,"p:inv") then return end
if getElementType(el) == "vehicle" then
value="vehicle"
element=el
option.actived=true
owner="Brak Danych"
triggerServerEvent("pobierzwlasciciela",resourceRoot,el)
elseif getElementType(el) == "player" then
value="player"
element=el
option.actived=true
elseif getElementType(el) == "object" and getElementData(el,"create:player") then
value="object"
element=el
option.actived=true
else return end
bindKey("mouse1", "down", onElementClicked)
bindKey("mouse_wheel_down", "down", onElementMoveDown)
bindKey("mouse_wheel_up", "down", onElementMoveUp)
bindKey("arrow_d", "down", onElementMoveDown)
bindKey("arrow_u", "down", onElementMoveDown)
addEventHandler("onClientHUDRender", root, isRendering)
end
else
if option.actived then
vehicle.el=nil
option.actived=false
owner=nil
unbindKey("mouse1", "down", onElementClicked)
unbindKey("mouse_wheel_down", "down", onElementMoveDown)
unbindKey("mouse_wheel_up", "down", onElementMoveUp)
unbindKey("arrow_d", "down", onElementMoveDown)
unbindKey("arrow_u", "down", onElementMoveDown)
removeEventHandler("onClientHUDRender", root, isRendering)
end
end
end)
addEvent("wczytajwlasciciela", true)
addEventHandler("wczytajwlasciciela",resourceRoot,function(wlasciciel)
if not wlasciciel then owner="Brak Danych" return end
owner=wlasciciel
end)
function onElementMoveUp() if option.selected > 6 then option.selected=1 else option.selected=option.selected+1 end end
function onElementMoveDown() if option.selected < 1 then option.selected=6 else option.selected=option.selected-1 end end
function onElementClicked() if option.selected > 0 then triggerServerEvent("onDryerAction", localPlayer, value, option.selected, element) end end
function blokada ( prevSlot, newSlot )
if getPedWeapon(getLocalPlayer(),newSlot) == 22 and getElementData(getLocalPlayer(),"player:admin") == true then
toggleControl ( "fire", false ) --disable the aim button
else
toggleControl ( "fire", true ) --renable the aim button
end
end
addEventHandler ( "onClientPlayerWeaponSwitch", getRootElement(), blokada )
Kod: --[[
Resource: OGame
Developers: Split,xScatta <split.programista@gmail.com> <xscatta1@gmail.com>
Copyright <split.programista@gmail.com> 2015-2016
You have no right to use this code without my permission.
]]
elektrytki = {
[507] = true,
[503] = true,
}
local getPlayerName3 = getPlayerName
local function getPlayerName(plr)
if not plr then return end
return getPlayerName3(plr):gsub("#%x%x%x%x%x%x","")
end
--local result = exports['pystories-db']:dbGet("SELECT pystories_vehicles.*,pystories_users.login FROM pystories_vehicles left join pystories_users on pystories_users.id=pystories_vehicles.ownedPlayer WHERE pystories_vehicles.id=?")
addEvent("pobierzwlasciciela", true)
addEventHandler("pobierzwlasciciela", root, function(el)
if not el then return end
local id = getElementData(el,"vehicle:id")
if not id then return end
local result = exports['pystories-db']:dbGet("SELECT pystories_vehicles.*,pystories_users.login FROM pystories_vehicles left join pystories_users on pystories_users.id=pystories_vehicles.ownedPlayer WHERE pystories_vehicles.id=?",id)
if not result or #result < 1 then return end
local owner = result[1].login
triggerClientEvent(client,"wczytajwlasciciela",resourceRoot,owner)
end)
-- Dalsza cz??c funkcji g??wna
addEvent("onDryerAction", true)
addEventHandler("onDryerAction", root, function(typ,selected,el)
if not el or not selected then return end
if typ == "player" then
if selected == 1 then
local x,y,z=getElementPosition(source)
setElementPosition(el,x,y,z)
outputChatBox("* Przenios?e? gracza do siebie.", source)
end
if selected == 2 then
local powod="Zosta?e? Wyrzucony za pomoc? suszarki! Lepiej Si? ogarnij!"
outputChatBox("* Pomy?lnie wyrzucono gracza.", source)
kickPlayer(el,getPlayerName(source),powod)
end
if selected == 3 then
setElementPosition(el, -2674.62, -5.49, 6.13)
outputChatBox("* Pomy?lnie Zrespiono Gracz.", source)
end
if selected == 4 then
setElementHealth(el, 100)
outputChatBox("* Pomy?lnie uleczono gracza.", source)
end
if selected == 5 then
local x,y,z=getElementPosition(el)
setElementPosition(source,x,y,z)
outputChatBox("* Przenios?e? siebie do gracza.", source)
end
end
if typ == "vehicle" then
if not el or not source then return end
if getElementData(el,"ladowany") then outputChatBox("* Nie mozna wykonac akcji podany pojazd sie laduje.", source) return end
if selected == 1 then
_,_,rz=getElementRotation(el)
fixVehicle(el)
setElementHealth(el,1000)
setElementRotation(el,0,0,rz)
end
if selected == 2 then
if getElementData(el,"vehicle:spawn") then
exports["pystories-vehicles"]:onSaveVehicle(el)
local query=exports["pystories-db"]:dbSet("UPDATE pystories_vehicles SET parking=1,tp_to_parking=? WHERE id=?", getPlayerName(source),getElementData(el,"vehicle:id"))
if query then
destroyElement(el)
outputChatBox("* Pomy?lnie oddano pojazd na parking.", source)
end
else
outputChatBox("* Ten pojazd nie jest prywatny, u?yj opcji 'Usu? pojazd'", source, 255, 0, 0)
end
end
if selected == 3 then
if not getElementData(el,"vehicle:spawn") then
if getElementData(el,"spawnowany") then
destroyElement(el)
outputChatBox("* Pomy?lnie usuni?to pojazd.", source)
else
respawnVehicle(el)
outputChatBox("* Pomy?lnie zrespawnowano pojazd.", source)
end
else
exports["pystories-vehicles"]:onSaveVehicle(el)
exports["pystories-vehicles"]:onParkVehicle(el)
outputChatBox("* Pomy?lnie oddano pojazd na parking.", source)
local query=exports["pystories-db"]:dbSet("UPDATE pystories_vehicles SET tp_to_parking=? WHERE id=?", getPlayerName(source),getElementData(el,"vehicle:id"))
outputChatBox("* Ten pojazd jest prywatny, u?yto opcji 'Oddaj na parking'", source, 255, 0, 0)
end
end
if selected == 4 then
local x,y,z=getElementPosition(source)
setElementPosition(el,x,y,z-0.6)
outputChatBox("* Pomy?lnie przeniesiono pojazd.", source)
end
if selected == 5 then
if elektrytki[getElementModel(el)] then outputChatBox("* Ten pojazd jest elektryczny musi zostac naladowany",source) return end
if getElementData(el,"vehicle:fuel") and getElementData(el,"vehicle:fuel") < 100 then
setElementData(el,"vehicle:fuel",100)
outputChatBox("* Pomy?lnie zatankowano pojazd a z Twojego konta pobrano 2000000 PLN.", source)
takePlayerMoney(source, 2000000)
end
end
if selected == 6 then
setVehicleLocked (el,false)
outputChatBox("* Pomy?lnie otwarto pojazd!", source)
end
elseif typ == "object" then
if selected == 1 then
destroyElement(el)
outputChatBox("Pomy?lnie usun??e? obiekt frakcyjny",source)
end
end
end)
Więcej szczegółów
Wystawiono 1 piw(a):fraju
Wysłany: 2019-07-12, 01:49
DanDuslaw
Zgetek lamus
Wiek: 43 Na forum: 3481 dni Posty: 20
Nick w MP: DanDi
Piwa : 12
Nie dzia?a ci suszarka i duty poniewa? nie masz pewnie ustawionego poziomu konta na bazie danych. Nie wiem co tam masz u siebie, ale wejd? w konta w bazie danych, edytuj swoje konto i ustaw lvl na admina. Je?eli jeste? totalnym nonskillem to edytuj baze danych za pomoc? notepada++ i wyszukaj tabele admins. Masz tam pewnie seriale ju? zapisane. Edytuj jeden z seriali na sw?j, usu? reszte i restart serwera. W?ala.
Wysłany: 2019-07-12, 20:43
maciek553
Wiek: 26 Na forum: 3455 dni Posty: 10
Piwa : 1
"DanDuslaw" napisał/a :Nie dzia?a ci suszarka i duty poniewa? nie masz pewnie ustawionego poziomu konta na bazie danych. Nie wiem co tam masz u siebie, ale wejd? w konta w bazie danych, edytuj swoje konto i ustaw lvl na admina. Je?eli jeste? totalnym nonskillem to edytuj baze danych za pomoc? notepada++ i wyszukaj tabele admins. Masz tam pewnie seriale ju? zapisane. Edytuj jeden z seriali na sw?j, usu? reszte i restart serwera. W?ala.
Jak edytowa? ? napiszesz mi tu ?
Wysłany: 2019-07-12, 21:02
killercycDDS
Migacz
Wiek: 25 Na forum: 4512 dni Posty: 629
Nick w MP: killer_cyc[DDS]
Piwa : 1659
podaj b??dy db3 i czy czasami czego? nie rusza?e? typu dodawanie nowych rang??
Wysłany: 2019-07-12, 22:09
maciek553
Wiek: 26 Na forum: 3455 dni Posty: 10
Piwa : 1
"killercycDDS" napisał/a :podaj b??dy db3 i czy czasami czego? nie rusza?e? typu dodawanie nowych rang??
mam DB DB2 pystories-db to kt?re da? ?
Nie NIe
Wysłany: 2019-07-12, 22:27
killercycDDS
Migacz
Wiek: 25 Na forum: 4512 dni Posty: 629
Nick w MP: killer_cyc[DDS]
Piwa : 1659
Wysłany: 2019-07-12, 22:33
maciek553
Wiek: 26 Na forum: 3455 dni Posty: 10
Piwa : 1
[ Dodano : 2019-07-12, 22:47 ]
"killercycDDS" napisał/a :
[19-07-13 00:58] ERROR: [skrypty]/pystories-domy/util.lua:5: attempt to call method 'find' (a nil value)
[19-07-13 00:58] WARNING: [bazadanych]/pystories-db/s_db.lua:22: dbPoll failed; Table '749840_ss.pystories_organization_list' doesn't exist
[19-07-13 00:58] WARNING: [skrypty]/pystories-core/s_base.lua:185: Bad argument @ 'getElementData' [Expected element at argument 1, got nil]
[19-07-13 00:58] WARNING: [skrypty]/pystories-core/s_base.lua:185: Bad argument @ 'setElementModel' [Expected number at argument 2, got boolean]
Tagi: serwer :: szuszarka :: admins :: duty
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: