| Tematy otagowane jako: zmienienie |
| 1. Zmienienie przycisku Latania |
Witam , Chcia?bym sie zapytac jak zmieni? przycisk latania z przycisku z na przycisk x w skrypcie Pystories-admins , Za Pomoc Daje +Rep i Piwo
Pozdrawiam |
| 2. Zmienienie kordów... |
Mam tutaj taki kod:
[lua]createBlip(2874.69, 2205.35, 10.90, 27,2,0,0,0,0,0,275)
local stanowiskaSwiatla = {
stanowiskoDoherty={
mpos={2890.13, 2212.39, 10.90}, -- marker
job_id="tuner-lv", -- (id) frakcja kt?ra b?dzie mia?a dost?p
text="Monta? tuningu"
},
}
for i,v in pairs(stanowiskaSwiatla) do
v.cuboid=createColSphere(2880.1813964844, 2203.94140625, 10.895449638367, 4)
v.marker=createMarker(v.mpos[1], v.mpos[2], v.mpos[3]-1, "cylinder", 1.5, 0, 255, 0, 75)
setElementData(v.marker,"marker:duty",v.job_id)
setElementData(v.marker,"marker:cuboid",v.cuboid)
t=createElement("text")
setElementData(t,"name",v.text)
setElementPosition(t,v.mpos[1], v.mpos[2], v.mpos[3])
addEventHandler("onMarkerHit", v.marker, function(el,md)
if getElementType(el)~= "player" then return end
local cs=getElementData(source, "marker:cuboid")
if not cs then return end
local job=getElementData(source,"marker:duty")
local ljob=getElementData(el,"gracz:frakcja")
if job ~= ljob then
outputChatBox("* Nie jeste? zatrudniony w tym warsztacie.", el, 255, 0, 0)
return
end
local vehicles=getElementsWithinColShape(cs,"vehicle")
if #vehicles < 1 then
outputChatBox("* Na stanowisku monta?u nie ma ?adnego pojazdu.", el,255, 0, 0)
return
end
if #vehicles > 1 then
outputChatBox("* Na st... |
| 3. Prośba o zmienienie tego z SQL na MySQL |
Prosz? ?eby kto? zrobi? tak ?ebym tylko musia? uzupe?ni? dane do bazy tutaj daje kod.
[code]function saveallvehicles(modelID)
executeSQLDropTable ( "vehiclesaver" )
executeSQLCreateTable ( "vehiclesaver", "VehicleID INTEGER, px REAL, py REAL, pz REAL, rx REAL, ry REAL, rz REAL, Color1 INTEGER, Color2 INTEGER, Health REAL, upgrades TEXT, paintjob INTEGER, Hood INTEGER, Trunk INTEGER, FrontLeft INTEGER, FrontRight INTEGER,RearLeft INEGER, RearRight INEGER, FrontLeftPanel INTEGER, FrontRightPanel Integer, RearLeftPanel Integer, RearRightPanel Integer,Windscreen Integer,FrontBumper Integer, RearBumper Integer,FLL Integer,FRL Integer,RLL Integer, RRL Integer, VehOvL Integer, HR Real,TR Real,FLR Real,FRR Real, RLR Real, RRR Real,WFL Integer, WRL Intger, WFR Integer, WRR Integer, VehSirena Integer, EngineState Integer, XTUR Real, YTUR Real" )
local vehicles = (getElementsByType("vehicle"))
for i, vehicle in pairs (vehicles) do
local id = (getElementModel(vehicle))
if id == 602 or id == 545 or id == 496 or id == 517 or id == 401 or id == 410 or id == 518 or id == 600 or id == 527 or id == 436
or id == 589 or id == 580 or id == 419 or id == 439 or id == 533 or id == 549 or id == 526 or id == 491 or id == 474 or id == 445
or id == 467 or id == 604 or id == 426 or id == 507 or id == 547 or id == 585 or id == 405 or id == 587 or id == 409 or id == 466
or id == 550 or id == 492 or id == 566 or id == 546 or id == 540 o... |
|