Inteligentny
Im not.
- Joined
- Aug 2, 2008
- Messages
- 485
- Reaction score
- 0
yop, I dont know why its not working, when I try login, server is kicking me.
Code:
function onLogin(cid)
local level = getPlayerLevel(cid)
if level >= 1 and level <= 20 and getPlayerStorageValue(cid, 10122) == -1 then
setPlayerStorageValue(cid, 10122, 1)
elseif level >= 21 and level <= 50 and getPlayerStorageValue(cid, 10122) == -1 then
doPlayerAddItem(cid,2160, 5)
setPlayerStorageValue(cid, 10122, 1)
elseif level >= 51 and level <= 100 and getPlayerStorageValue(cid, 10122) == -1 then
doPlayerAddItem(cid,2160, 10)
setPlayerStorageValue(cid, 10122, 1) layerStorageValue(cid, 10122, 1)
elseif level >= 101 and level <= 150 and getPlayerStorageValue(cid, 10122) == -1 then
doPlayerAddItem(cid,2160, 15)
setPlayerStorageValue(cid, 10122, 1)
elseif level >= 150 and getPlayerStorageValue(cid, 10122) == -1 then
doPlayerAddItem(cid,2160, 15)
setPlayerStorageValue(cid, 10122, 1)
end
end