Guest User

HNR scout free

a guest
Jul 6th, 2014
221
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 11.88 KB | None | 0 0
  1. #include <amxmodx>
  2. #include <cstrike>
  3. #include <fakemeta>
  4.  
  5. new bool: HasScout1WeaponsModel [ 33 ]
  6. new bool: HasScout2WeaponsModel [ 33 ]
  7. new bool: HasScout3WeaponsModel [ 33 ]
  8. new bool: HasScout4WeaponsModel [ 33 ]
  9. new bool: HasScout5WeaponsModel [ 33 ]
  10. new bool: HasScout6WeaponsModel [ 33 ]
  11. new bool: HasScout7WeaponsModel [ 33 ]
  12. new bool: HasScout8WeaponsModel [ 33 ]
  13. new bool: HasScout9WeaponsModel [ 33 ]
  14. new bool: HasScout10WeaponsModel [ 33 ]
  15.  
  16. public plugin_precache(){
  17.     precache_model("models/LoLHnrScout/v_scout1.mdl")
  18.      precache_model("models/LoLHnrScout/p_scout1.mdl")
  19.       precache_model("models/LoLHnrScout/v_scout2.mdl")
  20.        precache_model("models/LoLHnrScout/p_scout2.mdl")
  21.         precache_model("models/LoLHnrScout/v_scout3.mdl")
  22.      precache_model("models/LoLHnrScout/p_scout3.mdl")
  23.       precache_model("models/LoLHnrScout/v_scout4.mdl")
  24.        precache_model("models/LoLHnrScout/p_scout4.mdl")
  25.         precache_model("models/LoLHnrScout/v_scout5.mdl")
  26.          precache_model("models/LoLHnrScout/p_scout5.mdl")
  27.           precache_model("models/LoLHnrScout/v_scout6.mdl")
  28.            precache_model("models/LoLHnrScout/p_scout6.mdl")
  29.             precache_model("models/LoLHnrScout/v_scout7.mdl")
  30.          precache_model("models/LoLHnrScout/p_scout7.mdl")
  31.           precache_model("models/LoLHnrScout/v_scout8.mdl")
  32.            precache_model("models/LoLHnrScout/p_scout8.mdl")
  33.             precache_model("models/LoLHnrScout/v_scout9.mdl")
  34.              precache_model("models/LoLHnrScout/p_scout9.mdl")
  35.               precache_model("models/LoLHnrScout/v_scout10.mdl")
  36.                precache_model("models/LoLHnrScout/p_scout10.mdl")
  37. }
  38.  
  39. public plugin_init() {
  40.     register_plugin("ScoutMenu", "1.0", "SerMajor")
  41.     register_clcmd("say /scout", "MenuShow")
  42.    
  43.     register_event("CurWeapon", "Event_CurWeapon", "be", "1=1");
  44. }
  45.  
  46.  
  47.  
  48. public MenuShow(id)
  49. {
  50.     new menu = menu_create("[LoL] Scout Menu", "MenuHandler") // ?????? , MenuHandler ?????.
  51.     menu_additem(menu, "scout1", "1", 0)
  52.     menu_additem(menu, "scout2", "2", 0)
  53.     menu_additem(menu, "scout3", "3", 0)
  54.     menu_additem(menu, "scout4", "4", 0)
  55.     menu_additem(menu, "scout5", "5", 0)
  56.     menu_additem(menu, "scout6", "6", 0)
  57.     menu_additem(menu, "scout7", "7", 0)
  58.     menu_additem(menu, "scout8", "8", 0)
  59.     menu_additem(menu, "scout9", "9", 0)
  60.     menu_additem(menu, "scout10", "10", 0)
  61.    
  62.     menu_setprop(menu, MPROP_EXIT, MEXIT_ALL)
  63.    
  64.     menu_display(id, menu, 0)
  65. }
  66.  
  67. public MenuHandler(id, menu, item)
  68. {
  69.     if( item == MENU_EXIT )
  70.     {
  71.         menu_destroy(menu);
  72.         return PLUGIN_HANDLED;
  73.     }
  74.     new data[6], szName[33];
  75.     new acces, callback;
  76.     menu_item_getinfo(menu, item, acces, data,charsmax(data), szName,charsmax(szName), callback)
  77.     new key = str_to_num(data);
  78.     switch(key)
  79.     {
  80.        
  81.         case 1: {
  82.            
  83.             HasScout1WeaponsModel  [ id ] = true
  84.         HasScout2WeaponsModel  [ id ] = false
  85.         HasScout3WeaponsModel  [ id ] = false
  86.         HasScout4WeaponsModel  [ id ] = false
  87.         HasScout5WeaponsModel  [ id ] = false
  88.         HasScout6WeaponsModel  [ id ] = false
  89.         HasScout7WeaponsModel  [ id ] = false
  90.         HasScout8WeaponsModel  [ id ] = false
  91.         HasScout9WeaponsModel  [ id ] = false
  92.         HasScout10WeaponsModel  [ id ] = false
  93.        
  94.             client_print(id, print_chat, "[LoL] U Choose Scout1")
  95.         }
  96.        
  97.         case 2: {
  98.        
  99.                         HasScout1WeaponsModel  [ id ] = false
  100.     HasScout2WeaponsModel  [ id ] = true
  101.         HasScout3WeaponsModel  [ id ] = false
  102.         HasScout4WeaponsModel  [ id ] = false
  103.         HasScout5WeaponsModel  [ id ] = false
  104.         HasScout6WeaponsModel  [ id ] = false
  105.         HasScout7WeaponsModel  [ id ] = false
  106.         HasScout8WeaponsModel  [ id ] = false
  107.         HasScout9WeaponsModel  [ id ] = false
  108.         HasScout10WeaponsModel  [ id ] = false
  109.             return 1;
  110.             client_print(id, print_chat, "[LoL] U Choose Scout2")
  111.         }
  112.             case 3: {
  113.                         HasScout1WeaponsModel  [ id ] = false
  114.         HasScout2WeaponsModel  [ id ] = false
  115.         HasScout3WeaponsModel  [ id ] = true
  116.         HasScout4WeaponsModel  [ id ] = false
  117.         HasScout5WeaponsModel  [ id ] = false
  118.         HasScout6WeaponsModel  [ id ] = false
  119.         HasScout7WeaponsModel  [ id ] = false
  120.         HasScout8WeaponsModel  [ id ] = false
  121.         HasScout9WeaponsModel  [ id ] = false
  122.         HasScout10WeaponsModel  [ id ] = false
  123.             return 1;
  124.             client_print(id, print_chat, "[LoL] U Choose Scout3")
  125.         }
  126.             case 4: {
  127.                         HasScout1WeaponsModel  [ id ] = false
  128.         HasScout2WeaponsModel  [ id ] = false
  129.         HasScout3WeaponsModel  [ id ] = false
  130.         HasScout4WeaponsModel  [ id ] = true
  131.         HasScout5WeaponsModel  [ id ] = false
  132.         HasScout6WeaponsModel  [ id ] = false
  133.         HasScout7WeaponsModel  [ id ] = false
  134.         HasScout8WeaponsModel  [ id ] = false
  135.         HasScout9WeaponsModel  [ id ] = false
  136.         HasScout10WeaponsModel  [ id ] = false
  137.             return 1;
  138.             client_print(id, print_chat, "[LoL] U Choose Scout4")
  139.         }
  140.             case 5: {
  141.                         HasScout1WeaponsModel  [ id ] = false
  142.         HasScout2WeaponsModel  [ id ] = false
  143.         HasScout3WeaponsModel  [ id ] = false
  144.         HasScout4WeaponsModel  [ id ] = false
  145.         HasScout5WeaponsModel  [ id ] = true
  146.         HasScout6WeaponsModel  [ id ] = false
  147.         HasScout7WeaponsModel  [ id ] = false
  148.         HasScout8WeaponsModel  [ id ] = false
  149.         HasScout9WeaponsModel  [ id ] = false
  150.         HasScout10WeaponsModel  [ id ] = false
  151.             return 1;
  152.             client_print(id, print_chat, "[LoL] U Choose Scout5")
  153.         }
  154.             case 6: {
  155.                         HasScout1WeaponsModel  [ id ] = false
  156.         HasScout2WeaponsModel  [ id ] = false
  157.         HasScout3WeaponsModel  [ id ] = false
  158.         HasScout4WeaponsModel  [ id ] = false
  159.         HasScout5WeaponsModel  [ id ] = false
  160.         HasScout6WeaponsModel  [ id ] = true
  161.         HasScout7WeaponsModel  [ id ] = false
  162.         HasScout8WeaponsModel  [ id ] = false
  163.         HasScout9WeaponsModel  [ id ] = false
  164.         HasScout10WeaponsModel  [ id ] = false
  165.             return 1;
  166.             client_print(id, print_chat, "[LoL] U Choose Scout6")
  167.         }
  168.             case 7: {
  169.                         HasScout1WeaponsModel  [ id ] = false
  170.         HasScout2WeaponsModel  [ id ] = false
  171.         HasScout3WeaponsModel  [ id ] = false
  172.         HasScout4WeaponsModel  [ id ] = false
  173.         HasScout5WeaponsModel  [ id ] = false
  174.         HasScout6WeaponsModel  [ id ] = false
  175.         HasScout7WeaponsModel  [ id ] = true
  176.         HasScout8WeaponsModel  [ id ] = false
  177.         HasScout9WeaponsModel  [ id ] = false
  178.         HasScout10WeaponsModel  [ id ] = false
  179.             return 1;
  180.             client_print(id, print_chat, "[LoL] U Choose Scout7")
  181.         }
  182.             case 8: {
  183.                         HasScout1WeaponsModel  [ id ] = false
  184.         HasScout2WeaponsModel  [ id ] = false
  185.         HasScout3WeaponsModel  [ id ] = false
  186.         HasScout4WeaponsModel  [ id ] = false
  187.         HasScout5WeaponsModel  [ id ] = false
  188.         HasScout6WeaponsModel  [ id ] = false
  189.         HasScout7WeaponsModel  [ id ] = false
  190.         HasScout8WeaponsModel  [ id ] = true
  191.         HasScout9WeaponsModel  [ id ] = false
  192.         HasScout10WeaponsModel  [ id ] = false
  193.             return 1;
  194.             client_print(id, print_chat, "[LoL] U Choose Scout8")
  195.         }
  196.             case 9: {
  197.                         HasScout1WeaponsModel  [ id ] = false
  198.         HasScout2WeaponsModel  [ id ] = false
  199.         HasScout3WeaponsModel  [ id ] = false
  200.         HasScout4WeaponsModel  [ id ] = false
  201.         HasScout5WeaponsModel  [ id ] = false
  202.         HasScout6WeaponsModel  [ id ] = false
  203.         HasScout7WeaponsModel  [ id ] = false
  204.         HasScout8WeaponsModel  [ id ] = false
  205.         HasScout9WeaponsModel  [ id ] = true
  206.         HasScout10WeaponsModel  [ id ] = false
  207.             return 1;
  208.             client_print(id, print_chat, "[LoL] U Choose Scout9")
  209.         }
  210.             case 10: {
  211.                         HasScout1WeaponsModel  [ id ] = false
  212.         HasScout2WeaponsModel  [ id ] = false
  213.         HasScout3WeaponsModel  [ id ] = false
  214.         HasScout4WeaponsModel  [ id ] = false
  215.         HasScout5WeaponsModel  [ id ] = false
  216.         HasScout6WeaponsModel  [ id ] = false
  217.         HasScout7WeaponsModel  [ id ] = false
  218.         HasScout8WeaponsModel  [ id ] = false
  219.         HasScout9WeaponsModel  [ id ] = false
  220.         HasScout10WeaponsModel  [ id ] = true
  221.             return 1;
  222.             client_print(id, print_chat, "[LoL] U Choose Scout10")
  223.         }
  224.     }
  225.    
  226.     menu_destroy(menu);
  227.     return PLUGIN_HANDLED;
  228. }
  229.  
  230. public Event_CurWeapon ( id ) {
  231.    
  232.     new weapon = get_user_weapon ( id )
  233.    
  234.     if ( HasScout1WeaponsModel [ id ] )
  235.         return
  236.    
  237.     switch ( weapon ) {
  238.        
  239.         case CSW_SCOUT : {
  240.             set_pev(id, pev_viewmodel2, "models/LoLHnrScout/v_scout1.mdl")
  241.             set_pev(id, pev_weaponmodel2, "models/LoLHnrScout/p_scout1.mdl")
  242.         }
  243.     }
  244. }
  245. public Event_CurWeapon ( id ) {
  246.    
  247.     new weapon = get_user_weapon ( id )
  248.    
  249.     if ( HasScout1WeaponsModel [ id ] )
  250.         return
  251.    
  252.     switch ( weapon ) {
  253.        
  254.         case CSW_SCOUT : {
  255.             set_pev(id, pev_viewmodel2, "models/LoLHnrScout/v_scout2.mdl")
  256.             set_pev(id, pev_weaponmodel2, "models/LoLHnrScout/p_scout2.mdl")
  257.         }
  258.     }
  259. }
  260.  if ( HasScout2WeaponsModel [ id ]  ) {
  261.     switch ( weapon ) {
  262.         case CSW_scout : {
  263.                
  264.                 set_pev(id, pev_viewmodel2, "models/LoLHnrScout/v_scout2")
  265.                 set_pev(id, pev_weaponmodel2, "models/LoLHnrScout/p_scout2")
  266.                
  267.             }
  268.     }
  269. }
  270. if ( HasScout3WeaponsModel [ id ]  ) {
  271.     switch ( weapon ) {
  272.         case CSW_scout : {
  273.                
  274.                 set_pev(id, pev_viewmodel2, "models/LoLHnrScout/v_scout3")
  275.                 set_pev(id, pev_weaponmodel2, "models/LoLHnrScout/p_scout3")
  276.                
  277.             }
  278.     }
  279. }
  280. if ( HasScout4WeaponsModel [ id ]  ) {
  281.     switch ( weapon ) {
  282.         case CSW_scout : {
  283.                
  284.                 set_pev(id, pev_viewmodel2, "models/LoLHnrScout/v_scout4")
  285.                 set_pev(id, pev_weaponmodel2, "models/LoLHnrScout/p_scout4")
  286.                
  287.             }
  288.     }
  289. }
  290. if ( HasScout5WeaponsModel [ id ]  ) {
  291.     switch ( weapon ) {
  292.         case CSW_scout : {
  293.                
  294.                 set_pev(id, pev_viewmodel2, "models/LoLHnrScout/v_scout5")
  295.                 set_pev(id, pev_weaponmodel2, "models/LoLHnrScout/p_scout5")
  296.                
  297.             }
  298.     }
  299. }
  300. if ( HasScout6WeaponsModel [ id ]  ) {
  301.     switch ( weapon ) {
  302.         case CSW_scout : {
  303.                
  304.                 set_pev(id, pev_viewmodel2, "models/LoLHnrScout/v_scout6")
  305.                 set_pev(id, pev_weaponmodel2, "models/LoLHnrScout/p_scout6")
  306.                
  307.             }
  308.     }
  309. }
  310. if ( HasScout7WeaponsModel [ id ]  ) {
  311.     switch ( weapon ) {
  312.         case CSW_scout : {
  313.                
  314.                 set_pev(id, pev_viewmodel2, "models/LoLHnrScout/v_scout7")
  315.                 set_pev(id, pev_weaponmodel2, "models/LoLHnrScout/p_scout7")
  316.                
  317.             }
  318.     }
  319. }
  320. if ( HasScout8WeaponsModel [ id ]  ) {
  321.     switch ( weapon ) {
  322.         case CSW_scout : {
  323.                
  324.                 set_pev(id, pev_viewmodel2, "models/LoLHnrScout/v_scout8")
  325.                 set_pev(id, pev_weaponmodel2, "models/LoLHnrScout/p_scout8")
  326.                
  327.             }
  328.     }
  329. }
  330. if ( HasScout9WeaponsModel [ id ]  ) {
  331.     switch ( weapon ) {
  332.         case CSW_scout : {
  333.                
  334.                 set_pev(id, pev_viewmodel2, "models/LoLHnrScout/v_scout9")
  335.                 set_pev(id, pev_weaponmodel2, "models/LoLHnrScout/p_scout9")
  336.                
  337.             }
  338.     }
  339. }
  340. if ( HasScout10WeaponsModel [ id ]  ) {
  341.     switch ( weapon ) {
  342.         case CSW_scout : {
  343.                
  344.                 set_pev(id, pev_viewmodel2, "models/LoLHnrScout/v_scout10")
  345.                 set_pev(id, pev_weaponmodel2, "models/LoLHnrScout/p_scout10")
  346.                
  347.             }
  348.     }
  349. }
Add Comment
Please, Sign In to add comment