Hi, i create one script when the player login in server verify if player have more then 1500 items in depot..but in the first script dont work when the player login in the server kick player..
This work
Lua:
function onLogin(cid)
local depotlimit = getPlayerDepotItems(cid,i)
for i=1,24 do
if depotlimit > 1500 then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Your depot contains more of 1500 item.")
end
end
end
Lua:
function onLogin(cid)
local depotlimit = getPlayerDepotItems(cid,1)
if depotlimit > 1500 then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Your depot contains more of 1500 item.")
end
end
end