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.
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: