PDA

View Full Version : trigger



Loveboy
9th January 2013, 15:05
Hi guys, i need help.
If you use a trigger
trig waittill("trigger"); so now come the function.
now you must press again, so again
trig waittill("trigger"); BUT now not a another guy can press
JUST the second can press it , who have press the first.

what i do?

Jeplaa
9th January 2013, 15:53
I'm not sure what you mean but the easiest way to make a trigger is:


trigger()
{
trig = self;
for(;;)
{
trig waittill("trigger", player);

player iprintlnbold("trigger!");
wait 1;
}
}