Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Aug 17th, 2012  |  syntax: PAWN  |  size: 0.81 KB  |  views: 48  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. /* Plugin generated by AMXX-Studio */
  2.  
  3. #include <amxmodx>
  4. #include <amxmisc>
  5. #include <cstrike>
  6. #include <colorchat>
  7.  
  8. #define PLUGIN "Box"
  9. #define VERSION "1.0"
  10. #define AUTHOR "+ColdWar"
  11.  
  12.  
  13. public plugin_init() {
  14.         register_plugin(PLUGIN, VERSION, AUTHOR)
  15.        
  16.         register_clcmd("say /box","BoxTeam")
  17. }
  18.  
  19.  
  20. public BoxTeam(id)
  21. {
  22.         if(cs_get_user_team(id) && is_user_alive(id) || get_user_flags(id) & ADMIN_KICK)
  23.         {
  24.                 new ff = get_cvar_num("mp_friendlyfire")
  25.                 new szName[32]
  26.                 get_user_name(id,szName,31)
  27.                 if(ff == 1)
  28.                 {
  29.                         set_cvar_num("mp_friendlyfire",0)
  30.                         ColorChat(id,TEAM_COLOR,"^3| ^1Jailbreak ^3|^4 ^3%s ^4has stopped box!",szName)
  31.                 }
  32.                 else if(ff==0)
  33.                 {
  34.                         set_cvar_num("mp_friendlyfire",1)
  35.                         ColorChat(id,TEAM_COLOR,"^3| ^1Jailbreak ^3|^4 ^3%s ^4has started box!",szName)
  36.                 }
  37.         }
  38.        
  39. }
clone this paste RAW Paste Data