Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local storage = 23112
- function onLook(cid, thing, pos, dist)
- if isPlayer(thing.uid) then
- if thing.uid ~= cid then
- getFrag = getPlayerStorageValue(thing.uid, storage)
- if getFrag == -1 then
- setPlayerStorageValue(thing.uid, storage, 0)
- getFrag = 0
- end
- doPlayerSetSpecialDescription(thing.uid, "\n Total Frag: ["..getFrag.."]")
- else
- getFrag = getPlayerStorageValue(cid, storage)
- if getFrag == -1 then
- setPlayerStorageValue(cid, storage, 0)
- getFrag = 0
- end
- local string = 'Your Total Frags are: ['..getFrag..'].'
- doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, string)
- end
- end
- return true
- end
Advertisement
Add Comment
Please, Sign In to add comment