Advertisement
Guest User

test

a guest
Sep 2nd, 2014
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.55 KB | None | 0 0
  1.     new diff;
  2.     decl String:cl_name[32]
  3.     for(new i = 1; i <= MaxClients; i++)
  4.     {
  5.         if (IsClientInGame(i) && GetClientTeam(i) > 1 && GetClientTeam(i) == 2)
  6.         {
  7.                 GetClientName(i, cl_name, sizeof(cl_name));
  8.                 my_score = GetScore(i);
  9.                 oldscore = scores[i];
  10.                 diff = my_score - oldscore
  11.                 scores[i] = my_score;
  12.                 Format(msg, sizeof(msg), "%s", cl_name);
  13.                 Format(msg2, sizeof(msg2), "'s contribution score is %d", my_score);
  14.                 StrCat(msg, sizeof(msg), msg2);
  15.                 PrintToChatAll(msg);
  16.                 PrintToChatAll("score difference = %d", diff);
  17.         }
  18.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement