• Welcome Guest, The new Modme forums are here! Please visit here for all recommended information.

Kill the brutus

gunrock12

Member
How do i make a message appear after i kill a brutus?
i tried this script but it didn't work.

function spawn_brutus()
{

guys = GetEnt("hq_soldiers", "script_noteworthy");

boss_trigger5 = GetEnt("boss_trigger5", "targetname" );
boss_trigger5 waittill("trigger");
iprintlnbold("prision boss spawnes");
zm_cellbreaker::spawn_brutus(2000);


guys waittill("death");
wait(2);
iprintlnbold( "Yeah you killed him" );

}


thanks for any help!
 

gunrock12

Member
It didn't work as soon as brutus spawned the iprintlnbold( "Yeah you killed him" ); would pop up the same time he
spawned in.
 

eDeK

Well-known member
If you are using the CELLBREAKER of Spiki, try this...

Open zm_cellbreaker.gsc and search this...
Code:
function private brutusSpawnSetup()
"Inside this function", put this at the bottom...
Code:
self thread i_killed_a_brutus();
Copy and paste this function at the bottom of the GSC
Code:
function i_killed_a_brutus( eInflictor, attacker, iDamage, sMeansOfDeath, weapon, vDir, sHitLoc, psOffsetTime )
{
    self waittill( "death", attacker );

    if( isdefined( attacker ) && IsPlayer( attacker ) )
    {      
        IPrintLnBold( "Yeah you killed him" );
        WAIT_SERVER_FRAME;                      
    }
    WAIT_SERVER_FRAME;
}
 
Last edited:
Top