10.04.2012, 06:14
pawn Код:
dcmd_timer(playerid,params[])
{
#pragma unused params
cd1 = 6;
SetTimerEx("CdCd",100,0,"i",playerid);
return 1;
}
forward CdCd(playerid);
public CdCd(playerid)
{
cd1--;
if(cd1 == 0)
{
GameTextForPlayer(playerid,"Go!",1500,6);
}
if(cd1 >= 1)
{
new string[256];
format(string,sizeof(string),"%i",cd1);
GameTextForPlayer(playerid,string,1000,6);
check();
}
}
forward check();
public check()
{
SetTimer("CdCd",1000,0);
}
but the problem is , when i plugin the FS in my gamemode, the first time a command /timer . the number 5 appears for a second and goes away , but when i do this the second time.. the countdown works properly