legolas23
New Member
- Joined
- Jan 8, 2009
- Messages
- 537
- Reaction score
- 3
Hiho
I've written the frag counting script. It uses player's storage to count frags but it isn't working. Can any1 fix this?
It doesn't give starage ++ to killers ,dunno why ;/
Rep ++ for help
I've written the frag counting script. It uses player's storage to count frags but it isn't working. Can any1 fix this?
Code:
function onKill(cid, target, lastHit)
if(not isPlayer(target)) then
return true
end
if(not lastHit) then
return true
end
local storage = getPlayerStorageValue(cid, 16969)
if(storage == -1) then
storage = 0
end
setPlayerStorageValue(cid, 16969, (storage + 1))
return true
end
Code:
<event type="kill" name="PlayerDeath" event="script" value="fragc.lua"/>
It doesn't give starage ++ to killers ,dunno why ;/
Rep ++ for help