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

Linux remove red/black

di12345di

New Member
Joined
Aug 1, 2012
Messages
105
Reaction score
0
someone put only removes red / black please? and not removing frags.

Code:
-- 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, "Voce prescisa ter RED/BLACK para usar o item !")
return 0
else
doCreatureSetSkullType(cid, skulls[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, "Seu RED/BLACK skull foi removido !")
end
return true
end
 
Back
Top