Wysłany: 2021-01-10, 15:04
Frixen
Wiek: 28 Na forum: 2851 dni Posty: 61
Nick w MP: Frixenek
Piwa : 1040
witam jak mam zrobi? ?e jak przymujesz rapsa to pisze tam pow?d przyj?cia np. Id?!
Za Pomoc Daje Piwko i respekt ++
Wysłany: 2021-01-10, 16:27
TheSebaPL
Mod-team
Wiek: 21 Na forum: 3098 dni Posty: 964
Piwa : 3102
Wystarczy poszuka? po paczkach. Masz tutaj gotowy kod.
addCommandHandler ( "cl" , function( plr , cmd , id ,...)
if not getAdmin ( plr ) then
return
end
local reason = table . concat ({...}, " " )
if not id then return end
if not reason then return end
local target = exports [ "pystories-core" ]: findPlayer ( plr , id )
opis = "Brak Online"
if target then
id = getElementData ( target , "id" )
opis = getPlayerName ( target )
if target ~= plr and not getAdmin ( target ) then
end
end
if not reason then
reason = "Brak"
end
for i , v in ipairs ( getElementsByType ( "player" )) do
if getElementData ( v , "player:admin" ) then
triggerEvent ( "admin:removeReport" , resourceRoot , id )
local raporcik = getElementData ( plr , "admin:reporty" ) or 0
outputChatBox ( "ⓘ #ffffff " .. getPlayerName ( plr ): gsub ( "#%x%x%x%x%x%x" , "" ).. " rozpatrzy?/a zg?oszenie gracza " .. getPlayerName ( target ): gsub ( "#%x%x%x%x%x%x" , "" ).. ". Odpowied?: " .. reason .. "" , v , 0 , 144 , 255 , true )
end
end
outputChatBox ( "ⓘ #ffffff Twoje zg?oszenie zosta?o przyj?te przez " .. getPlayerName ( plr ): gsub ( "#%x%x%x%x%x%x" , "" ).. "" , target , 0 , 144 , 255 , true )
outputChatBox ( "ⓘ #ffffff Odpowied?: " .. reason .. "" , target , 0 , 144 , 255 , true )
end )
Wysłany: 2021-01-10, 16:35
Maniekxx
Amator
Wiek: 24 Na forum: 2894 dni Posty: 232
Nick w MP: Maniekxx
Piwa : 225
Nic trudnego, w funkcji dopisujesz jeszcze jeden argument:
function delete_raport ( arg_1 , arg_2 , reason )
if not reason or string . len ( reason ) <= 3 then
outputChatBox ( "* Podaj wi?ksz? ilo?? znak?w. Minimalna to 3" , arg_1 , 255 , 0 , 0 )
return end
for i , v in ipairs ( getElementsType ( "player" )) do
if getElementData ( v , "admin" ) then
outputChatBox ( "* " .. getPlayerName ( arg_1 ) .. " usun??/a raport " .. arg_2 .. " pow?d " .. reason , v , 255 , 0 , 0 )
end
end
end
Tagi: powod :: raporta :: jak :: sie :: przyjmie
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: