Author Topic: messageAll Help  (Read 570 times)

So I know the command for chat messages

but what is the bottom print and the center print?

centerprintall & bottomprintall

Please, the search button would've worked for this.

centerprintall & bottomprintall

Please, the search button would've worked for this.

sorry, what i meant was the cmds for client, not all

Then you shouldn't have put "messageALL" in the title.

Anyway...

Code: [Select]
%cl.centerPrint(%text, %time);
%cl.bottomPrint(%text, %time, %someBooleanIDontKnowThePurposeOf);

The last one can basically always be 0, as far as I know.

The last one can basically always be 0, as far as I know.
It sets whether the bottomprint has that grey background around it

Then you shouldn't have put "messageALL" in the title.

Anyway...

Code: [Select]
%cl.centerPrint(%text, %time);
%cl.bottomPrint(%text, %time, %someBooleanIDontKnowThePurposeOf);

The last one can basically always be 0, as far as I know.

Ya, ik, I just realized it.

It sets whether the bottomprint has that grey background around it

Oh, so, if i dont add a 0, it wont add the background?

Oh, so, if i dont add a 0, it wont add the background?

Logically, if 0 means false, you can reason that it translates to background = false

Logically, if 0 means false, you can reason that it translates to background = false


Excuse my idiotism.


Excuse my idiotism.
Don't take it as an insult, that's not my intentions, I'm just trying to show you that most of programming is simply logic, it makes it a lot easier if you think in a logical reasoning standpoint while programming

Don't take it as an insult, that's not my intentions, I'm just trying to show you that most of programming is simply logic, it makes it a lot easier if you think in a logical reasoning standpoint while programming


Ok.


So would this be right?


Code: [Select]
%cl.centerPrint(%text, %time, %0);
%cl.bottomPrint(%text, %time, %0);



If this is not right by any means, please dont get rowled up at me. Im a slow learner. :/ (NO, IM NOT SLOW, THE WAY SOME PEOPLE MAY READ THIS)


No, centerprint doesn't have a third argument.

It would be

%client.centerPrint(MESSAGE,TIMETODISPLAY);
%client.bottomPrint(MESSAGE,TIMETODISPLAY,BOOLEANFORBACKDROP);

Remember that the time is in milliseconds as well.

No, centerprint doesn't have a third argument.

It would be

%client.centerPrint(MESSAGE,TIMETODISPLAY);
%client.bottomPrint(MESSAGE,TIMETODISPLAY,BOOLEANFORBACKDROP);

Remember that the time is in milliseconds as well.


this is my code so far:


Code: [Select]
function GameConnection::OnDeath(%client, %killerPlayer, %killer, %damageType, %damageLoc)
   {
                //parent
       parent::OnDeath(%client, %killerPlayer, %killer, %damageType, %damageLoc);
                //Message here
        messageClient(%client,'',"<font:impact:24>\c6+10");
   }

Now, notice the second to last line, I can just put centerprintClient?