Hi guys, i need to create a message every time someone is killed and this player is on war system against other guild to show the score, like:
Build-in some function, like "onpreparedeath":
Please this is very usefull to war with too much frags, because i have this in gesior acc, but not in server itself.
Thanks adv!
[WAR-SYSTEM] Your guild score: X / Enemy guild score: Y
Build-in some function, like "onpreparedeath":
function onpreparedeath(i don't remember exactly what go here)
function isplayerinwar(cid)
some sql querys here to get info about guild war is going on(i'm really noob in sql codes)
-- return the value in 1 or 0
end
if isplayerinwar(killer) and isplayerinwar(cid) then
local players = getPlayersOnline()
for _, pid in ipairs(players) do
if isplayerinwar(killer) or isplayerinwar(cid) then
doPlayerSendChannelMessage(pid, "[WAR-SYSTEM]", "The values here", TALKTYPE_CHANNEL_W, CHANNEL_GUILD)
end
end
end
return true
end
Please this is very usefull to war with too much frags, because i have this in gesior acc, but not in server itself.
Thanks adv!