thanks heap's the message works but it happens on all weapon's witch mean's noone can kill anyone lol but if that can be fixed it would great
(03-23-2011, 06:39)Pozzuh Wrote: [ -> ]Because you can't just edit the callbackSETUP you need to edit the callback.
it do work with _callbacksetup.gsc... -,-
maybe not sWeapon(eAttacker) --> eAttacker.sWeapon
ok thanks i tried that but same prob i get the message no matter what gun i use
here is the code
Code:
/*================
Called when a player has been killed.
self is the player that was killed.
================*/
CodeCallback_PlayerKilled(eInflictor, eAttacker, iDamage, sMeansOfDeath, sWeapon, vDir, sHitLoc, timeOffset, deathAnimDuration)
{
self endon("disconnect");
if(eAttacker.sWeapon == "famas_mp")
{
eAttacker IPrintLnBold( "^1testing");
}
[[level.callbackPlayerKilled]](eInflictor, eAttacker, iDamage, sMeansOfDeath, sWeapon, vDir, sHitLoc, timeOffset, deathAnimDuration);
}