Mam taki problem, ?e po wpisaniu komendy /b i /k poka?e si? komunikat o tym, ?e kto? zosta? zbanowany lub wyrzucony ale nie wywala to ich lub nie banuje na serwerze czyli tak jakby te komendy nie dzia?a?y.
[lua]
function cmd_pkick(plr, cmd, target, ...)
if getAdmin(plr,4) or getAdmin(plr,3) or getAdmin(plr,2) or getAdmin(plr,1) or getAdmin(plr,5) or getAdmin(plr,6) then
if not target or not ... then
outputChatBox("#007aff(ⓘ) #FFFFFFU?yj /k [ID/Nazwa gracza] [Pow?d]", plr, 255, 255, 255, true)
return
end
local player = exports["pystories-core"]:findPlayer(plr,target)
local text = table.concat({...}, " ")
if player then
triggerClientEvent(getRootElement(), "notiBig", getRootElement(), "Gracz "..getPlayerName(player):gsub("#%x%x%x%x%x%x","").." zostaje wykopany/a przez "..getPlayerName(plr):gsub("#%x%x%x%x%x%x","").. " z powodu: "..text, text)
outputConsole(" ", player)
outputConsole("Zosta?e? wykopany z serwera!", player)
outputConsole("Osoba wyrzucaj?ca: "..getPlayerName(plr):gsub("#%x%x%x%x%x%x",""), player)
outputConsole("Pow?d: "..text, player)
outputConsole(" ", player)
kickPlayer(player, getPlayerName(plr), "Sprawd? swoj? konsol? (~)")
end
end
end
addCommandHandler("k", cmd_pkick)
addCommandHandler("... |