What's new

Skrypty & Kody Dodanie Exhaustu Do D?wigni REPUT

Status
Not open for further replies.

Dejvos

Advanced User
Joined
Jul 11, 2012
Messages
160
Reaction score
10
Witam potrzebuje do ni?ej zamieszczonego skryptu edycji, aby by? w skrypcie exhausted na u?ywanie d?wigni (czas co 3 minuty) oczywi?cie za pomoc reput !


function onUse(cid, item, fromPosition, itemEx, toPosition)
local oplata = 100000
if doPlayerRemoveMoney(cid, oplata) == TRUE then
if getPlayerLevel(cid) >= 631 then
addLevel(cid,1)
doPlayerSendTextMessage(cid,22,"Added exp pls don't spam ! ;]")
end
else
doPlayerSendTextMessage(cid,22,"Nie masz 631 lvl Lub 10 gold.")
end
end
 

KMLK

Active User
Joined
Mar 21, 2011
Messages
142
Reaction score
14
Odp: Dodanie Exhaustu Do D?wigni REPUT

PHP:
function onUse(cid, item, fromPosition, itemEx, toPosition) 
 local oplata = 100000 
 local exhausted_seconds = 30 czas w sekundach zm?czenia
 local exhausted_storagevalue = 69 storage zm?czenia


 if(os.time() > getPlayerStorageValue(cid, exhausted_storagevalue)) then 
if getPlayerLevel(cid) >= 600 then 
if doPlayerRemoveMoney(cid, oplata) == TRUE then 
 addLevel(cid,1) 
 doPlayerSendTextMessage(cid,22,"Added exp, pls don't spam!") 
 setPlayerStorageValue(cid, exhausted_storagevalue, os.time() + exhausted_seconds) 

 else 

 doPlayerSendCancel(cid, "You need 10 gold.") 
 end 

 else 
 doPlayerSendTextMessage(cid,22,"You don't have 600 lvl") 
 end 
 else 

 doPlayerSendTextMessage(cid,22,"You are exhausted") 
 end 
 return true 
 end
 

Dejvos

Advanced User
Joined
Jul 11, 2012
Messages
160
Reaction score
10
Odp: Dodanie Exhaustu Do D?wigni REPUT

dzi?ki, repucik ! ; )

---Aktualizacja---

sprawdza?em nie dzia?a, pomocy u?ywam silnika dbko ! ; )
 

KMLK

Active User
Joined
Mar 21, 2011
Messages
142
Reaction score
14
Odp: Dodanie Exhaustu Do D?wigni REPUT

CO NIE DZIA?A, jak ja u?ywam dbko i jako? dzia?a ...>>.>>
 

Dejvos

Advanced User
Joined
Jul 11, 2012
Messages
160
Reaction score
10
Odp: Dodanie Exhaustu Do D?wigni REPUT

Je?li M?wi?, ?e Nie Dzia?? To Nie Dzia?a -.-
 

KMLK

Active User
Joined
Mar 21, 2011
Messages
142
Reaction score
14
Odp: Dodanie Exhaustu Do D?wigni REPUT

to mo?e naucz sie funkcji i sam sobie to napisz, jak taki z ciebie le?, a to, ?e zadeklarowa? nie umiesz nie moja wina
 

Dejvos

Advanced User
Joined
Jul 11, 2012
Messages
160
Reaction score
10
Odp: Dodanie Exhaustu Do D?wigni REPUT

Chyba Temat Jest Do Pomocy? Wi?c O Co Ci Chodzi Cz?owieku ? -.- Ju? Sobie Poradzi?em, Sam Lepszy Nie Jeste? Spamuj?c Po GG : )
 
Status
Not open for further replies.
Top