R
Rozinx
Guest
When someone gets stuck, they always keep complaining and keeps asking everyone where the hell the gm is.
With this brand new tool, they'll be able to suicide and might stop setting you up.
So , first. I'll explain how it works.
When someone says the word suicide , they'll get a popup message, then when the person clicks ok , they'll have an storage value that makes it able to suicide.
You've gotta say suicide twice in order to suicide.
Here you are.
Make a suicide.lua script.
Then put this on talkactions.xml
See guys, on this part
getPlayerStorageValue(cid,28999) == 1 and getPlayerLevel(cid) > 100 then
The number 100 can be changed to any level you'd like to.
With this brand new tool, they'll be able to suicide and might stop setting you up.
So , first. I'll explain how it works.
When someone says the word suicide , they'll get a popup message, then when the person clicks ok , they'll have an storage value that makes it able to suicide.
You've gotta say suicide twice in order to suicide.
Here you are.
Make a suicide.lua script.
Lua:
function onSay(cid, words, param)
if
getPlayerStorageValue(cid,28999) == 1 and getPlayerLevel(cid) > 100 then
doCreatureAddHealth(cid,-10000000)
setPlayerStorageValue(cid,28999,0)
else
doPlayerPopupFYI(cid, 'Do you really wanna suicide ?\n If you do\n Push ok and say suicide again.')
setPlayerStorageValue(cid,28999,1)
end
end
Then put this on talkactions.xml
Lua:
<talkaction log="yes" words="suicide" event="script" value="suicide.lua"/>
See guys, on this part
getPlayerStorageValue(cid,28999) == 1 and getPlayerLevel(cid) > 100 then
The number 100 can be changed to any level you'd like to.
Last edited by a moderator: