MaR0
Banned User
- Joined
- Apr 16, 2018
- Messages
- 272
- Solutions
- 3
- Reaction score
- 29
i want skull system working on tfs 1.2 with pvp enforced like this
and talkaction checker
thanks
Lua:
local storage = xxxx
function onKill(cid, target)
local frags = getPlayerStorageValue(cid, storage)
if(isPlayer(target)) then
setPlayerStorageValue(cid, storage, frags+1)
if(frags < 10) then
doCreatureSetSkullType(cid, SKULL_GREEN)
elseif(frags < 20) then
doCreatureSetSkullType(cid, SKULL_WHITE)
elseif(frags < 30) then
doCreatureSetSkullType(cid, SKULL_RED)
elseif(frags > 39) then
doCreatureSetSkullType(cid, SKULL_BLACK)
end
end
return true
end
Lua:
function onSay(cid, words, param, channel)
if(getPlayerStorageValue(cid, xxxx) < 1) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You currently have no frags.")
elseif(getPlayerStorageValue(cid, xxxx) == 1) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You currently have 1 frag.")
else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You currently have ".. getPlayerStorageValue(cid, xxxx) .." frags.")
end
return true
end
Last edited: