Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public Event_RoundEnd(Handle:event, const String:name[], bool:dontBroadcast)
- {
- if (g_DConnect)
- {
- decl i, iTeam, String:SteamBuffer[32], String:query[256], String:sTeam[4];
- for(i = 1; i <= MaxClients; ++i)
- {
- if(IsClientInGame(i) && !IsFakeClient(i) && (iTeam = GetClientTeam(i)) > 1)
- {
- sTeam = iTeam == CS_TEAM_T ? "tr":"ct";
- GetClientAuthString(i, SteamBuffer, sizeof(SteamBuffer));
- FormatEx(query, sizeof(query), "UPDATE %s SET player_round%s=player_round%s+1 WHERE steam_value='%s';", g_steams, sTeam, sTeam, SteamBuffer);
- SQL_TQuery(Database, MySQL_InsertData, query, client);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement