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

Give skull depending on storage value

Nightimarez

New Member
Joined
Jul 24, 2008
Messages
287
Reaction score
2
Let me explain a little, this script is suppose to give you a skull depending on the value of a storage.
In this case, the storage is 3696. Values will represent the skull. So the values will be 1, 2, 3, 4, and 5.
1 is yellow skull, 2 is green skull, 3 is white skull, 4 is red skull, and 5 is black skull.

Edit, I don't need help anymore.

Here's the script if anyone wants it.
PHP:
function onThink(interval, lastExecution)
for _, pid in pairs(getPlayersOnline()) do
	if (getCreatureStorage(pid, 3696) > 0) then
doCreatureSetSkullType(pid, getPlayerStorageValue(pid, 3696))
end
end
    return true
end
 
Last edited:
Back
Top