Start count
#2

PHP код:
if(strcmp(cmdtext,"/count",true) == 0) {
   new 
pName[30];
   new 
string[256];
   if (
== false)
   {
   
true;
   
GetPlayerName(playeridpName30);
   
format(string280"*** %s started count."pName);
   
SendClientMessageToAll(COLOR_LIGHTBLUEstring);
   for(new 
iMAX_PLAYERSi++) {
   
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(playerid0xFF9900AA"Its allready started!");
   return 
1;
   }
   return 
0;
}
////////////////////////////////////////////////////////////////////////////////
public count2()
{
   for(new 
iMAX_PLAYERSi++) {
   
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 
iMAX_PLAYERSi++) {
   
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 
iMAX_PLAYERSi++) {
   
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()
{
   
false;

if i was helpfull can you add me reputation
Reply


Messages In This Thread
Start count - by Speed - 31.10.2011, 19:46
Re: Start count - by boyan96 - 31.10.2011, 19:53
Re: Start count - by TomTroX - 31.10.2011, 20:13
Re: Start count - by Speed - 31.10.2011, 22:30

Forum Jump:


Users browsing this thread: 1 Guest(s)