ItsMods

Full Version: Kick on certan weapon's?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
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);
}
Pages: 1 2