Gdy nak?adam kajdanki, to potem jak jeszcze raz napisze kajdanki to nie zdejmuje tylko ponownie zak?ada kajdanki, jak si? RC zrobi to nie ma si? ju? wiecie jak to naprawi?, Prosze o pomoc bo nie wiem co robi?.
function blokada ( player, seat, jacked )
local kategoria = getElementData(player, "kajdanki")
if kategoria ~= false then
if ( not policeVehicles[getElementModel(source)] ) then
cancelEvent()
outputChatBox("#FF0000Masz kajdanki i nie mo?esz wsi??? do tego pojazdu.",player,255, 0, 0, true)
end
end
end
addEventHandler ("onVehicleStartEnter", getRootElement(), blokada)
function kajdankii ( player, cmd, gracz )
if getElementData(player,'player:duty') and getElementData(player,'player:duty')=='SAPD' then
if not (gracz) then
outputChatBox("B??d! U?yj: /kajdanki <nick/ID> ",player)
return
end
local targetElement=exports['ogrpg-core']:findPlayer(player, gracz)
if targetElement then
local x, y, z = getElementPosition(player)
local tx, ty, tz = getElementPosition(targetElement)
local distance = getDistanceBetweenPoints3D(x, y, z, tx, ty, tz)
if (distance<=10) then
local dokogo=getElementData(targetElement,"kajdanki")
if (not dokogo or not isElement(dokogo)) then
toggleControl(targetElement, "sprin...
Co mam zrobi?? bo nie wiem , Bo chce zrobi? 6 miejsc na tunera, a potem jak to robie i chce zamontowa? cz?s?, nie dzia?a montowanie i taki mi w?asnie problem wyskakuje w konsoli...
[2017-05-24 18:09] ERROR: Client (#FCD307LeFeS) triggered serverside event montazElementu, but event is not added serverside
Witam, jestem nowym w lua itd... Ale ostatnimi czasami zacz??em tworzy? serwer p?? skrypty z internetu i p?? prawie jakby autorskie z pomoc? innych koleg?w.
Ale nie mog? si? zalogowa?.
[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.
]]
function sprawdzorganizacje(plr)
local x = exports['ogrpg-db']:dbGet("SELECT spawn from ogrpg_organization_list join ogrpg_organizations on ogrpg_organizations.code = ogrpg_organization_list.id WHERE uid=? and not(spawn=?)",getElementData(plr,"player:uid"),"0,0,0")
if x and #x > 0 then
local t = split(x[1].spawn, ",")
return
end
return false
end
addEvent("logging:checkAccount", true)
addEventHandler("logging:checkAccount", resourceRoot, function(login,pass)
local result=exports["ogrpg-db"]:dbGet("SELECT * FROM ogrpg_users WHERE login=?", login)
if result and #result > 0 then
if result[1].login == login and result[1].pass == md5(pass) then
local query=exports["ogrpg-db"]:dbSet("UPDATE ogrpg_users SET pass=? WHERE login=?",teaEncode(pass,"Ryjek"),login)
triggerClientEvent(client, "logging:result", resourceRoot, false, "Zaaktualizowano twoj profil! Zaloguj sie ponownie!.")
return
end
if result[1].login == login and result[1].pass == teaEncode(pass,"Ryjek") then
for k, v in ipairs(getElemen...
Witam,
Mam problem oto? nie moge zmieni? lss-bankomaty na swoj? baze danych prosze o pomoc
Tutaj kawa?ek kodu - W odpowiedziach prosz? napisa? co mam doda? / zmieni?
[code]--[[
@author Lukasz Biegaj <[email protected]>
@copyright 2011-2013 Lukasz Biegaj <[email protected]>
@license Dual GPLv2/MIT
@todo przerobic z zasobu DB na DB2
]]--
local function getPlayerID(plr)
local c=getElementData(client,"character")
if not c or not c.id then return nil end
return tonumber(c.id)
end
addEvent("onPlayerRequestATMInfo", true)
addEventHandler("onPlayerRequestATMInfo", resourceRoot, function()
local c=getElementData(client,"character")
if not c or not c.id then
triggerClientEvent(client,"doFillATMInfo", resourceRoot, false)
return
end
local dbid=tonumber(c.id)
if not dbid then
triggerClientEvent(client,"doFillATMInfo", resourceRoot, false)
return
end
local sr=exports.DB:pobierzWyniki("SELECT bank_money FROM lss_characters WHERE id="..(tonumber(dbid) or 0).." LIMIT 1")
if not sr or not sr.bank_money then
triggerClientEvent(client,"doFillATMInfo", resourceRoot, false)
return
end
triggerClientEvent(client,"doFillATMInfo", resourceRoot, true, tonumber(sr.bank_money))
end)
6. Pisz?c pro?b? o pomoc w uruchomieniu danego gamemoda, musisz poda? logi serwera oraz opisa? dany problem.
Witajcie niewiedzia?em czy to dobry temat ale m?j problem jest nastepujacy
Pr?bowalem odpali? wiele gamemod?w na moim serwerze kazdy z baza danych chyba
zawsze wyskakuje mi ten sam error
Oczywiscie chce odpali? serwer na wersji gry v0.3.7-R2, (C)2005-2015 SA-MP Team
chcia?bym odpali? ten o to gamemode "[DM] GPPv2 "
Logi :
[scroll] SA-MP Dedicated Server
----------------------
v0.3.7-R2, (C)2005-2015 SA-MP Team
[16]
[16] Server Plugins
[16] --------------
[16] Loading plugin: streamer
[16] Failed (plugins/streamer: cannot open shared object file: No such file or directory)
[16] Loading plugin: mysql
[16] Failed (plugins/mysql: cannot open shared object file: No such file or directory)
[16] Loading plugin: whirlpool
[16] Failed (plugins/whirlpool: cannot open shared object file: No such file or directory)
[16] Loading plugin: sscanf
[16] Failed (plugins/sscanf: cannot open shared object file: No such file or directory)
[16] Loaded 0 plugins.
Prosze O Odpowiec Postawie Zimne Piwo Jak Powiedz? Czy P?jdzie albo jakie gry p?jd? w CSGO na Ustawienia Srednich 50-40fps spadaj?ce do 10fps na max 5 sekund
Witam, wyt?umaczy? by mi kto? jak wgra? map? Do MTA na m?j serwer? Prosi?bym o nie branie poradnik?w z google/youtube ogl?da?em wszystkie i dalej nie wiem jak to zrobi?. Wgrywaj?c map?, u?ywam FTP na hostingu pukawka.pl. Daje piwa!!!!
Witam pisze tutaj bo nie wiem gdzie mam umie?ci? ten temat. Wiec mam taki problem ?e stawiam sobie serwa 0.3z i na czystych plikach jest ok mog? je?dzi? autem ale jak postawie np na "honest" czy te? jakie? jego przer?bce, to wsiadam do auta i buguje mi gr?. Wiecie co mo?na z tym zrobi? ?
Witam pisze tutaj bo nie wiem gdzie mam umie?ci? ten temat. Wiec mam taki problem ?e stawiam sobie serwa 0.3z i na czystych plikach jest ok mog? je?dzi? autem ale jak postawie np na "honest" czy te? jakie? jego przer?bce, to wsiadam do auta i buguje mi gr?. Wiecie co mo?na z tym zrobi? ?
Witam serdecznie. Nie wiem czemu ale mam problem z bind key. Chodzi o to ?e mam 2 skrypty. Jeden na panel auta a drugi panel info. Panel auta jest pod bindem LSFIHT a panel info jest pod F1. I sprawa jest taka, ?e jak robie bind do panelu info tym kodem: