Potrzebuje pomocy
Gdy wpisuje np. /k 3 to kickuje mnie samego siebie
tak samo jest z banami oraz warnami
[code]addCommandHandler("k", function(plr,cmd,cel,...)
if getAdmin(plr,5) or getAdmin(plr,3) or getAdmin(plr,4) or getAdmin(plr,2) or getAdmin(plr,1) then
local reason=table.concat({...}, " ")
if not cel or not reason then
exports.dmta_interface:showPlayerNotification(plr, "/k [nick/id] [powod]", "error", 1, 3000)
return
end
local target=exports["dmta_core"]:findPlayer(plr,cel)
if not target then
exports.dmta_interface:showPlayerNotification(plr, "Nie znaleziono gracza", "error", 1, 3000)
return
end
if getAdmin(target, 5) then
target = plr
end
triggerClientEvent(root, "admin:rendering", root, ""..getPlayerName(target):gsub("#%x%x%x%x%x%x","").." ["..getElementData(target,"id").."] zosta?‚(a) wyrzucony(a) przez ["..getElementData(plr,"id").."] "..getPlayerName(plr):gsub("#%x%x%x%x%x%x","").." z powodu: "..reason.."")
local desc = "[#ff6600KICK#FFFFFF] ["..getElementData(target,"id").."] "..getPlayerName(target):gsub("#%x%x%x%x%x%x","").." zosta?‚(a) wyrzucony(a) przez ["..getElementData(plr,"id").."] "..getPlayerName(plr):gs...
Witam mam oto taki skrypt na kajdanki dla frakcji SAPD
[code]function findPlayer(plr,cel)
local target=nil
if (tonumber(cel) ~= nil) then
target=getElementByID("p"..cel)
else -- podano fragment nicku
for _,thePlayer in ipairs(getElementsByType("player")) do
if string.find(string.gsub(getPlayerName(thePlayer):lower(),"#%x%x%x%x%x%x", ""), cel:lower(), 0, true) then
if (target) then
triggerClientEvent(plr, 'onClientCaseShowing', root, 1,'Znaleziono Wi?cej U?ytkownik?w O Podobnym Nicku')
return nil
end
target=thePlayer
end
end
end
if target and getElementData(target,"p:inv") then return nil end
return target
end
kaj = {}
function zalozkaj(plr, cmd, target)
if not target then
triggerClientEvent(plr, 'onClientCaseShowingsse', root, 1,'U?yj Komendy: /Zakuj [Id U?ytkownika]')
return
end
local gracz = findPlayer(plr, target)
if getElementData(plr,"player:faction") and getElementData(plr,"player:faction") == "SAPD" then
if getElementData(plr, "kajdanki") == false then
local gracz = getPlayerName(gracz)
local gracz = getPlayerFromName(gracz)
local x2,y2,z2 = getElementPosition(gracz)
local x,y,z = getElementPosition(plr)
if (getDistanceBetweenPoints3D(x,y,z,x2,y2,z2)<20) then
toggleControl(gracz, "enter_exit", false)
toggleControl(gracz, "enter_passenger...
Do pojazd?w z GTA SA mo?na dodawa? nowe warianty nawet je?eli one ich wcze?niej nie mia?y i za pomoc? odpowiedniej funkcji w MTA mo?na je aktywowa?. Jednak z tego co zauwa?y?em mo?na dodawa? nowe warianty do ju? istniej?cego pojazdu. One w tedy dzia?aj? jak nale?y. Pr?bowa?em te? np. zrobi? tak ?eby ten sam pojazd mia? dwie r??ne karoserie np. z dachem i bez ale nie dzia?a?o to do ko?ca jak trzeba bo by?a wy?wietlana ta pierwsza wersja albo ta druga. I tu mam pytanie, czy da si? zrobi? w?a?nie tak ?e ten samoch?d by?by spawnowany w tej i w tej wersji?
Jak wszyscy zapewne wiemy wprowadzenie do gier takich jak Red Dead Redemption czy GTA IV trwa bardzo d?ugo. Sporo czasu musi min?? zanim chwycimy za jak?? porz?dniejsz? bro?. Rockstar North nie zamierza powtarza? b??d?w z przesz?o?ci i obiecuje, ?e akcja GTA V rozwinie si? znacznie szybciej, ani?eli mia?o to miejsce w przypadku poprzednich ods?on serii.
G?os w sprawie tej zabra? Leslie Benzies powiedzia?: