SHARE
TWEET

Untitled

a guest Jan 23rd, 2020 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include        <amxmodx>
  2. #include        <csx>
  3.  
  4. #define         PLUGIN      "NadeModes Controller"
  5. #define         VERSION     "2.0"
  6. #define         AUTHOR      "DaNNe."
  7.  
  8. new cvar_list[][]   = {
  9.             "nademodes_proximity_enabled",
  10.             "nademodes_satchel_enabled",
  11.             "nademodes_trip_enabled",
  12.             "nademodes_motion_enabled"
  13. }
  14.  
  15. public          plugin_init() {
  16.         register_plugin(PLUGIN, VERSION, AUTHOR)
  17.  
  18.         register_event("HLTV",          "NEW_ROUND",    "a", "1=0", "2=0")
  19. }
  20.  
  21. public          NEW_ROUND() {
  22.         for(new i; i < sizeof cvar_list; i++)
  23.             set_cvar_num(cvar_list[i], 1)
  24. }
  25.  
  26. public          bomb_planted(PLANTER) {
  27.         for(new i; i < sizeof cvar_list; i++)
  28.             set_cvar_num(cvar_list[i], 0)
  29.        
  30.         //ColorChat(0,    "!g[FURIEN]!n BOMBA A FOST PLANTATA.")
  31.         ColorChat(0,    "!g[FURIEN]!n Modurile:!t PROXIMITY!n,!t SATCHEL CHARGE!n,!t TRIP LASER!n,!t MOTION SENSOR!n au fost dezactivate.")
  32. }
  33.  
  34. stock ColorChat(const id, const input[], any:...) {
  35.     new count = 1, players[32];
  36.     static msg[191];
  37.     vformat(msg, 190, input, 3);
  38.    
  39.     replace_all(msg, 190, "!g", "^4");
  40.     replace_all(msg, 190, "!n", "^1");
  41.     replace_all(msg, 190, "!t", "^3");
  42.    
  43.     if(id) players[0] = id;
  44.     else get_players(players, count, "c");
  45.     for(new i = 0; i < count; i++) {
  46.             if(is_user_connected(players[i])) {
  47.                 message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"), _, players[i]);
  48.                 write_byte(players[i]);
  49.                 write_string(msg);
  50.                 message_end();
  51.             }
  52.     }
  53. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top