T
Tairens
Guest
Praca konkursowa.
Autor: Punis
Link:
Kod:
Filmik z dzia?ania(wymagany w tej rundzie): Niestety, nie mia?em okazji stworzy?.
Dodatkowe informacje: -
Autor: Punis
Link:
Kod:
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
local storage = 510
local nagroda5 = 3288, 1
local nagroda6 = 5803, 1
local nagroda7 = 3321, 1
local nagroda8 = 3321, 1
if(getPlayerVocation(cid) == 5) then
if getPlayerStorageValue(cid, storage) < 0 then
doPlayerAddItem(cid, nagroda5)
else
doPlayerSendTextMessage(cid, 22, "Nie spelniasz warunkow")
if(getPlayerVocation(cid) == 6) then
if getPlayerStorageValue(cid, storage) < 0 then
doPlayerAddItem(cid, nagroda6)
else
doPlayerSendTextMessage(cid, 22, "Nie spelniasz warunkow")
if(getPlayerVocation(cid) == 7) then
if getPlayerStorageValue(cid, storage) < 0 then
doPlayerAddItem(cid, nagroda7)
else
doPlayerSendTextMessage(cid, 22, "Nie spelniasz warunkow")
if(getPlayerVocation(cid) == 8) then
if getPlayerStorageValue(cid, storage) < 0 then
doPlayerAddItem(cid, nagroda8)
else
doPlayerSendTextMessage(cid, 22, "Nie spelniasz warunkow")
end
end
Dodatkowe informacje: -