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: setplayermute
1. setPlayerMute
[b]Posiadam taki oto kodzik. Wszystko ?miga, ale po pierwsze - po wyj?ciu z serwera gracz jest odciszony jak wejdzie ponownie, po drugie jak dam np. /amute Emm 1 m test to po 1 m dalej mam mute, po prostu nie usuwa mute.
Mo?e dla niekt?rych b?ahe problemy, ale mi stwarzaj? problem ;d
Z g?ry dzi?ki za wszelk? pomoc[/b]


[lua]addCommandHandler ( "amute", function ( plr, cmd, gracz, czas, rodzaj, ... )
if not isObjectInACLGroup ( "user."..getPlayerName ( plr ), aclGetGroup ( "Admin" ) ) then return end
if not gracz and not rodzaj and not czas and not ... or not gracz == nil or rodzaj == nil or czas == nil then
return outputChatBox ( "U?yj: /amute <gracz> <czas> <rodzaj : m,d,h> <pow?d>", plr ) end
player = getPlayerFromName(gracz)
if not player then return end
txt = table.concat ( {...}, " " )
outputChatBox ( "Gracz "..getPlayerName(player).." zosta?/a wyciszony/a przez "..getPlayerName(plr).."", root )
outputChatBox ( "Pow?d : "..txt, root )
if rodzaj == "m" then
rodzaj = "minut"
czas1 = czas * 60
elseif rodzaj == "d" then
rodzaj = "dni"
czas1 = czas * 360
elseif rodzaj == "h" then
rodzaj = "godzin"
czas1 = czas * 60 * 60
end
outputChatBox ( "Czas: "..czas.." "...