P1xeL

Score Mod v1.0

Nov 10th, 2012
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.61 KB | None | 0 0
  1. #include <amxmodx>
  2.  
  3. #define TAG "Tag"
  4.  
  5. new TeamA, TeamB, Round;
  6.  
  7. public plugin_init() {
  8.     register_plugin("Score Mod", "v1.0", "P1xeL`");
  9.    
  10.     register_event("SendAudio", "CounterTerroristWin", "a", "2&%!MRAD_ctwin");
  11.     register_event("SendAudio", "TerroristWin", "a", "2&%!MRAD_terwin");
  12.    
  13.     register_clcmd("say /score", "score_cmd");
  14. }
  15.  
  16. public TerroristWin() {
  17.     TeamA++;
  18.     Round++;
  19. }
  20.  
  21. public CounterTerroristWin() {
  22.     TeamB++;
  23.     Round++;
  24. }
  25.  
  26. public score_cmd(Index) {
  27.     client_print(Index ,print_chat ,"(%s) Score is - (Team A): %s - (Team B): %s - (%sst half)", TAG, TeamA, TeamB, Round + 1);
  28.     return 0;
  29. }
Advertisement
Add Comment
Please, Sign In to add comment