Critico
Sexy
- Joined
- Mar 25, 2010
- Messages
- 370
- Reaction score
- 179
I need to do to check if it has the storage
storages is 17103 and 17102
Code:
local t = {
[17103] = 'thais',
[17102] = 'temple'
}
for k, v in pairs(t) do
if getPlayerStorageValue(cid,v) >= 1 then
return doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE,'city '..v)
else
return doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE,'you do not have city.')
end
break
end
storages is 17103 and 17102