Count-down [+rep]
#1

Hey guys, now im trying to create count down with timers but i have a prob


the prob. is...when i write /test the 1,2,3 countdowns dont appear as gametext...only the final one (boom)



here is the code:
Quote:

forward boom();
forward one();
forward two();
forward tre();
new ob;


//onfsinit
ob = CreateObject(srry private code);

//onplayercommandtext
{
if(strcmp(cmdtext, "/test", true, 10)==0)
{
SetTimer("boom", 4000, 0);
SetTimer("tre", 1000, 0);
SetTimer("two", 2000, 0);
SetTimer("one", 3000, 0);
return 1;
}
return 0;
}









public boom()
{
MoveObject(ob, srry private code);
GameTextForAll("~r~BOOM!", 3000,3);
return 1;
}

public one()
{
GameTextForAll("3 seconds until launch", 3000,3);
return 1;
}

public two()
{
GameTextForAll("2 seconds until launch", 3000,3);
return 1;
}

public tre()
{
GameTextForAll("1 seconds until launch", 3000,3);
return 1;
}

Reply


Messages In This Thread
Count-down [+rep] - by Steezy_ - 09.04.2012, 09:26
Re: Count-down [+rep] - by Phyrunx - 09.04.2012, 09:29
Re: Count-down [+rep] - by Steezy_ - 09.04.2012, 09:31
Re: Count-down [+rep] - by Cjgogo - 09.04.2012, 09:32
Re: Count-down [+rep] - by Steezy_ - 09.04.2012, 09:35

Forum Jump:


Users browsing this thread: 1 Guest(s)