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

[LUA]doCreatureSetSkullType(cid, skull) with configurable time

Joe Rod

Discord: joerod1
Joined
Mar 16, 2011
Messages
499
Solutions
2
Reaction score
172
GitHub
joerod1
hi guys, i need a function to set a skull to a creature by a x time, it would be nice if someone can help me :p
Kind Regards
Thanks in Advance
 
time should be unix timestamp representing expire time (seconds)
if you set the player's skull to white and it to expire it 10 seconds, try something like this: (it goes after doCreatureSetSkullType, of course)
LUA:
doPlayerSetSkullEnd(cid, os.time() + 10, SKULL_WHITE)
 
Back
Top