Wenn ich nun /gmx eingeben kommt nur 5 aber nicht 4 3 2 1 GMX wiso :o ?
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/gmx", true) == 0)
{
if(isPlayerAnAdmin(playerid,2000))
{
SetTimer("countdown5",1000,false);
GameTextForAll("~b~>>>~r~5~b~<<<",1000,4);
return 1;
}
}
forward countdown5();
stock countdown5()
{
SetTimer("countdown4",1000,false);
GameTextForAll("~b~>>>~r~4~b~<<<",1000,4);
return 1;
}
forward countdown4();
stock countdown4()
{
SetTimer("countdown3",1000,false);
GameTextForAll("~b~>>>~r~3~b~<<<",1000,4);
return 1;
}
forward countdown3();
stock countdown3()
{
SetTimer("countdown2",1000,false);
GameTextForAll("~b~>>>~r~2~b~<<<",1000,4);
return 1;
}
forward countdown2();
stock countdown2()
{
SetTimer("countdown1",1000,false);
GameTextForAll("~b~>>>~r~1~b~<<<",1000,4);
return 1;
}
forward countdown1();
stock countdown1()
{
SetTimer("countdown0",1000,false);
GameTextForAll("~b~>>>~r~0~b~<<<",1000,4);
return 1;
}
forward countdown0();
stock countdown0()
{
SetTimer("secondo3",1000,false);
GameTextForAll("~b~>>>~g~GMX~b~<<<",1000,4);
SendRconCommand ("gmx")
return 1;
}