as title says
here is script:
here is script:
LUA:
-- Script by Magic
function onSay(cid, words, param)
-- \/ Panel konfiguracji skryptu \/
local stare = 6530
local nowe = 2640
local pozycja = getPlayerPosition(cid)
local tekst = "Soft" -- Wpisz tekst
local tekst1 = "Nie masz zuzytych softow." -- Co ma pisac jak nie ma softow
local tekst2 = "Nie masz kasy, Koszt odnowy softow to 1cc." -- Co ma pisac jak nie ma kasy
-- /\ Panel konfiguracji skryptu /\
if doPlayerRemoveMoney(cid,10000) == TRUE then
if doPlayerRemoveItem(cid,stare,1) == TRUE and doPlayerAddItem(cid,nowe,1) == TRUE then
doSendAnimatedText(pozycja,soft,198)
else
doPlayerSendTextMessage(cid,22,tekst1)
end
else
doPlayerSendTextMessage(cid,22,tekst2)
return 1
end
end