i tried this but doesn't work

with this script only one player can show the message
i tried also with " player wait 1000 "but i knew that was a stupid thing xD
Code: Select all
main()
{
thread finishmap();
}
finishmap()
{
trigger = getent ("finishmap","targetname");
while (1)
{
trigger waittill ("trigger",player);
if(isdefined(player.down)) return;
player iprintlnbold ("^1Congratulation, ^7" +player.name + "^1, You have finished the map^7!!!");
wait 10000.0;
}
}
