What's new

Skrypty & Kody Pomoc Skrypt Dam reputa

Status
Not open for further replies.

Kolokim

User
Joined
Jun 23, 2011
Messages
28
Reaction score
0
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
 

DanJ93

ElfBot Helper
Joined
Jan 18, 2009
Messages
2,631
Reaction score
200
Odp: Pomoc Skrypt Dam reputa

[LUA]if os.time() >= getPlayerStorageValue(cid, 1998) then
setPlayerStorageValue(cid, 1998, os.time()+5)[/LUA]

Nie obiecuj reputa, gdy? go nie mo?esz da?.
 
Last edited:
Status
Not open for further replies.
Top