Szerző Téma: mindent 2x ir ki a chat be  (Megtekintve 422 alkalommal)

mindent 2x ir ki a chat be
« Dátum: 2012. Március 14. - 13:21:04 »
0 Show voters
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(8) + 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]

mindent 2x ir ki a chat be
« Válasz #1 Dátum: 2012. Március 14. - 13:21:51 »
0 Show voters
return 0;

Nem elérhető CANNONN

  • 2139
    • Profil megtekintése
mindent 2x ir ki a chat be
« Válasz #2 Dátum: 2012. Március 14. - 13:27:23 »
0 Show voters
Már ɐʞzssǝlosz leírta, de azért átírom neked, mert ahogy téged ismerlek..
 

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 0;
}

SuBaRu

  • Vendég
mindent 2x ir ki a chat be
« Válasz #3 Dátum: 2012. Március 14. - 13:33:32 »
0 Show voters
ezt mondtam enki én is Skype-on :D

mindent 2x ir ki a chat be
« Válasz #4 Dátum: 2012. Március 14. - 13:47:13 »
0 Show voters
kosz
de nem megy a rakcio ez hol marad??????????
[pawn]   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(8) + 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]

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal