AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Help again (https://forums.alliedmods.net/showthread.php?t=60211)

DRACULA 08-29-2007 04:36

Help again
 
Hlstrike sorry again,but it is a serious problem .in first round shows 1/0 not 1/30 ...... ,2/30 .....3/30 and when one team wins it shows 2 rounds beside 30 .and i want after round 30 to change the map ,,, thx take the plugin

Code:

  #include <amxmodx> 
 
#define PLUGIN "Rounds" 
#define VERSION "1.0" 
#define AUTHOR "DRACULA" 
 
new cvar_pointer; 
new rounds_elapsed;
 
new
ct_wins,
t_wins;
 
public plugin_init() { 
   
  register_plugin(PLUGIN, VERSION, AUTHOR); 
   
  register_event("HLTV", "new_round", "a", "1=0", "2=0"); 
  register_event("TextMsg", "restart_round", "a", "2=#Game_will_restart_in");
   
  register_event("SendAudio", "Ct_win", "a", "2=%!MRAD_ctwin");
  register_event("SendAudio", "Terrorists_win", "a", "2=%!MRAD_terwin");
   
  cvar_pointer = get_cvar_pointer("mp_maxrounds"); 

 
public new_round() 
  set_task(1.0, "show_rounds_message"); 
 
public restart_round()
{
  rounds_elapsed = 0;
  ct_wins = 0;
  t_wins = 0;
}
 
public Ct_win()
  ct_wins += 1;
 
public Terrorists_win()
  t_wins += 1;
 
public show_rounds_message() 

  client_print(0, print_chat, "---=[ Round %i / %i | [Counter-Terrorist  %d] [Terrorist  %d]=---", rounds_elapsed += 1, get_pcvar_num(cvar_pointer), ct_wins, t_wins);
}



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

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