addCommandHandler("podnies",function(plr,cmd,cel) if getElementData(plr,"player:faction") == "SAMC" then if not cel then outputChatBox("/podnies <ID>",plr,255,255,255,true) return end local target=exports["pystories-core"]:findPlayer(plr,cel) if not target then outputChatBox("/podnies <ID>",plr,255,255,255,true) return end outputChatBox("Podnoszenie",plr,255,255,255,true) setTimer(function() outputChatBox("Podniesiono gracza "..getPlayerName(target):gsub("#%x%x%x%x%x%x",""),plr,255,255,255,true) triggerServerEvent("bw.end",resourceRoot) end,2000,1) else return end end)
addEvent("bw.end",true); addEventHandler("bw.end",resourceRoot,function() local x,y,z = getElementPosition(client); local dim,int,skin = getElementDimension(client),getElementInterior(client),getElementModel(client); setElementData(client,"player:bw",false) spawnPlayer(client,x,y,z,0,skin,int,dim); setElementHealth(client,45); setPlayerHudComponentVisible ( client, "radar", true ) end);