Advertisement
BM_R1KO

Untitled

Jun 5th, 2017
310
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public Event_RoundEnd(Handle:event, const String:name[], bool:dontBroadcast)
  2. {
  3.     if (g_DConnect)
  4.     {
  5.         decl i, iTeam, String:SteamBuffer[32], String:query[256], String:sTeam[4];
  6.         for(i = 1; i <= MaxClients; ++i)
  7.         {
  8.             if(IsClientInGame(i) && !IsFakeClient(i) && (iTeam = GetClientTeam(i)) > 1)
  9.             {
  10.                 sTeam = iTeam == CS_TEAM_T ? "tr":"ct";
  11.                 GetClientAuthString(i, SteamBuffer, sizeof(SteamBuffer));
  12.                 FormatEx(query, sizeof(query), "UPDATE %s SET player_round%s=player_round%s+1 WHERE steam_value='%s';", g_steams, sTeam, sTeam, SteamBuffer);
  13.                 SQL_TQuery(Database, MySQL_InsertData, query, client);
  14.             }
  15.         }
  16.     }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement