Felipe93
Ghost Member
Hello Otland
Well i have edited my source(player.cpp) to avoid get yellow skull or white in case you attack someone
also removed the condition of get red after x ammount of player kills and its working good
PS: you can check the changes in player.cpp or the lines that i have omitted searching for //WAR
https://ghostbin.com/paste/779ku
also im using this lua script to simulate the skull by range system
the issue that im having is that player are loosing skull when they log out or if they die
can someone provide me an script to avoid lost on log out?
cheers
Well i have edited my source(player.cpp) to avoid get yellow skull or white in case you attack someone
also removed the condition of get red after x ammount of player kills and its working good
PS: you can check the changes in player.cpp or the lines that i have omitted searching for //WAR
https://ghostbin.com/paste/779ku
also im using this lua script to simulate the skull by range system
Lua:
local storage = 4321
function onKill(cid, target)
local frags = getPlayerStorageValue(cid, storage)
if(isPlayer(target)) then
setPlayerStorageValue(cid, storage, frags+1)
if(frags < 2) then
doCreatureSetSkullType(cid, SKULL_YELLOW)
elseif(frags < 4) then
doCreatureSetSkullType(cid, SKULL_GREEN)
elseif(frags < 6) then
doCreatureSetSkullType(cid, SKULL_WHITE)
elseif(frags > 7) then
doCreatureSetSkullType(cid, SKULL_RED)
end
end
return true
end
the issue that im having is that player are loosing skull when they log out or if they die
can someone provide me an script to avoid lost on log out?
cheers