Hallo Ich wollte mal fragen wie man das machen kann das ich ein surfbrett unter ein spieler attachen kann
hab mir irgentwie so gedacht..
Lua
createObject, attachElement, addCommandhandler, outputChatbox,
Keine ahnung ob das so funzt..
Funobject = createObject (id, plx, ply, plz, plrx, plry, plrz)
function fun
outputChatBox ( "Made bye Schlabber", player , 255, 255, 0 )
if isPlayerInWater ( player ) then
attach Element (player, Funobject)
getPlayerPos (x,y,z + 0,60,rx,ry,rz)
outputChatbox ( "Viel spaß im Wasser", player, 255, 255, 0 )
else isPlayerInWater ( player ) then
outputChatBox (" Du bist nicht im Wasser", player, 255, 255, 0 )
outputChatBox (" Geh ins Wasser"), player, 255, 255, 0 )
end
addCommandHandler ("wasser", fun, player)
Alles anzeigen