GTA Közösség - A magyar GTA fórum

San Andreas Multiplayer (SA-MP) => SA-MP: Szerverfejlesztés => Segítségkérés => A témát indította: FastFurious - 2012. március 14. - 13:21:04

Cím: mindent 2x ir ki a chat be
Írta: FastFurious - 2012. március 14. - 13:21:04
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]
Cím: mindent 2x ir ki a chat be
Írta: Zsolesszka - 2012. március 14. - 13:21:51
return 0;
Cím: mindent 2x ir ki a chat be
Írta: CANNONN - 2012. március 14. - 13:27:23
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;
}
Cím: mindent 2x ir ki a chat be
Írta: SuBaRu - 2012. március 14. - 13:33:32
ezt mondtam enki én is Skype-on :D
Cím: mindent 2x ir ki a chat be
Írta: FastFurious - 2012. március 14. - 13:47:13
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]