Mianowicie mam skrypt na premium rune kt?ra daj pkt do sms shopu, ale 100 runek mog? zjecha? w 4 sec. Chcia?bym dodac do tego exhaust ale nie da rady.
[LUA]function onUse(cid, item, fromPosition, itemEx, toPosition)
local points = 1 -- amount of premium points
local exhaust = createConditionObject(CONDITION_EXHAUST)
setConditionParam(exhaust, CONDITION_PARAM_TICKS, 3000)
if isPlayer(cid) == TRUE then
local Sql = "UPDATE `accounts` SET `premium_points` = `premium_points` + "..points.." where id="..getPlayerAccountId(cid)
db.executeQuery(Sql)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE,"You Have Received 1 Premium Point")
doAddCondition(cid, exhaust)
doRemoveItem(item.uid,1)
end
return true
end[/LUA]
Prosz? o pomoc
[LUA]function onUse(cid, item, fromPosition, itemEx, toPosition)
local points = 1 -- amount of premium points
local exhaust = createConditionObject(CONDITION_EXHAUST)
setConditionParam(exhaust, CONDITION_PARAM_TICKS, 3000)
if isPlayer(cid) == TRUE then
local Sql = "UPDATE `accounts` SET `premium_points` = `premium_points` + "..points.." where id="..getPlayerAccountId(cid)
db.executeQuery(Sql)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE,"You Have Received 1 Premium Point")
doAddCondition(cid, exhaust)
doRemoveItem(item.uid,1)
end
return true
end[/LUA]
Prosz? o pomoc