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

Redskull Item

Teddy

SweStream.se
Joined
Oct 2, 2008
Messages
3,797
Reaction score
10
Location
Sweden 172
Hello guys i use this item to remove redskull but it only removes the redskull for the time and when you relogg you still have rs..
(TFS Version 0.3.6)

Script:
PHP:
-- Scripted by Leon Zawodowiec --
function onUse(cid, item, frompos, item2, topos)
	local playerskull = getCreatureSkullType(cid)
	local skulls = {
					SKULL_NONE,
					SKULL_YELLOW,
					SKULL_GREEN,
					SKULL_WHITE
					}
 
	if isInArray(skulls, playerskull) then
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You can't remove that skull !")
		return 0
	else
		doCreatureSetSkullType(cid, skulls[1])
		doRemoveItem(item.uid, 1)
		db.executeQuery("UPDATE `killers` SET `unjustified` = 0 WHERE `id` IN (SELECT `kill_id` FROM `player_killers` WHERE `player_id` = " .. getPlayerGUID(cid) .. ")")
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Your Skull has been removed !")
	end
return true
end
 
Back
Top