Wysłany: 2015-10-29, 16:25
orzel09
Wiek: 26 Na forum: 3942 dni Posty: 2
Nick w MP: BeMWu
Piwa : 5
Witam, chcia?bym udost?pni? wam pierwszy m?j skrypt, kt?rym jest Admin-Tag. Je?li zobaczycie jaki? b??d to piszcie Kod: function clear ( thePlayer )
local cuenta = getAccountName( getPlayerAccount(thePlayer) )
if isObjectInACLGroup("user."..cuenta, aclGetGroup("Admin")) then -- Grupa Admina
spaces(thePlayer)
elseif isObjectInACLGroup("user."..cuenta, aclGetGroup("SuperModerator")) then -- Grupa SuperModerator?w
spaces(thePlayer)
elseif isObjectInACLGroup("user."..cuenta, aclGetGroup("Moderator")) then -- Grupa Moderator?w
spaces(thePlayer)
elseif isObjectInACLGroup("user."..cuenta, aclGetGroup("Console")) then -- Grupa Konsoli
spaces(thePlayer)
else
outputChatBox("Nie jeste? z Administracji", thePlayer, 255, 0, 0, true) -- Bez ACL'ki wy?ej wymienionej, nie wyczy?cisz czatu
end
end
addCommandHandler("cc", clear)
function spaces(thePlayer)
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox("#ff0000Chat wyczyszczony przez : "..getPlayerName(thePlayer), getRootElement(), 255, 255, 255, true)
end
Więcej szczegółów
Wystawiono 2 piw(a):Mati998 , DominoDonny
Wysłany: 2015-10-29, 17:58
monio
Wiek: 30 Na forum: 4887 dni Posty: 319
Nick w MP: Monio99
Piwa : 3565
Tw?j kod a dok?adniej to:
function spaces ( thePlayer )
outputChatBox ( " " )
outputChatBox ( " " )
outputChatBox ( " " )
outputChatBox ( " " )
outputChatBox ( " " )
outputChatBox ( " " )
outputChatBox ( " " )
outputChatBox ( " " )
outputChatBox ( " " )
outputChatBox ( " " )
outputChatBox ( " " )
outputChatBox ( " " )
outputChatBox ( " " )
outputChatBox ( " " )
outputChatBox ( " " )
outputChatBox ( " " )
outputChatBox ( " " )
outputChatBox ( " " )
outputChatBox ( " " )
outputChatBox ( " " )
outputChatBox ( " " )
outputChatBox ( " " )
outputChatBox ( " " )
outputChatBox ( " " )
outputChatBox ( " " )
outputChatBox ( " " )
outputChatBox ( " " )
outputChatBox ( " " )
outputChatBox ( " " )
outputChatBox ( " " )
outputChatBox ( " " )
outputChatBox ( " " )
outputChatBox ( " " )
outputChatBox ( " " )
outputChatBox ( "#ff0000Chat wyczyszczony przez : " .. getPlayerName ( thePlayer ), getRootElement (), 255 , 255 , 255 , true )
end
Zast?pi? bym na to aby nie za?mieca? kodu
function spaces ( thePlayer )
for i = 1 , 10 do -- P ? tla wykona si ? 10x
outputChatBox ( " " ) -- Na czacie poka ? e si ? 10 pustych kolumn ()
end
outputChatBox ( "#ff0000Chat wyczyszczony przez : " .. getPlayerName ( thePlayer ), getRootElement (), 255 , 255 , 255 , true )
end
Ostatnio zmieniony przez monio 2015-10-29, 18:09, w całości zmieniany 3 razy
Wysłany: 2015-10-29, 18:03
Tey
Wiek: 31 Na forum: 4876 dni Posty: 155
Nick w MP: l0nger
Piwa : 280
@UP
outputChatBox ( i ) -- Na czacie poka ? e si ? 10 pustych kolumn ()
No nie wiem czy pojawi? si? puste kolumny Zostanie wpisana liczba ze zmiennej 'i'. ;-)
Wysłany: 2015-10-29, 18:10
monio
Wiek: 30 Na forum: 4887 dni Posty: 319
Nick w MP: Monio99
Piwa : 3565
Nie wiem gdzie Ty tam widzisz "i" kolego Koniec spamu
Tagi: admintag
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: