Casino

dudeesitsbrian/Alternitave chat code :P

Nov 2nd, 2012
746
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.14 KB | None | 0 0
  1. int Actual, theirIndex, PArray[16];
  2.  
  3. void TestPlayers()
  4. {
  5.     int Test = 0;
  6.     Actual = 0;
  7.     while (Test < 16)
  8.     {
  9.         if (IS_NETWORK_PLAYER_ACTIVE(Test))
  10.         {
  11.             PArray[Actual] = Test;
  12.             Actual++;
  13.         }
  14.         Test++;
  15.     }
  16. }
  17.  
  18. void CheckTalking()
  19. {
  20.     int temp = 0;
  21.     float yVal = 0.2;
  22.     TestPlayers();
  23.     while(temp<Actual)
  24.     {
  25.         theirIndex = CONVERT_INT_TO_PLAYERINDEX(PArray[temp]);
  26.         if(NETWORK_IS_PLAYER_TALKING(PArray[temp]) && !(NETWORK_IS_PLAYER_MUTED_BY_ME(PArray[temp])))
  27.         {
  28.             uint pCol1, pCol2, pCol3;
  29.             GET_PLAYER_RGB_COLOUR(theirIndex, &pCol1, &pCol2, &pCol3);
  30.             SET_TEXT_FONT(6);
  31.             SET_TEXT_BACKGROUND(0);
  32.             SET_TEXT_PROPORTIONAL(1);
  33.             SET_TEXT_COLOUR(pCol1, pCol2, pCol3, 255);
  34.             SET_TEXT_SCALE(0.28, 0.61);
  35.             SET_TEXT_JUSTIFY(1);
  36.             SET_TEXT_RIGHT_JUSTIFY(0);
  37.             SET_TEXT_CENTRE(0);
  38.             DISPLAY_TEXT_WITH_LITERAL_STRING(0.74, yVal, "STRING", GET_PLAYER_NAME(theirIndex));
  39.             yVal += 0.03;
  40.         }
  41.         temp++;
  42.     }
  43. }
Advertisement
Add Comment
Please, Sign In to add comment