Page 1 of 2
print bold to everyone
Posted: August 21st, 2006, 2:20 am
by Pedsdude
Instead of having it showing to the person who triggered it, is it possible to trigger it for everyone in the server?
The example I was thinking of was that say for instance somebody called "brian" pressed use on a trigger_use, targetname "silly1" (bare with me

). This then sends a message to everyone in the server saying "brian rules".
I have tried doing it (so has sam), but we've both failed, Drofder?

Posted: August 21st, 2006, 5:22 am
by Nightmare
Thats easy, just take off the user in
so it will be
then when you get to those inprintlnbold or inprintln just have it simply like that without user in front of it.
so dont do this:
but this
Now I will laugh at you both: Ha ha ha
Posted: August 21st, 2006, 10:18 am
by Luke
I think he meant so it shows the players name in the message, so everyone can see it
I haven't tested this, and I have a feeling it will work the same as the ("trigger",user) method, but worth a try
Code: Select all
trig waittill ("trigger",other);
player = other;
iprintlnbold (player.name + "brian is gay ");
Posted: August 21st, 2006, 2:24 pm
by Nightmare
the way I use works, just look in nm_grenade. I took off all the user's in the script and it shows it to everyone.
Posted: August 21st, 2006, 3:16 pm
by Nightmare
Code: Select all
rule()
{
trigger = getent ("trigger_rule","targetname");
while(1)
{
trigger waittill ("trigger",user);
user iprintlnbold("^1You Rule");
iprintln ("^1" + user.name + " ^7Rules");
wait(5);
}
}
there
Posted: August 21st, 2006, 4:00 pm
by Pedsdude
Thank you, will try it now.
Just to make it clear to everyone, I want it so that EVERYONE IN THE SERVER SEES THE NAME OF THE PERSON WHO TRIGGERED IT.
Posted: August 21st, 2006, 5:00 pm
by Pedsdude
Tested it and it works perfectly, thanks a lot

Posted: August 21st, 2006, 7:22 pm
by Nightmare
no problem, now I will laugh at you two
hahahaha
Posted: August 21st, 2006, 10:09 pm
by Pedsdude
I couldn't agree more

Posted: August 21st, 2006, 11:29 pm
by Nightmare
well you too KS, because you couldn't find it either
hahaha

Posted: August 22nd, 2006, 1:54 am
by Drofder2004
Retards.
Posted: August 22nd, 2006, 1:59 am
by Pedsdude
lol

Posted: August 22nd, 2006, 2:51 am
by Nightmare
this is going no where, i might as well lock this topic
And drofder is jealous because I beat him
j/k
Posted: August 22nd, 2006, 1:31 pm
by Drofder2004
Nightmare wrote:this is going no where, i might as well lock this topic
And drofder is jealous because I beat him
j/k
not really because I would've used a more efficient code. One that sent messages to each person individually.
You code send 2 messages to the person who triggers the trigger, whereas mine would send only 1..
So there

Posted: August 22nd, 2006, 6:07 pm
by Pedsdude
Indeed, I get the last laugh, end of.