Post: Looking for a way to notify myself when i killed someone & who i killed ?
07-28-2011, 04:55 PM #1
Karoolus
I'm the W@W Menu Guy !
(adsbygoogle = window.adsbygoogle || []).push({}); I'm looking for a way to notify myself that i've killed an enemy player & if possible, knowing which player i killed (entitynumber, name, w/e)

anyone have an idea ? Smile

edit: 2500th post !! Happy
(adsbygoogle = window.adsbygoogle || []).push({});
07-28-2011, 05:46 PM #2
Blackstorm
Veni. Vidi. Vici.
Hmmm, not sure. I'll start looking. Smile

---------- Post added at 11:37 AM ---------- Previous post was at 11:19 AM ----------

I found out when you kill a player it notifies this string:

Originally posted by another user


victim endon( "spawned" );
victim notify( "killed_player" );



---------- Post added at 11:46 AM ---------- Previous post was at 11:37 AM ----------

EDIT:

I got it, you'll have to use this monitor script I made, or w/e you prefer.

Here:

    
monitorKilledPlayers()
{
self endon( "disconnect" );
for ( ;; ) {
self waittill( "killed_player" );
for ( i = 0; i < level.players.size; i++ ) {
if ( isAlive( level.players[i] ) ) continue;
if ( level.players[i].lastAttacker == self ) break;
}
self.lastKilledPlayer = level.players[i];
}
}


Please note that this isn't tested, I just studied the GSC's a bit, and noticed the variable lastAttacker, but it was in a MW2 GSC. So you can never be too sure. Try it. Smile
07-28-2011, 06:18 PM #3
Moved to Hacking Questions. Winky Winky

The following user thanked Connor for this useful post:

Karoolus
07-28-2011, 06:27 PM #4
Amanda
Can’t trickshot me!
I had tried "self waittill( "killed_player" ); & self waittill( "killed_enemy" );" long ago and it didn't work for me in COD4, so I made this simple script to notify that I killed someone:

    
NotifyKill() {
self endon ( "disconnect" );
self.victims = 0;
self.prevkills = self.pers["kills"];
for(;Winky Winky { if ( self.prevkills < self.pers["kills"] ) { self.prevkills = self.pers["kills"]; self.victims++; } wait 0.1; }
}


I use it in my patch so it works 100% Smile
07-29-2011, 03:34 PM #5
Karoolus
I'm the W@W Menu Guy !
Originally posted by Amanda View Post
I had tried "self waittill( "killed_player" ); & self waittill( "killed_enemy" );" long ago and it didn't work for me in COD4, so I made this simple script to notify that I killed someone:

    
NotifyKill() {
self endon ( "disconnect" );
self.victims = 0;
self.prevkills = self.pers["kills"];
for(;Winky Winky { if ( self.prevkills < self.pers["kills"] ) { self.prevkills = self.pers["kills"]; self.victims++; } wait 0.1; }
}


I use it in my patch so it works 100% Smile


    MonitorKills()
{
prevkills = self.kills;
lastammo = self.kills;
streak = 0;
while(IsAlive( self ))
{
if(self.kills != prevkills)
{
streak++;
if(self.kills >= lastammo+3)
{
weapon = level.promodweapons[0];
self SetWeaponAmmoStock( weapon, (self GetWeaponAmmoStock(weapon) + Cool Man (aka Tustin));
lastammo = self.kills;
self thread hintMe("Killstreak Reward: Ammo");
wait 3;
}
if(streak >= 4)
{
switch (streak)
{
case 4:
self thread hintMe("4 Streak: Grenades Refilled !");
for(a = 2;a<5;a++)
{
self GiveWeapon(level.promodweapons[a]);
self GiveMaxAmmo(level.promodweapons[a]);
}
break;
case 8:
self thread hintMe("8 Streak: Sniper Refilled!");
self GiveMaxAmmo(level.promodweapons[0]);
break;
case 12:
self thread hintMe("12 Streak!");
break;
case 20:
self thread hintMe("20 KILL STREAK ! NUKE INCOMING !");
default :
break;
}
}
prevkills = self.kills;
self iPrintln("killed a player ?");
}
wait .05;
}
}


already had this in my patch.. thx for the reply though !!
i was actually looking for a way to notify myself WHO i killed :p

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo