[FilterScript] [FS] Count Down System
#12

V2:
Quote:

#include <a_samp>
#define FILTERSCRIPT
#if defined FILTERSCRIPT
#define COLOR_LIGHTBLUE 0x33CCFFAA
forward count2();
forward count1();
forward countgo();
forward stop();
new bool:a;
new Float:X, Float:Y, Float:Z;
#else
#endif
////////////////////////////////////////////////////////////////////////////////
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext,"/count",true) == 0) {
new pName[30];
new string[256];
if (a == false)
{
a = true;
GetPlayerName(playerid, pName, 30);
format(string, 280, "*** %s started count.", pName);
SendClientMessageToAll(COLOR_LIGHTBLUE, string);
for(new i; i < MAX_PLAYERS; i++) {
GameTextForPlayer(i, "~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~g~-~y~ 3 ~g~-",1000,3);
GetPlayerPos(i,X,Y,Z);
}
SetTimer("count2",1000,0);
SetTimer("count1",2000,0);
SetTimer("countgo",3000,0);
SetTimer("stop",6000,0);

}
else SendClientMessage(playerid, 0xFF9900AA, "Its allready started!");
return 1;
}

return 0;
}
////////////////////////////////////////////////////////////////////////////////
public count2()
{
for(new i; i < MAX_PLAYERS; i++) {
GameTextForPlayer(i,"~n~~n~~n~~n~~n~~n~~n~~n~~n~~n ~~n~~g~-~y~ 2 ~g~-",1000,3);
GetPlayerPos(i,X,Y,Z);
}
}
////////////////////////////////////////////////////////////////////////////////
public count1()
{
for(new i; i < MAX_PLAYERS; i++) {
GameTextForPlayer(i,"~n~~n~~n~~n~~n~~n~~n~~n~~n~~n ~~n~~g~-~y~ 1 ~g~-",1000,3);
GetPlayerPos(i,X,Y,Z);
}
}
////////////////////////////////////////////////////////////////////////////////
public countgo()
{
for(new i; i < MAX_PLAYERS; i++) {
GetPlayerPos(i,X,Y,Z);
GameTextForPlayer(i,"~n~~n~~n~~n~~n~~n~~n~~n~~n~~n ~~n~~g~-~y~]~g~-~g~START~g~-~y~]~g~-",1000,3);
PlayerPlaySound(i,1057,X,Y,Z);
}
}
public stop()
{
a = false;
}
//////////////////
// © Fumis 2009 //
//////////////////

Reply


Messages In This Thread
[FS] Count Down System - by Fumis - 21.02.2009, 19:09
Re: [FS] Count Down System - by [LNL]Remulis - 21.02.2009, 19:12
Re: [FS] Count Down System - by DDaGxXx - 21.02.2009, 19:14
Re: [FS] Count Down System - by Maercell - 21.02.2009, 19:16
Re: [FS] Count Down System - by Nimphious - 21.02.2009, 19:21
Re: [FS] Count Down System - by Fumis - 21.02.2009, 19:25
Re: [FS] Count Down System - by [LNL]Remulis - 21.02.2009, 19:38
Re: [FS] Count Down System - by bpeterson - 21.02.2009, 19:42
Re: [FS] Count Down System - by Fumis - 21.02.2009, 19:44
Re: [FS] Count Down System - by Synkro93 - 21.02.2009, 20:05
Re: [FS] Count Down System - by Nimphious - 21.02.2009, 20:13
Re: [FS] Count Down System - by Fumis - 21.02.2009, 20:19
Re: [FS] Count Down System - by Weirdosport - 21.02.2009, 20:21
Re: [FS] Count Down System - by bpeterson - 22.02.2009, 09:33
Re: [FS] Count Down System - by Antironix - 22.02.2009, 12:21
Re: [FS] Count Down System - by Weirdosport - 22.02.2009, 13:12
Re: [FS] Count Down System - by hujmens007 - 22.02.2009, 13:38
Re: [FS] Count Down System - by bpeterson - 22.02.2009, 15:45
Re: [FS] Count Down System - by Fumis - 22.02.2009, 18:01
Re: [FS] Count Down System - by tehcudguy - 22.02.2009, 18:05
Re: [FS] Count Down System - by Weirdosport - 22.02.2009, 19:25
Re: [FS] Count Down System - by [Z]Sahtiyan - 23.02.2009, 10:03
Re: [FS] Count Down System - by CAMERON_BANFIELD - 05.03.2009, 19:23
Re: [FS] Count Down System - by Weirdosport - 05.03.2009, 19:49
Re: [FS] Count Down System - by CAMERON_BANFIELD - 05.03.2009, 19:55

Forum Jump:


Users browsing this thread: 2 Guest(s)