Ichito123
New Member
- Joined
- Nov 25, 2013
- Messages
- 36
- Reaction score
- 3
Hello everyone i have problem with that ;/
Can you help me please ? How i can fix it ?
Lua:
function onSay(player, words, param)
if not isInArena(player) then
return false
end
if param == "shoot" then
if player:getExhaustion(8002) > 1 then
return true
end
if not SnowBall_Configurations.Ammo_Configurations.Ammo_Infinity then
if player:getStorageValue(8003) > 0 then
player:setStorageValue(8003, player:getStorageValue(8003) - 1)
player:sendCancelMessage("Pozostalo ".. player:getStorageValue(8003) .." sniezek.")
else
player:sendCancelMessage("Nie masz juz sniezek.")
return true
end
end
player:setExhaustion(8002, SnowBall_Configurations.Ammo_Configurations.Ammo_Exhaust)
Event_sendSnowBall(player:getId(), player:getPosition(), SnowBall_Configurations.Ammo_Configurations.Ammo_Distance, player:getDirection())
return false
elseif param == "info" then
local str = " ## -> Player Infos <- ##\n\nPkt: ".. player:getStorageValue(8004) .."\nSniezki: ".. player:getStorageValue(8003)
str = str .. "\n\n ## -> Ranking <- ##\n\n"
for i = 1, 5 do
if CACHE_GAMEPLAYERS[i] then
str = str .. i .. ". " .. Player(CACHE_GAMEPLAYERS[i]):getName() .."\n"
end
end
for pos, players in ipairs(CACHE_GAMEPLAYERS) do
if player:getId() == players then
str = str .. "My Ranking Pos: " .. pos
end
end
player:showTextDialog(2111, str)
return false
end
end
Can you help me please ? How i can fix it ?