Chcia?bym ?eby kto? mi pom?g? z pobraniem z bazy danych, ju? mam tak? zamu?e ?e nie mog? wykombinowa? a to jedna linijka probably
Tu skrypty na ttv, ttp i vehowner
[code]function ttv(plr,cmd,id)
local account = getPlayerAccount(plr)
local name = getAccountName(account)
if not isObjectInACLGroup("user."..name, aclGetGroup("Admin")) then return end
if id then
local id = tonumber(id)
local v = znajdzpojazd(id)
if v then
warpPedIntoVehicle(plr,v)
outputChatBox("Teleportowano do pojazdu o ID: "..id,plr,255,0,0,true)
else
outputChatBox("Nie znaleziono pojazdu o takim ID.",plr,255,0,0,true)
end
else
outputChatBox("Nie wpisa?e? ID pojazdu.",plr,255,0,0,true)
end
end
addCommandHandler("ttv",ttv)
function ttp(plr,cmd,id)
local account = getPlayerAccount(plr)
local name = getAccountName(account)
if not isObjectInACLGroup("user."..name, aclGetGroup("Admin")) then return end
if id then
local id = tonumber(id)
local v = znajdzpojazd(id)
if v then
local x,y,z = getElementPosition(plr)
setElementPosition(v,x,y,z)
setElementPosition(plr,x,y,z+3)
outputChatBox("Teleportowano pojazd o ID: "..id,plr,255,0,0,true)
else
outputChatBox("Nie znaleziono pojazdu o takim ID.",plr,255,0,0,true)
end
else
outputChatBox("Nie wpisa?e? ID pojazdu.",plr,255,0,0,true)
end
end
addCommandHandl...
Witam mam skrypt z GTAONLINE vehiclecomand czy jako? tak gdy mia?em ten skrypt na suchym jeszcze nei wykupionym sewerze wszystko dzia?a?o ale problem zacz?? si? wtedy gdy wykupi?em serwer wgra? skrypt wpisuje ttv lub ttp i nic nie dzia?a dam wam ca?y skrypt
PS:Za pomoc stawiam zimne
function ttv(plr,cmd,id)
local account = getPlayerAccount(plr)
local name = getAccountName(account)
if not isObjectInACLGroup("user."..name, aclGetGroup("Moderator")) then return end
if id then
local id = tonumber(id)
local v = znajdzpojazd(id)
if v then
warpPedIntoVehicle(plr,v)
outputChatBox("Teleportowano do pojazdu o ID: "..id,plr,255,0,0,true)
else
outputChatBox("Nie znaleziono pojazdu o takim ID.",plr,255,0,0,true)
end
else
outputChatBox("Nie wpisa?e? ID pojazdu.",plr,255,0,0,true)
end
end
addCommandHandler("ttv",ttv)
function ttp(plr,cmd,id)
local account = getPlayerAccount(plr)
local name = getAccountName(account)
if not isObjectInACLGroup("user."..name, aclGetGroup("Moderator")) then return end
if id then
local id = tonumber(id)
local v = znajdzpojazd(id)
if v then
local x,y,z = getElementPosition(plr)
setElementPosition(v,x,y,z)
setElementPosition(plr,x,y,z+3)
outputChatBox("Teleportowano pojazd o ID: "..id,plr,255,0,0,true)
else
...