Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.
GTAONLINE.PL
Tematy otagowane jako: warnuje
1. Banuje, kickuje lub warnuje samego siebie
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...