local config =
{
item = itemid, -- itemid the item you right click on and reset your frags.
level = 1,
count = 0
}
function onUse(cid, item, frompos, item2, topos)
if getPlayerLevel(cid) >= config.level then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Your frags has been removed. \n Thanks For Donate!")
doRemoveItem(item.uid)
getPlayerSkullType(cid, 0)
getPlayerSkullType(cid, 0)
else
doPlayerSendCancel(cid, "You dot have enough level")
end
return TRUE
end
local config =
{
item = itemid, -- itemid the item you right click on and reset your frags.
level = 1,
count = 0
}
function onUse(cid, item, frompos, item2, topos)
if getPlayerLevel(cid) >= config.level then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Your frags has been removed. \n Thanks For Donate!")
doRemoveItem(item.uid)
doCreatureSetSkullType(cid, 0)
else
doPlayerSendCancel(cid, "You dot have enough level")
end
return TRUE
end
getPlayerSkullType(cid, 0)
getPlayerSkullType(cid, 0)
doCreatureSetSkullType(cid, 0)
local config =
{
item = itemid, -- itemid the item you right click on and reset your frags.
level = 1,
count = 0
}
function onUse(cid, item, frompos, item2, topos)
if getPlayerLevel(cid) >= config.level then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Your frags has been removed. \n Thanks For Donate!")
doRemoveItem(item.uid)
db.executeQuery("UPDATE `killers` SET `unjustified` = 0 WHERE `id` IN (SELECT `kill_id` FROM `player_killers` WHERE `player_id` = " .. getPlayerGUID(cid) .. ")")
doPlayerSetSkullEnd(cid, 0, SKULL_RED)
else
doPlayerSendCancel(cid, "You dot have enough level")
end
return TRUE
end
Code:local config = { item = itemid, -- itemid the item you right click on and reset your frags. level = 1, count = 0 } function onUse(cid, item, frompos, item2, topos) if getPlayerLevel(cid) >= config.level then doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Your frags has been removed. \n Thanks For Donate!") doRemoveItem(item.uid) db.executeQuery("UPDATE `killers` SET `unjustified` = 0 WHERE `id` IN (SELECT `kill_id` FROM `player_killers` WHERE `player_id` = " .. getPlayerGUID(cid) .. ")") doPlayerSetSkullEnd(cid, 0, SKULL_RED) else doPlayerSendCancel(cid, "You dot have enough level") end return TRUE end
rep++ me