marcin778, Ale AFK system mo?esz przerobi? na zw i jj
To m?g?by? mi to przerobi? ? konretnie usun?? ten czerwony marker i zrobi? dwie komendy /zw /jj
afk_marker={}
addCommandHandler("zj",function(plr)
if not getElementData(plr,"P:AFK") then
afk_marker[plr]={}
for i=1,#afk_marker[plr] do
if isElement(afk_marker[plr][i]) then
destroyElement(afk_marker[plr][i])
end
end
local x,y,z=getElementPosition(plr)
afk_marker[plr][1]=createMarker(x,y,z,"checkpoint",3,255,0,0,100)
setElementFrozen(plr,true)
setElementData(plr,"P:AFK",true)
for _,v in ipairs(getElementsByType("player"))do
outputChatBox("#ffffffGracz#ff0000 "..getPlayerName(plr).." #ffffffzaraz wraca!",v,255,0,0,true)
end
else
for i=1,#afk_marker[plr] do
if isElement(afk_marker[plr][i]) then
destroyElement(afk_marker[plr][i])
end
end
setElementFrozen(plr,false)
setElementData(plr,"P:AFK",false)
for _,v in ipairs(getElementsByType("player"))do
outputChatBox("#ffffffGracz#ff0000 "..getPlayerName(plr).." #ffffffju? jest!",v,255,0,0,true)
end
end
end)
[ Dodano: 2015-07-05, 14:10 ]
[ Dodano: 2015-07-05, 14:11 ] Znajomy, Wydaje mi si?,?e nie ma takiego skryptu ale mo?e chcesz to
Nie możesz pisać nowych tematów Nie możesz odpowiadać w tematach Nie możesz zmieniać swoich postów Nie możesz usuwać swoich postów Nie możesz głosować w ankietach