Wysłany: 2017-10-13, 20:18
Kunker
Wiek: 29 Na forum: 3200 dni Posty: 34
Piwa : 85
siema ostatnio robie autorski serwer zabawy i bedzie on pod ACL. Teraz robie komendy dla chatmoda ale cos nie dziala
local accName = getAccountName ( getPlayerAccount ( source ))
function wyczyscchat ()
if isObjectInACLGroup ( "user." .. accName ( "chatmod" ) ) then
outputChatBox ( " " , source )
outputChatBox ( " " , source )
outputChatBox ( " " , source )
outputChatBox ( " " , source )
outputChatBox ( " " , source )
outputChatBox ( " " , source )
outputChatBox ( " " , source )
outputChatBox ( " " , source )
outputChatBox ( " " , source )
outputChatBox ( " " , source )
outputChatBox ( " " , source )
outputChatBox ( " " , source )
outputChatBox ( " " , source )
outputChatBox ( " " , source )
outputChatBox ( " " , source )
outputChatBox ( " " , source )
outputChatBox ( " " , source )
outputChatBox ( " " , source )
outputChatBox ( " " , source )
outputChatBox ( " " , source )
outputChatBox ( " " , source )
outputChatBox ( " " , source )
outputChatBox ( " " , source )
outputChatBox ( " " , source )
outputChatBox ( " " , source )
outputChatBox ( " " , source )
outputChatBox ( " " , source )
outputChatBox ( " " , source )
outputChatBox ( " " , source )
outputChatBox ( " " , source )
outputChatBox ( " " , source )
outputChatBox ( " " , source )
outputChatBox ( " " , source )
outputChatBox ( " " , source )
outputChatBox ( " " , source )
outputChatBox ( " " , source )
outputChatBox ( " " , source )
outputChatBox ( " " , source )
outputChatBox ( " " , source )
outputChatBox ( " " , source )
outputChatBox ( " " , source )
outputChatBox ( " " , source )
outputChatBox ( " " , source )
outputChatBox ( " " , source )
outputChatBox ( " " , source )
outputChatBox ( " " , source )
outputChatBox ( " " , source )
outputChatBox ( " " , source )
outputChatBox ( " " , source )
outputChatBox ( " " , source )
outputChatBox ( " " , source )
outputChatBox ( " " , source )
outputChatBox ( " " , source )
outputChatBox ( " " , source )
outputChatBox ( " " , source )
outputChatBox ( " " , source )
outputChatBox ( " " , source )
outputChatBox ( " " , source )
outputChatBox ( " " , source )
outputChatBox ( " " , source )
outputChatBox ( " " , source )
outputChatBox ( " " , source )
outputChatBox ( " " , source )
outputChatBox ( " " , source )
outputChatBox ( " " , source )
outputChatBox ( " " , source )
outputChatBox ( " " , source )
outputChatBox ( " " , source )
outputChatBox ( " " , source )
outputChatBox ( " " , source )
outputChatBox ( " " , source )
outputChatBox ( " " , source )
outputChatBox ( " " , source )
outputChatBox ( " " , source )
outputChatBox ( " " , source )
outputChatBox ( " " , source )
outputChatBox ( " " , source )
outputChatBox ( " " , source )
outputChatBox ( " " , source )
outputChatBox ( " " , source )
outputChatBox ( " " , source )
outputChatBox ( " " , source )
outputChatBox ( " " , source )
outputChatBox ( " " , source )
outputChatBox ( " " , source )
outputChatBox ( " " , source )
outputChatBox ( " " , source )
outputChatBox ( " " , source )
outputChatBox ( " " , source )
outputChatBox ( "*****Chat zosta? wyczyszczony przez Chatmod?w." , source , 30 , 144 , 255 )
end
outputChatBox ( "Nie jestes chatmodem." , getRootElement )
addCommandHandler ( "wc" , wyczyscchat )
Ostatnio zmieniony przez Kunker 2017-10-13, 21:01, w całości zmieniany 1 raz
Wysłany: 2017-10-13, 20:21
X0neX
Wiek: 25 Na forum: 3310 dni Posty: 142
Nick w MP: Xavir
Piwa : 77
Poczytaj o argumentach getAccountName
Wysłany: 2017-10-13, 20:23
Kalizman
Wiek: 23 Na forum: 3651 dni Posty: 1394
Piwa : 4619
Zmie? na:
local accName = getAccountName ( getPlayerAccount ( source ))
if isObjectInACLGroup ( "user." .. accName ( "chatmod" ) ) then
Ostatnio zmieniony przez Kalizman 2017-10-13, 20:23, w całości zmieniany 1 raz
Wysłany: 2017-10-13, 20:23
Kunker
Wiek: 29 Na forum: 3200 dni Posty: 34
Piwa : 85
Chetnie bym poczytal ALE TAM WSZYSTKO JEST PO ANGIELSKU xd
[ Dodano : 2017-10-13, 20:25 ]
W debugu jest ze w 6 linijce jakiegos znaku nie ma
[ Dodano : 2017-10-13, 21:01 ]
Pomoze ktos?
Wysłany: 2017-10-13, 21:11
X0neX
Wiek: 25 Na forum: 3310 dni Posty: 142
Nick w MP: Xavir
Piwa : 77
Nie mamy magicznej kuli, kt?ra linijka to ta 6?
Wysłany: 2017-10-13, 21:35
MrDadosz
Wiek: 27 Na forum: 5652 dni Posty: 33
Nick w MP: Damian_Red, MrDadosz
Piwa : 11
By?o: http://gtao.pl/%3Cfont-co...tu-vt114165.htm
Podrzucam dla Ciebie:
Kod: addCommandHandler("wc", function(plr,cmd,...)
local accName = getAccountName (getPlayerAccount(source))
if accName and isObjectInACLGroup ("user."..accName, aclGetGroup ("tu wklej nazw? rangi")) then
local reason = table.concat(arg, " ")
local name = getPlayerName(plr):gsub("#%x%x%x%x%x%x","")
for i=1,100 do
outputChatBox(" ", root, 255, 0, 0)
end
outputChatBox("Czat zosta? wyczyszczony przez "..name..", pow?d: "..reason, root, 255,0,0)
end
end)
Je?li nie znasz podstaw angielskiego to nie napiszesz ?adnego skryptu.
Tagi: skrypt :: nie :: dziala...
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: