Guest User

Untitled

a guest
Apr 26th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.55 KB | None | 0 0
  1. public logevent_round_end()
  2. {
  3.     if (g_boolRoundEnded)
  4.     {
  5.         new players[32], num, player
  6.         get_players(players, num)
  7.         for (new i = 0; i < num; i++)
  8.         {
  9.             player = players[i]
  10.            
  11.             if (g_iCurTeam[player] == g_iTeam[player] )
  12.                 cs_set_user_team(player, (g_iTeam[player] = (g_iTeam[player] == CS_TEAM_T ? CS_TEAM_CT : CS_TEAM_T)))
  13.             else
  14.                 g_iTeam[player] = g_iTeam[player] == CS_TEAM_T ? CS_TEAM_CT : CS_TEAM_T
  15.         }
  16.         print_color(0, "%s^x04 %L", MODNAME, LANG_SERVER, "SWAP_ANNOUNCE")
  17.     }
  18.     remove_task(TASK_BUILD)
  19.     return PLUGIN_HANDLED
  20. }
Add Comment
Please, Sign In to add comment