• 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!

Simpel Function again!

Status
Not open for further replies.

Shawak

Intermediate OT User
Joined
Sep 11, 2008
Messages
1,984
Solutions
2
Reaction score
119
Location
Germany
GitHub
Shawak
Lua:
function doKillCreature(cid)
     return doCreatureAddHealth(cid, -getCreatureHealth(cid))
end
 
Last edited:
Lua:
function doKillCreature(cid)
     return doCreatureAddHealth(cid, getCreatureHealth(cid))
end[/QUOTE]

Won't work :)

[code=lua]
function doKillCreature(cid)
     return doCreatureAddHealth(cid, -getCreatureHealth(cid), TRUE)
end

Nothing big, you just forgot a - before getCreatureHealth ;)
 
Try
return doCreatureAddHealth(cid, -getCreatureHealth(cid))

:p
 
I wrote it, perhaps I tipped it to fast?
I also forgot [/code] :D.
 
@up

shorter noob

Lua:
function seePost(post)
return username(post) == "Piotrek1447" and noob or normal
end
 
Lua:
  function moderate(post)
     if checkspam(post) == true then
          closethread()
     end
     Err0r
end
 
Status
Not open for further replies.
Back
Top