Page 1 of 1
Printing end to map
Posted: August 13th, 2009, 4:21 pm
by Saint
I would need something like this: user iprintlnbold ("^3C^9ongratulation^3, N^9ice ^3j^9ob^3, m^9an^3! ^3"); to print to the center of the screen when someone ends the map but i want to make it visible to everyone not just the one who ends. How is it possible, pls help me

Re: Printing end to map
Posted: August 13th, 2009, 4:55 pm
by Nightmare
...
Or:
Code: Select all
finished_map()
{
trigger = getent("endtrigger","targetname");
while (1)
{
trigger waittill("trigger",user);
iprintlnbold("^3C^9ongratulation^3, N^9ice ^3j^9ob^3, m^9an^3! ^3");
wait 3;
}
}
Re: Printing end to map
Posted: August 13th, 2009, 5:15 pm
by Nightmare
If you only want it once.
Code: Select all
finished_map()
{
trigger = getent("endtrigger","targetname");
while (1)
{
trigger waittill("trigger",user);
if(!isDefined(user.finished))
iprintlnbold("^3C^9ongratulation^3, N^9ice ^3j^9ob^3, m^9an^3! ^3");
user.finished = true;
wait 1;
}
}
Re: Printing end to map
Posted: August 13th, 2009, 5:24 pm
by Saint
Thanks i'll try
Re: Printing end to map
Posted: August 16th, 2009, 8:16 pm
by Saint
On those maps where is no "end" text, no congratulations or anything, how it is possible to print such?
Re: Printing end to map
Posted: August 16th, 2009, 8:19 pm
by Ykarus
If u want to add that to a map u need the .map file. If u got this u can add a trigger or whatever u want and write the script into the .gsc file. But u need the .map file maybe ask the mapper if he gives it to you.
I hope i didnt missunderstand cause im not sure if this is what u wanna hear

Re: Printing end to map
Posted: August 17th, 2009, 2:04 am
by MasterThomy
I've done that, almost a year ago now...

(for CoD2)
Re: Printing end to map
Posted: August 17th, 2009, 11:26 am
by waywaaaard
why so complicated you can spawn a trigger at coordinates and voila via mod you have that - As far I remember projumpers mod uses this for their records etc
Re: Printing end to map
Posted: August 17th, 2009, 6:58 pm
by MasterThomy
Nah, it works just like Killersam said

- It's more precise IMO...