AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Help me with something... (https://forums.alliedmods.net/showthread.php?t=60912)

Splintter 09-16-2007 12:21

Help me with something...
 
Hello, please explain me this part of miscstats code:

Code:

g_streakKills[victim][1]++
  g_streakKills[victim][0] = 0
  if (!selfkill)
  {
  g_streakKills[killer][0]++
  g_streakKills[killer][1] = 0
 
  new a = g_streakKills[killer][0] - 3
  if ((a > -1) && !(a % 2))
  {
    new name[32]
    get_user_name(killer, name, 31)
   
    if ((a >>= 1) > 6)
    a = 6


g_streakKills[id][0] is Kill count Correct?
g_streakKills[id][1] is Death count?

if yes, this i understand, but i dont understand this:
if ((a > -1) && !(a % 2))

and
if ((a >>= 1) > 6)

Thanks!


All times are GMT -4. The time now is 16:06.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.