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

On Death Reset Skulls to 0 [TFS]

filipus

Member
Joined
Dec 31, 2010
Messages
229
Reaction score
12
So I am kind of new to all this scripting thing but I tried 2 things

Code:
function onDeath(cid)
db.query("INSERT INTO 'players' ('skull') VALUES ("0") ")
end

The other way was using doPlayerSetSkull = 0

So... can anyone help? Thanks :)
 
Actually, the best way would be to reset the player completely to its default right? How do I do it? I can't do the save = 0 because I want to save things when people log out.

can I do

onDeath
save = 0

??
 
Ok I did it, if someone needs help with this send me a PM or visit ordemdadesordem.com.br and create a topic asking for help.
I will not put the code here because we want to create a serious Otserver and this is one cool functionality :)

SOLVED, CAN CLOSE.
 
Back
Top