• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

When player die he will teleported to pos x,y,z

Scooty

Enemia.EU
Joined
Jul 24, 2010
Messages
564
Reaction score
14
Location
Kraków
Hi, i want simple script

if player die(but he wont die), he will teleported to pos: 1,1,1.

but please dont write this script using onStatsChange function, i think it is possible in onPrepareDeath or something like that
 
you can do it both ways

Code:
function onPrepareDeath(cid, killer)
   doCreatureAddHealth(cid, getCreatureMaxHealth(cid))
   local pos = {x = 1, y = 1, z = 1}
   doTeleportThing(cid, pos)
   return false
end

should work :)
 
+ player not dying
+ script teleporting player to pos 1,1,1
- player have 0 hp! doCreatureAddHealth dont working, when im trying to use healing spell it not healing me

can someone repair it?
 
I need that too but i need some like this:
- Player die but the corpse with item are in die places and the player (like player-look) is teleporting to X,Y,Z but corpse stay at die position.

FREE BUMP.
 
Back
Top