function spawnOchrona()
if (source==getLocalPlayer()) then
setElementData(getLocalPlayer(), "SpawnOchrona", true)
function unlockOchrona(localPlayer)
if (getElementData(localPlayer, "SpawnOchrona")==true) then
setElementData(localPlayer, "SpawnOchrona", false)
end
end
setTimer(unlockOchrona, 30000, 1, getLocalPlayer())
end
end
addEventHandler("onClientPlayerWasted", root, spawnOchrona)
function cancelDamage()
if (source==getLocalPlayer()) then
if (getElementData(localPlayer, "SpawnOchrona")==true) then
cancelEvent()
end
end
end
addEventHandler("onClientPlayerDamage", root, cancelDamage)
Ostatnio zmieniony przez vipSEBOvip 2013-10-22, 22:02, w całości zmieniany 3 razy
Bo ten skrypt daje ochrone jak kto? ju? si? zespawnuje, jak chcesz zrobi? respawn to dodaj :
Server:
function respawn(thePlayer)
spawnPlayer(thePlayer,x,y,z,rotacja,skin,interior,dimension,team)--3 ostatnie mo?esz pomin??
end
addEventHandler('onPlayerWasted',getRootElement(),respawn)
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