package blah function GameConnection::setScore(%client,%flag) { parent::setScore(%client,%flag); //do stuff }};
Code: [Select]package blah function GameConnection::setScore(%client,%flag) { parent::setScore(%client,%flag); //do stuff }};This is better than incScore because it works when you set the score and when you just increase it.
You could check to see if the score afterwards is a multiple of two.
How could you do that?
if(%flag / 2 $= mFloatLength(%flag / 2, 0)) { //do stuff}
Code: [Select]if(%flag / 2 $= mFloatLength(%flag / 2, 0)) { //do stuff}
if(%flag % 2 == 0)
Code: [Select]if(%flag % 2 == 0)
Damn you... adding to my //'d out section of main scripts
Haha, you do that to!
On a side note: Is there any way to detect if a player has respawned. Also, is there a list of all these things like GameConnection::setScore?
Few more questions if you guys don't mind. =P
Few more questions if you guys don't mind. =PEDIT: What is %flag used for?
Is there any way to detect if a player has respawned.
if(isObject(%client.player)) //check if they have a player object //if they do, that means they've spawned, do stuff