Hey Leute ich hatte mal gesagt das ich eine Todeszone machen wollte jetzt hab ich es versucht funktioniert trotzdem nicht könnt ich mir vlt helfen
MFG
Lua
function kill1()
local posX, posY = getElementPosition(source)
local inArea = isInsideRadarArea(radar1, posX, posY)
if (inArea) then
if hasObjectPermissionTo(source, "function.addAccount", false) then
outputChatBox("***CHECKER*** You are allowed in this zone.", source, 0, 255, 0, true)
else
outputChatBox("You are not allowed in this area, Sorry...", source, 255, 0, 0, false)
outputChatBox("You have been warped.", source, 255, 0, 0, false)
if isPedInVehicle ( source ) then
local playerVehicle = getPedOccupiedVehicle ( source )
setElementPosition(playerVehicle, 2341.2072753906, -1658.8668212891, 13.379216194153)
else
setElementPosition(source, 2341.2072753906, -1658.8668212891, 13.379216194153)
end
end
end
end
addEvent("kill1", true)
addEventHandler("kill1", root, kill1)
Alles anzeigen