[Half-Life AMXX] / miscstats.sma Repository:
ViewVC logotype

Diff of /miscstats.sma

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1, Tue Oct 30 09:08:11 2007 UTC revision 44, Mon Oct 11 23:53:51 2010 UTC
# Line 206  Line 206 
206  {  {
207          new g_addStast[] = "amx_statscfg add ^"%s^" %s"          new g_addStast[] = "amx_statscfg add ^"%s^" %s"
208    
209          server_cmd(g_addStast, "MultiKill", "MultiKill")          server_cmd(g_addStast, "ST_MULTI_KILL", "MultiKill")
210          server_cmd(g_addStast, "MultiKillSound", "MultiKillSound")          server_cmd(g_addStast, "ST_MULTI_KILL_SOUND", "MultiKillSound")
211          server_cmd(g_addStast, "Bomb Planting", "BombPlanting")          server_cmd(g_addStast, "ST_BOMB_PLANTING", "BombPlanting")
212          server_cmd(g_addStast, "Bomb Defusing", "BombDefusing")          server_cmd(g_addStast, "ST_BOMB_DEFUSING", "BombDefusing")
213          server_cmd(g_addStast, "Bomb Planted", "BombPlanted")          server_cmd(g_addStast, "ST_BOMB_PLANTED", "BombPlanted")
214          server_cmd(g_addStast, "Bomb Defuse Succ.", "BombDefused")          server_cmd(g_addStast, "ST_BOMB_DEF_SUCC", "BombDefused")
215          server_cmd(g_addStast, "Bomb Def. Failure", "BombFailed")          server_cmd(g_addStast, "ST_BOMB_DEF_FAIL", "BombFailed")
216          server_cmd(g_addStast, "Bomb PickUp", "BombPickUp")          server_cmd(g_addStast, "ST_BOMB_PICKUP", "BombPickUp")
217          server_cmd(g_addStast, "Bomb Drop", "BombDrop")          server_cmd(g_addStast, "ST_BOMB_DROP", "BombDrop")
218          server_cmd(g_addStast, "Bomb Count Down", "BombCountVoice")          server_cmd(g_addStast, "ST_BOMB_CD_VOICE", "BombCountVoice")
219          server_cmd(g_addStast, "Bomb Count Down (def)", "BombCountDef")          server_cmd(g_addStast, "ST_BOMB_CD_DEF", "BombCountDef")
220          server_cmd(g_addStast, "Bomb Site Reached", "BombReached")          server_cmd(g_addStast, "ST_BOMB_SITE", "BombReached")
221          server_cmd(g_addStast, "Italy Bonus Kill", "ItalyBonusKill")          server_cmd(g_addStast, "ST_ITALY_BONUS", "ItalyBonusKill")
222          server_cmd(g_addStast, "Last Man", "LastMan")          server_cmd(g_addStast, "ST_LAST_MAN", "LastMan")
223          server_cmd(g_addStast, "Knife Kill", "KnifeKill")          server_cmd(g_addStast, "ST_KNIFE_KILL", "KnifeKill")
224          server_cmd(g_addStast, "Knife Kill Sound", "KnifeKillSound")          server_cmd(g_addStast, "ST_KNIFE_KILL_SOUND", "KnifeKillSound")
225          server_cmd(g_addStast, "Grenade Kill", "GrenadeKill")          server_cmd(g_addStast, "ST_HE_KILL", "GrenadeKill")
226          server_cmd(g_addStast, "Grenade Suicide", "GrenadeSuicide")          server_cmd(g_addStast, "ST_HE_SUICIDE", "GrenadeSuicide")
227          server_cmd(g_addStast, "HeadShot Kill", "HeadShotKill")          server_cmd(g_addStast, "ST_HS_KILL", "HeadShotKill")
228          server_cmd(g_addStast, "HeadShot Kill Sound", "HeadShotKillSound")          server_cmd(g_addStast, "ST_HS_KILL_SOUND", "HeadShotKillSound")
229          server_cmd(g_addStast, "Round Counter", "RoundCounter")          server_cmd(g_addStast, "ST_ROUND_CNT", "RoundCounter")
230          server_cmd(g_addStast, "Round Counter Sound", "RoundCounterSound")          server_cmd(g_addStast, "ST_ROUND_CNT_SOUND", "RoundCounterSound")
231          server_cmd(g_addStast, "Killing Streak", "KillingStreak")          server_cmd(g_addStast, "ST_KILL_STR", "KillingStreak")
232          server_cmd(g_addStast, "Killing Streak Sound", "KillingStreakSound")          server_cmd(g_addStast, "ST_KILL_STR_SOUND", "KillingStreakSound")
233          server_cmd(g_addStast, "Enemy Remaining", "EnemyRemaining")          server_cmd(g_addStast, "ST_ENEMY_REM", "EnemyRemaining")
234          server_cmd(g_addStast, "Double Kill", "DoubleKill")          server_cmd(g_addStast, "ST_DOUBLE_KILL", "DoubleKill")
235          server_cmd(g_addStast, "Double Kill Sound", "DoubleKillSound")          server_cmd(g_addStast, "ST_DOUBLE_KILL_SOUND", "DoubleKillSound")
236          server_cmd(g_addStast, "Player Name", "PlayerName")          server_cmd(g_addStast, "ST_PLAYER_NAME", "PlayerName")
237          server_cmd(g_addStast, "First Blood Sound", "FirstBloodSound")          server_cmd(g_addStast, "ST_FIRST_BLOOD_SOUND", "FirstBloodSound")
238  }  }
239    
240  public client_putinserver(id)  public client_putinserver(id)
# Line 297  Line 297 
297    
298          if (MultiKill || MultiKillSound)          if (MultiKill || MultiKillSound)
299          {          {
300                  if (!selfkill && !TK)                  if (!selfkill && !TK && killer)
301                  {                  {
302                          g_multiKills[killer][0]++                          g_multiKills[killer][0]++
303                          g_multiKills[killer][1] += headshot                          g_multiKills[killer][1] += headshot
# Line 470  Line 470 
470          {          {
471                  if (HeadShotKill && wpnindex)                  if (HeadShotKill && wpnindex)
472                  {                  {
473                          new killer_name[32], victim_name[32], weapon_name[32], message[128], players[32], pnum                          new killer_name[32], victim_name[32], weapon_name[32], message[256], players[32], pnum
474    
475                          xmod_get_wpnname(wpnindex, weapon_name, 31)                          xmod_get_wpnname(wpnindex, weapon_name, 31)
476                          get_user_name(killer, killer_name, 31)                          get_user_name(killer, killer_name, 31)
# Line 479  Line 479 
479    
480                          for (new i = 0; i < pnum; i++)                          for (new i = 0; i < pnum; i++)
481                          {                          {
482                                  format(message, 127, "%L", players[i], g_HeadShots[random_num(0, 6)])                                  format(message, sizeof(message)-1, "%L", players[i], g_HeadShots[random_num(0, 6)])
483    
484                                  replace(message, 127, "$vn", victim_name)                                  replace(message, sizeof(message)-1, "$vn", victim_name)
485                                  replace(message, 127, "$wn", weapon_name)                                  replace(message, sizeof(message)-1, "$wn", weapon_name)
486                                  replace(message, 127, "$kn", killer_name)                                  replace(message, sizeof(message)-1, "$kn", killer_name)
487    
488                                  set_hudmessage(100, 100, 255, -1.0, 0.30, 0, 6.0, 6.0, 0.5, 0.15, -1)                                  set_hudmessage(100, 100, 255, -1.0, 0.30, 0, 6.0, 6.0, 0.5, 0.15, -1)
489                                  ShowSyncHudMsg(players[i], g_announce_sync, "%s", message)                                  ShowSyncHudMsg(players[i], g_announce_sync, "%s", message)
# Line 535  Line 535 
535    
536  public showStatus(id)  public showStatus(id)
537  {  {
538          if (PlayerName)          if(!is_user_bot(id) && is_user_connected(id) && PlayerName)
539          {          {
540                  new name[32], pid = read_data(2)                  new name[32], pid = read_data(2)
541    
# Line 555  Line 555 
555                          if (wpnid)                          if (wpnid)
556                                  xmod_get_wpnname(wpnid, wpnname, 31)                                  xmod_get_wpnname(wpnid, wpnname, 31)
557    
558                          set_hudmessage(color1, 50, color2, -1.0, 0.60, 1, 0.01, 3.0, 0.01, 0.01)                          set_hudmessage(color1, 50, color2, -1.0, 0.60, 1, 0.01, 3.0, 0.01, 0.01, -1)
559                          ShowSyncHudMsg(id, g_status_sync, "%s -- %d HP / %d AP / %s", name, get_user_health(pid), get_user_armor(pid), wpnname)                          ShowSyncHudMsg(id, g_status_sync, "%s -- %d HP / %d AP / %s", name, get_user_health(pid), get_user_armor(pid), wpnname)
560                  } else {                  } else {
561                          set_hudmessage(color1, 50, color2, -1.0, 0.60, 1, 0.01, 3.0, 0.01, 0.01)                          set_hudmessage(color1, 50, color2, -1.0, 0.60, 1, 0.01, 3.0, 0.01, 0.01, -1)
562                          ShowSyncHudMsg(id, g_status_sync, "%s", name)                          ShowSyncHudMsg(id, g_status_sync, "%s", name)
563                  }                  }
564          }          }
# Line 652  Line 652 
652  }  }
653    
654  public chickenKill()  public chickenKill()
655    {
656          if (ItalyBonusKill)          if (ItalyBonusKill)
657                  announceEvent(0, "KILLED_CHICKEN")                  announceEvent(0, "KILLED_CHICKEN")
658    }
659    
660  public radioKill()  public radioKill()
661  {  {
# Line 671  Line 673 
673  }  }
674    
675  public eBombPickUp(id)  public eBombPickUp(id)
676    {
677          if (BombPickUp)          if (BombPickUp)
678                  announceEvent(id, "PICKED_BOMB")                  announceEvent(id, "PICKED_BOMB")
679    }
680    
681  public eBombDrop()  public eBombDrop()
682    {
683          if (BombDrop)          if (BombDrop)
684                  announceEvent(g_Planter, "DROPPED_BOMB")                  announceEvent(g_Planter, "DROPPED_BOMB")
685    }
686    
687  public eGotBomb(id)  public eGotBomb(id)
688  {  {
# Line 731  Line 737 
737  }  }
738    
739  public bomb_planting(planter)  public bomb_planting(planter)
740    {
741          if (BombPlanting)          if (BombPlanting)
742                  announceEvent(planter, "PLANT_BOMB")                  announceEvent(planter, "PLANT_BOMB")
743    }
744    
745  public bomb_defusing(defuser)  public bomb_defusing(defuser)
746  {  {
# Line 743  Line 751 
751  }  }
752    
753  public bomb_defused(defuser)  public bomb_defused(defuser)
754    {
755          if (BombDefused)          if (BombDefused)
756                  announceEvent(defuser, "DEFUSED_BOMB")                  announceEvent(defuser, "DEFUSED_BOMB")
757    }
758    
759  public bomb_explode(planter, defuser)  public bomb_explode(planter, defuser)
760    {
761          if (BombFailed && defuser)          if (BombFailed && defuser)
762                  announceEvent(defuser, "FAILED_DEFU")                  announceEvent(defuser, "FAILED_DEFU")
763    }
764    
765  public play_sound(sound[])  public play_sound(sound[])
766  {  {

Legend:
Removed from v.1  
changed lines
  Added in v.44

Contact
ViewVC Help
Powered by ViewVC 1.0.4