function onDeath(cid, corpse, killer)
local frag_stor = 1212 -- storage value for frags.
local getFrag = getPlayerStorageValue(cid, frag_stor)
if(isPlayer(killer) and isPlayer(cid))then
setPlayerStorageValue(cid, frag_stor, getFrag+1)
end
return TRUE
end
PHP:function onDeath(cid, corpse, killer) local frag_stor = 1212 -- storage value for frags. local getFrag = getPlayerStorageValue(cid, frag_stor) if(isPlayer(killer) and isPlayer(cid))then setPlayerStorageValue(cid, frag_stor, getFrag+1) end return TRUE end
He meant war system m8 ;p he wants only war frags counts ;d
Write exactly what features you need, list them ;p
its a full system.
-guilds can invite others guilds to war.
-if they are in war, they dont get frags.
-deaths in wars are registered.
-web show pending invitations and scores.
omfg^^
you just have to give every player on login a storage if he is in war and which guild he is fighing for.
then on death you check if both players are in war, if yes, then you add the killers team one point (for example in the database).
now you can handle with this database logs to make a nice statistik on your website...
there are serveral scripts that have been postet on this forum (for FREE) which were about 10 times more difficult!
It's a bit harder than you think.