amikor irom     :    FastFurious :(0)csá
                            FastFurious :csá
[pawn]public OnPlayerText(playerid, text[])
{
switch(xTestBusy)
{
    case true:
    {
      if(!strcmp(xChars, text, false))
      {
          new
              string[128],
              pName[MAX_PLAYER_NAME]
         ;
         GetPlayerName(playerid, pName, sizeof(pName));
         format(string, sizeof(string), \"« {330066}\\%s\\\" nyerte meg a próbát. »\", pName);
          SendClientMessageToAll(GREEN, string);
          format(string, sizeof(string), \"« {33FF33}Kiérdemelted $%d + %d pontokat. »\", xCash, xScore);
          SendClientMessage(playerid, GREEN, string);
          GivePlayerMoney(playerid, xCash);
         SetPlayerScore(playerid, GetPlayerScore(playerid) + xScore);
         xReactionTimer = SetTimer(\"xReactionTest\", TIME, 1);
          xTestBusy = false;
      }
   }
}
   new e[200];
   format( e, 200, \"(%i)%s\", playerid, text );
   SendPlayerMessageToAll(playerid, e);
   return 1;
}
function xReactionProgress()
{
    switch(xTestBusy)
{
    case true:
    {
       new
           string[128]
      ;
      format(string, sizeof(string), \"« {33FFCC}Senki nem nyerte meg a reakció-tesztet {66FF00}%d perc. »\", (TIME/60000));
       SendClientMessageToAll(PURPLE, string);
        xReactionTimer = SetTimer(\"xReactionTest\", TIME, 1);
        }
}
return 1;
}
function xReactionTest()
{
new
   xLength = (random(

 + 10),
   string[128]
;
xCash = (random(500000) + 100000);
xScore = (random(10)+5);
format(xChars, sizeof(xChars), \"\");
Loop(x, xLength) format(xChars, sizeof(xChars), \"%s%s\", xChars, xCharacters[random(sizeof(xCharacters))][0]);
format(string, sizeof(string), \"« {FFFFFF}Ki típusok {33FFCC}%s nyertes {00FFFF}$%d + {33FFCC}%d pontokat.. »\", xChars, xCash, xScore);
SendClientMessageToAll(PURPLE, string);
KillTimer(xReactionTimer);
xTestBusy = true;
SetTimer(\"xReactionProgress\", 30000, 0);
return 0;
}[/pawn]