Witam mam rh podpi?te ?adnie wszystko i nie wiem czemu nie dzia?a podpi?te pod pystories
Server
[lua]function getVehicleHandlingProperty ( element, property )
if isElement ( element ) and getElementType ( element ) == "vehicle" and type ( property ) == "string" then
local handlingTable = getVehicleHandling ( element )
local value = handlingTable[property]
if value then
return value
end
end
return false
end
function o(c)
if c then
local gora = getElementData(c, "rh:up") or 0
local s=getVehicleHandlingProperty(c,"suspensionForceLevel")
if tonumber(gora) == 4 then exports["1"]:outputNotificationBox (getVehicleController(c), "#cc0000Osi?gn??e? limit regulacji zawieszenia!") cancelEvent() return end
setVehicleHandling(c,"suspensionForceLevel",tonumber(s) - 0.16)
setElementData(c, "rh:up", gora+1)
exports["1"]:outputNotificationBox (getVehicleController(c), "#00ccccAuto zosta?o obni?one!")
end
end
addEvent("rh:o", true)
addEventHandler("rh:o", root, o)
function p(c)
if c then
local gora = getElementData(c, "rh:up") or 0
local s=getVehicleHandlingProperty(c,"suspensionForceLevel")
if tonumber(gora) == -8 then exports["1"]:outputNotificationBox (getVehicleController(c), "#cc0000Osi?gn??e? lim...
Witam posiadam tu kod od ironman czy jakos tak i gdy pisz? /pojazd ID NICK, czyli np /pojazd 588 Allansso to sie respi ale gdy chce zrespic graczowi pojazd to pisze /pojazd 600 krystian to zamiast jego to mi sie respi pojazd co tu nie dziala?
[code]
--Skrypt by Irons--
--Mo?esz u?ywa? tego kodu, i go edytowa?.. ale wspomnij gdzie? o autorze
addEventHandler("onResourceStart",resourceRoot,function() -- Funkcja kt?ra sprawdza czy posiadamy tabel? w registry.db, je?li nie to j? tworzy
local state = executeSQLQuery("CREATE TABLE IF NOT EXISTS pojazdy (id INT, model INT, owner TEXT, kolor1 INT, kolor2 INT, kolor3 INT, kolor4 INT, kolor5 INT, kolor6 INT, posx FLOAT, posy FLOAT, posz FLOAT, rotz FLOAT)")
if state then
outputDebugString("* Utworzono tabel?")
else
outputDebugString("* Nie utworzono tabeli")
end
end)
--JE?LI NIE ZNASZ SI? NA MYSQL / SQL ANI LUA TO NIC NIE EDYTUJ!!!!!!
local auta = {} -- tabela z autami
addCommandHandler("pojazd",function(plr,cmd,modelid,gracz) -- komenda /pojazd <id pojazdu> <nick gracza>
if modelid and gracz then -- sprawdzamy czy podalismyy wszystkie argumenty
modelid = tonumber(modelid)
if modelid then
local x,y,z = getElementPosition(plr)
local pojazd = createVehicle(modelid,x,y,z,0,0,0) --tworzymy pojazd
if not pojazd then
outputChatBox("* Nie uda?o si? utworzy? pojazdu!",plr) return end
table.insert(auta,pojazd)
setElementData(pojazd,...
Witam mam taki ?e gdy wrzucam GM / pluginy / include na Hosting ServerProject.eu to w logach serwer odpalony nie wy??cza si? nic ale gdy si? na niego wbija to nie da si? z nim po??czy? ! co zrobi?? nie jest tak tylko na 1 GM ! tylko na 2 moich GM! jakie? rozwi?zania ? wgrywam wszystkie potrzebne pluginy i include
Witam!
Mam problem gdyz na mojej rozdzielczosci dziala ladnie wszystko czyli 1920 na 1080 a jak wejda inni to maja wszystko inaczej juz probowalem to ustawic pomoze ktos?!
Witam pomozecie mi bo nie wiem dlaczego mi nie dziala ten skrypt, kiedys normalnie dzialal a dzisiaj nie chce wogole, nic sie nie dzieje po strzale z paralizatora.
Witam mam problem z kick wszystko okej tylko gracza nie wywala
addCommandHandler("k", function(plr,cmd,cel,...)
if getAdmin(plr,4) or getAdmin(plr,3) or getAdmin(plr,2) or getAdmin(plr,1) then
local reason=table.concat({...}, " ")
if not cel or not reason then
outputChatBox("* U?ycie: /kick <nick/ID> <pow?d>", plr)
return end
local target=exports["ogrpg-core"]:findPlayer(plr,cel)
if not target then
outputChatBox("* Nie znaleziono podanego gracza.", plr, 255, 0, 0)
return end
triggerClientEvent(root, "admin:rendering", root, "* "..getPlayerName(target):gsub("#%x%x%x%x%x%x","").."("..getElementData(target,"id")..") zosta?(a) wyrzucony(a) przez ' "..getPlayerName(plr):gsub("#%x%x%x%x%x%x","").." ' z powodu: "..reason.."") kickPlayer(target, plr, reason) end
end)
Witajcie nie dziala mi tuner po wejsciu w marker nic sie nie pokazuje brak db3
[code]--[[
Resource: OURGame v2
Developers: Split <[email protected]>
You have no right to use this code without my permission.
(c) 2015 <[email protected]>. All rights reserved.
]]
local jobs={
["tuner-sf"]={
code="tuner-sf",
desc="Praca Tunera",
desc2="",
positionMarker={-2270.89,-149.22,35},
text="* Nie jeste? zatrudniony(a) jako tuner w tym warsztacie.",
cuboid={-2297.40,-158.27,34.5, 44, 55.75, 6.5},
maxEmployees=2,
},
}
for i,v in pairs(jobs) do
local marker=createMarker(v.positionMarker[1], v.positionMarker[2], v.positionMarker[3]-0.90, "cylinder", 1.2, 78, 255, 0, 155)
setElementDimension(marker, v.positionMarker[5] or 0)
setElementInterior(marker, v.positionMarker[4] or 0)
setElementData(marker,"m:duty",v.code or 0)
local cs= createColCuboid(v.cuboid[1],v.cuboid[2],v.cuboid[3],v.cuboid[4],v.cuboid[5],v.cuboid[6])
setElementData(cs,"m:duty",v.code)
addEventHandler ( "onColShapeLeave", cs, function(el,md)
if getElementData(el,"player:duty") == getElementData(source,"m:duty") then
setElementData(el,"player:duty",false)
outputChatBox("Wyszed?e? poza teren Tunera.", el)
local skin=getElementData(el,"player:skin")
setElement...
Witam pobralem sobie dzis z GTAO nowy hud na serwer.
niestety, nie chce dzialac lub ja roibe cos zle.
robilem tak :
1) pobralem sobie hud'a z gtao.pl
2) wypakowalem i wzialem tylko folder
3) wylaczylem serwa
4) wlozylem folder z tego hudu na serwer w server>mods>deathmath>resources
5) wlaczylem serwer
6) wchodze w panel adma szukam 'hud' i nie wyskakuje mi .
co robic?
to ten hud: http://www.gtao.pl/%3Cfon...ghlight=#648278
za pomoc daje zimne
chcialbym poprosic o pomoc w skrypcie. b?ad polega na tym ze jezeli wgralem plik na serwer on nie che sie uruchomic, nie chce dzilac(ten plik)
serwer
[lua]
for k, v in pairs(vehiclePos) do
car = createVehicle(408, v[1], v[2], v[3])
setElementFrozen(car, true)
setElementData(car, "pojazd_paliwo", 100)
setElementData(car, "przebieg", math.random(100, 300))
setElementData(car, "pojazd_opis", "Ladunek : 0%")
setVehicleEngineState(car, false)
end
addEventHandler("onVehicleEnter", resourceRoot, function(plr, seat)
if seat == 0 then
if getElementData(plr, "graczPraca") == false then
setElementData(plr, "graczPraca", true)
setElementFrozen(source, false)
outputChatBox("Rozpoczo?es/a? prac? jako Kurier!!", plr)
triggerClientEvent(plr, "courier_job", resourceRoot)
else
outputChatBox("Aktualnie posiadasz inna prac?. Zako?cz j? i wr??!", plr)
end
end
end)
function checkVeh()
for k, v in pairs(getElementsByType("vehicle", resourceRoot)) do
if not getVehicleController(v) then
respawnVehicle(v)
setElementFrozen(v, true)
setElementData(car, "pojazd_opis", "Ladune...
Nie dziala timer dla zmniejszania glodu dla gracza powyzej id 0, tylko dla id 0 dziala. Czytalem mnostwo tematow, ale zaden mi nie pomogl, dlatego pisze tutaj.
Wyrzuca blad ze nie ma zdefinowanego playerid. Wrzucilem timer do "OnPlayerConnect". Ju? nie wyrzuca warningow przy konwertowaniu, lecz nadal nie zabiera zarcia, tylko dla id 0. Macie pomysl jak to naprawic ?
function praca ( thePlayer )
if isElementWithinMarker(thePlayer, marker) then
setElementModel ( thePlayer, 275 )
else outputChatBox("Nie jeste? w markerze , wpisz /zacznij-prace aby rozpocz??!", 255, 0, 0) end
end
addCommandHandler("zacznij-prace", skrypt)
mam problem bo nie dziala mi skrypt na zmiane skina
kod:
function dajskin ( thePlayer ). createMarker ( 1493.0822753906, -1770.8785400391, 18.795755386359, "cylinder",1.5,255,255,255, 170 ) setElementModel ( thePlayer,1 ) end
end
addEventHandler ("skin", dajskin )
i wyskakuje mi takie cos jak wlaczam skrypt:
SCRIPT ERROR: skin/markerskin.lua:1: unexpected symbol near '.'
ERROR: Loading script failed: skin/markerskin.lua:1: unexpected symbol near
Siemka, a wi?c przejd? do rzeczy ostatnim razem nie mog? poradzi? sobie z gamemodem. Pierwszy raz go odpali?em i dzia?a? normalnie wszystko okey, po oko?o 1 miesi?cu chcia?em to zrobi? ponownie i gdy gamemod si? za??czy i wchodz? na serwer mam poda? chas?o wpisuje has?o i po wpisaniu nic si? nie dziej? po prostu pokazuj? si? wybiera?ka skin?w (same te szcza?eczki z napisem spawn) co w mapie RolePlay powinno omin??. Prosi? bym bardzo o rozwi?zanie tego problemu i z g?ry dzi?kuj?.
Je?eli chcecie to dodam ss'y lub kod pawn. (Rejestracja kont nie jest w public OnPlayerConnect(playerid) tylko tym 2 sposobem)
Wie kto? jak zrobi? zapis kont bankowych w tym skrypcie ? :
[code]
/******************************************************************************/
//=========================== Script Bankomaty, karta by Sp3nNc3r ==============//
// Dla GTAO.pl
/******************************************************************************/
Mapa FullDM By DrShadow mi nie dzia?a wszystko wgra?em na ftp, czy mo?e to jest skutek tego, ?e serwer mam na 0.3x a temat by? za?o?ony w 2012? - inna wersja samp.
Link do mapy:
Logi serwera:
[code]
[13:10] 419
[13:10] AllowAdminTeleport() : function is deprecated. Please see OnPlayerClickMap()
[13:10] -----------------------------------
[13:10] Loaded 9 filterscripts.
[13:10] --------------------------------------
[13:10] Radio Internetowe na Server
[13:10] *** Audio Plugin: Started TCP server on port 3510
--------------------------------------
[13:10]
[13:10] Loading filterscript 'radio.amx'...
[13:10] *** Streamer Plugin: Include file version (unknown version) does not match plugin version (0x26105) (script needs to be recompiled with the latest include file)
[13:10] *** Streamer Plugin: Obsolete or invalid native "Streamer_VerifyCheckpoint" found (script needs to be recompiled with the latest include file)
[13:10] *** Streamer Plugin: Obsolete or invalid native "Streamer_VerifyPickup" found (script needs to be recompiled with the latest include file)
[13:10] *** Streamer Plugin: Obsolete or invalid native "Streamer_RemovePlayer" found (script needs to be recompiled with the latest include file)
[13:10] *** Streamer Plugin: Obsolete or invalid native "Streamer_AddPlayer" found (script needs to be recompiled with the latest include file)
[13:10] *** Streamer Plugin...
[b]Witam mam tak? rejestracj? jak podaj? poni?ej ca?y kod skrypt dzia?a wszystko jest ok ale po zarejestrowaniu si? nie ma logowania tylko jest ponownie rejestracja oznacza to ?e czego? brakuje w FTP tylko czego prosz? was o pomoc...[/b]
addEvent("onKilledZombies",true)
addEventHandler("onKilledZombies",root,
function (killer)
addPlayerKilledZombies(killer)
end)
function addPlayerKilledZombies(killer)
local account = getPlayerAccount(killer)
if isGuestAccount(account) then return end
local killedZombies = getAccountData(account,"killed zombies")
if not killedZombies then setAccountData(account,"killed zombies",0) end
setAccountData(account,"killed zombies",tonumber(killedZombies)+1)
setElementData(killer,"killed zombies",tonumber(killedZombies)+1)
end
addEventHandler("onPlayerLogin",root,
function ()
local account = getPlayerAccount(source)
if isGuestAccount(account) then return end
local killedZombie = getAccountData(account,"killed zombies")
if killedZombie then
setElementData(source,"killed zombies",tostring(killedZombies))
else
setElementData(source,"killed zombies",0)
Witam postanowi?em zrobi? tak? komend? na serwer ale jest problem poniewa?
jak wpisz? /afk dobrze daje mi freeze pisz? pod nickiem AFK i na czacie ?e jestem teraz AFK ale gdy wpisz? drugi raz /afk to nie chc? mnie odmrozi? ani nic tylko ca?y czas powtarza to samo co powinno by? po wpisaniu pierwszy raz /afk
ustalam haslo i loguje, ale jak zrobic, zeby zapisac haslo,czyli,, ja jako admin wpisze /asapd kloc i zeby po restarcie servera drugi raz sie nie logowac na adma i nie ustalac hasla, zapisac je, zeby odrazu sie zalogwac nim. I drugie
oskryptowanie auta mam, dodaje je do mapy, ustalam pdt = addstaticvehicleex i dalej tam auto, nie ma errorow, nie mam warningow, a nie musze byc pdkiem by wsiadac do auta, nie wywala nic ;/ nie dziala. Pomozecie? Zimne :...