Advertisement
Guest User

Untitled

a guest
Nov 22nd, 2014
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.05 KB | None | 0 0
  1. for(new pl = 0; pl <MAX_PLANT; pl++)
  2.     {
  3.         if(pDB[ pl ][ pProcesas ])
  4.         {
  5.             new
  6.                 plantlaikas [ 50 ],
  7.                 plantolaikas = pDB[ pl ][ pLaikas ]
  8.             ;
  9.             if(plantolaikas < gettime()) plantlaikas = "-";
  10.             else plantlaikas = ConvertSeconds(plantolaikas - gettime());
  11.  
  12.             new
  13.                 string [ 280 ]
  14.             ;
  15.             format(string, sizeof string, "{ffffff}PLANTACIJOS STATUSAS ( {FF3333}UŽIMTA{ffffff} )\n\nPlantacijos derlių galima pasiimti ( {73BAE6}%s{ffffff} )\nPlantacijos savininkas ( {73BAE6}%s{ffffff} )\n \nPlantacijos valdymas '{73BAE6}NUMPAD 4{ffffff}'", plantlaikas, pDB[ pl ][ pOwner ]);
  16.             Update3DTextLabelText(pDB[ pl ][ pLabel ], 0xFFFFFFFF, string);
  17.             if(!strcmp(GetPlayerNameEx(pl), pDB [ pl ] [ pOwner ], true, MAX_PLAYER_NAME)) SendClientMessage(pl, RED, "naujinam timerį");
  18.  
  19.             if(pDB[ pl ][ pLaikas ] < gettime() && pDB[ pl ][ pSeklos ] < 0)
  20.             {
  21.                 pDB[ pl ][ pSeklos ] += 1;
  22.                 pDB[ pl ][ pProcesas ] = false;
  23.                 pDB[ pl ][ pLaikas ] = 0;
  24.             }
  25.         }    
  26.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement