• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Redskull remover

freddzor11

Member
Joined
May 25, 2009
Messages
695
Reaction score
5
Hello I've got a script with redskull remover, but you can use it when you got pz, anyone who can change it so it's just with no pz?

Code:
function onUse(cid, item, frompos, item2, topos)
local skull = getCreatureSkullType(cid) 
local bad_skulls = {SKULL_RED,SKULL_BLACK}
if(isInArray(bad_skulls, skull)) then
doPlayerSetSkullEnd(cid, 0, skull)
doRemoveItem(item.uid, 1)
db.executeQuery('UPDATE `killers`, `player_killers` SET `killers`.`unjustified` = 0 WHERE `killers`.`unjustified` = 1 AND `player_killers`.`player_id` = ' .. getPlayerGUID(cid) .. ' AND `killers`.`id` = `player_killers`.`kill_id`')
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Your skull has been removed!")
else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You do not have red skull!")
end
return true
end
 
Code:
function onUse(cid, item, frompos, item2, topos)
local skull = getCreatureSkullType(cid)
local bad_skulls = {SKULL_RED,SKULL_BLACK}
if hasCondition(cid, CONDITION_INFIGHT) then
doPlayerSendCancel(cid, "You Can't Use This InFight")
return true
end
if(isInArray(bad_skulls, skull)) then
doPlayerSetSkullEnd(cid, 0, skull)
doRemoveItem(item.uid, 1)
db.executeQuery('UPDATE `killers`, `player_killers` SET `killers`.`unjustified` = 0 WHERE `killers`.`unjustified` = 1 AND `player_killers`.`player_id` = ' .. getPlayerGUID(cid) .. ' AND `killers`.`id` = `player_killers`.`kill_id`')
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Your skull has been removed!")
else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You do not have red skull!")
end
return true
end
 
Code:
function onUse(cid, item, frompos, item2, topos)
local skull = getCreatureSkullType(cid)
local bad_skulls = {SKULL_RED,SKULL_BLACK}
if hasCondition(cid, CONDITION_INFIGHT) then
doPlayerSendCancel(cid, "You Can't Use This InFight")
return true
end
if(isInArray(bad_skulls, skull)) then
doPlayerSetSkullEnd(cid, 0, skull)
doRemoveItem(item.uid, 1)
db.executeQuery('UPDATE `killers`, `player_killers` SET `killers`.`unjustified` = 0 WHERE `killers`.`unjustified` = 1 AND `player_killers`.`player_id` = ' .. getPlayerGUID(cid) .. ' AND `killers`.`id` = `player_killers`.`kill_id`')
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Your skull has been removed!")
else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You do not have red skull!")
end
return true
end
thanks gonna try it later
 
Back
Top