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

Solved doCreatureSetSkullType(cid, skull[, target])

test0r

Premium User
Premium User
Joined
Oct 26, 2007
Messages
30
Reaction score
0
Hello, I have noticed there is a function to get a players skull to a specific target by using:

Code:
getCreatureSkullType(cid[, target])

I have been trying to figure out how to give a player a skull to a specific target. Currently my set skull function looks like this:

Code:
doCreatureSetSkullType(cid, skull)

I would like it to look like this:

Code:
doCreatureSetSkullType(cid, skull[, target])

If anyone knows how I could go about adding support for [,target] in doCreatureSetSkullType via source it would be greatly appreciated, and ofc rep++ :)
 
Last edited:
target allows you to give a creature a skull to a specific creature for example:

Code:
doCreatureSetSkullType(playerA.uid, SKULL_WHITE, playerB.uid)

Player B looks at Player A, he sees a red skull.
Player A looks at himself, he sees no skull.
Player C looks at Player A, he sees no skull.

Anyway, this is solved now thanks to Diath.
 
Back
Top