RogaliS
New Member
- Joined
- Jul 27, 2016
- Messages
- 18
- Reaction score
- 1
Hello i need help to buy aol when player have storage.
This scripts its not work ;/
Code:
local cost = 40000000 -- How much does it cost?
function onTalk(cid, word, param)
playerstorage = getPlayerStorageValue(cid,7522)
if playerstorage == 1 then
doPlayerRemoveMoney(cid, cost)
doPlayerAddItem(cid,2196,1)
doPlayerSendTextMessage(cid,22,"You bought AOR for 40 scarab coins!")
else
doPlayerSendTextMessage(cid,22,"You need to complete mission to use this command!")
end
else
doPlayerSendTextMessage(cid,22,"you dont have money!")
end
return TRUE
end
This scripts its not work ;/