Hallo liebe Community Helfer,
Ich wollte mal fragen wie das was ich gleich beschreibe machen kann.
Wenn man /drohne eingibt, und dann wird man in das Fahrzeug geportet. Wenn du dann wieder /outdrohne eingibt soll mann an dem Ort raus kommen wo mann /drohne eingibt, wie kann mann das machen?
Hier das Script:
Lua
function Drohne ( player )
local x, y, z = getElementPosition(player)
x = x + 5
y = y + 5
drohne = createVehicle(501, x, y, z)
warpPedIntoVehicle(player, drohne)
setElementAlpha( player, 0)
outputChatBox ( "!!Drohne Aktive!!", player, 125, 0, 0 )
setVehicleHandling(drohne, "maxVelocity", 200000.0)
setVehicleDamageProof( drohne, true)
end
addCommandHandler("drohne", Drohne)
function destroyDrohne ( player )
destroyElement( drohne )
setElementAlpha( player, 255 )
outputChatBox ( "!!Drohne Deaktiviert!!",player, 125, 0, 0 )
setElementPosition ( player, x, y, z )
end
addCommandHandler("outdrohne", destroyDrohne )
Alles anzeigen
hoffentlich könnt ihr mir helfen,
mfg
Noel007