Blockland Forums > Modification Help
Score Popup From Kill
(1/2) > >>
xcruso:
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: ---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);
--- End code ---

I hope to get it most like its in MW2 or something if it's worth it
Katadeus:
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?
xcruso:

--- Quote from: Katadeus on August 08, 2011, 05:48:59 PM ---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?

--- End quote ---

You mean the


--- Code: ---Parent::setScore(%client, %flag);
--- End code ---
?
Or you mean the %client, %flag

I think %flag is same as %score
jes00:
This would be extremely easy to do with events.
xcruso:

--- Quote from: jes00 on August 08, 2011, 10:14:53 PM ---This would be extremely easy to do with events.

--- End quote ---

Tell me?
Navigation
Message Index
Next page

Go to full version