• 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!

Prosze o pomocprzy zrobieniu skrypta

Status
Not open for further replies.

lisexlca

New Member
Joined
Jan 4, 2010
Messages
25
Reaction score
0
Location
gießen/legnica
local reputation = getPlayerStorageValue(cid,666)
if reputation > 0 then
doPlayerAddItem(cid,2160,1)
end
end

wymyśliłem takie coś tylko nie wiem jakiej funkcji użyć i gdzie go dodać??moglby ktos pomoc??
 
Last edited:
Raczej prosisz o zrobienie skryptu, a nie o pomoc w zrobieniu,
 
lisexlca skoro skopiowałeś jeden skrypt gotowy z neta, to teraz lec na tnp i szukaj nagrod do niego :)
Pewnie nawet go nie czytałeś :/
 
to zależy kiedy chcesz sprawdzać czy gracz ma więcej niż 0 pkt reputacji, w momencie kliknięcia na dźwignię, a może co 1h? sprecyzuj pytanie.
 
w momencie kliknięcia na dźwignie chciałbym sprawdzić ile ma punktów i ze jak by miał 100 punktów to dostanie jakiś item
 
Lua:
function onUse(cid, item, frompos, item2, topos)
local reputation = 666
local ile = getStorageValue(cid,reputation)
if ile >= 100 then
doPlayerAddItem(cid,2160,1)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE,"tutaj piszesz cos za te 100 pkt")
else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE,"You have now ".. ile .." reputation points.")



end
Trudne?
 
Lua:
function onUse(cid, item, frompos, item2, topos)
local reputation = 666
local ile = getStorageValue(cid,reputation)
if ile >= 100 then
doPlayerAddItem(cid,2160,1)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE,"tutaj piszesz cos za te 100 pkt")
else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE,"You have now ".. ile .." reputation points.")



end
Trudne?
jak dla mnie to trudne bo jeszcze nie umie z local pisac bardzo dziekuje ci temat do zamkniecia!!
 
Status
Not open for further replies.
Back
Top