Author Topic: Score Popup From Kill  (Read 571 times)

Hey i made this code fast, it does popup 1 + in centerprint when you kill someone.

Please tell me or help me get it bether if you want.

Code: [Select]
package scorepopup
{
   function GameConnection::setScore(%client, %flag)
{
  parent::setScore(%client, %flag);
     if(%flag % 1 == 0)
 commandToClient(%client,'centerPrint',"<color:ACC122><font:lol:30>1 +");
 schedule(500,0,commandToClient,%client,'centerPrint',"");  
    }

};
activatePackage(scorepopup);

I hope to get it most like its in MW2 or something if it's worth it

I like it. This might be pretty useful, but what would be even better is if it specified what weapon you killed them with, etc. I don't know the specifics, though, and that could get pretty annoying to have to script.

Just wondering, though; how do you know what variables are specified in the parent?

I like it. This might be pretty useful, but what would be even better is if it specified what weapon you killed them with, etc. I don't know the specifics, though, and that could get pretty annoying to have to script.

Just wondering, though; how do you know what variables are specified in the parent?

You mean the

Code: [Select]
Parent::setScore(%client, %flag); ?
Or you mean the %client, %flag

I think %flag is same as %score
« Last Edit: August 08, 2011, 06:20:44 PM by xcruso »

This would be extremely easy to do with events.

This would be extremely easy to do with events.

Tell me?

Download minigame events here and then do something like the following events:
Code: [Select]
1. [ ] onMinigameKill>Killer(Client)>CenterPrint [<color:ffffff>1+]