Advertisement
ColdWar-Pawn

Extaza shop by "resHS"

Jan 15th, 2013
433
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 87.19 KB | None | 0 0
  1. //This is Plugin By +NeTo` (Matan) Dont change cradit ty, (credit for Creeps for the send points) .
  2. #include <amxmodx>
  3. #include <amxmisc>
  4. #include <cstrike>
  5. #include <nvault>
  6. #include <fakemeta>
  7. #include <engine>
  8. #include <fun>
  9. #include <hamsandwich>
  10. #include <dhudmessage>
  11.  
  12. //#define MENU_ITEMS_PP 10
  13. #define MAXENTS                         1500
  14.  
  15. new g_MaxPlayers
  16. new player_points[33], point_vault, health10[200], health20[200], health30[200], health40[200], health50[200], cost_respect, cost_special, cost_commander, cost_beginner, cost_advanced, cost_superadvanced, cost_vatican, cost_10hp, cost_20hp, cost_30hp, cost_40hp, cost_50hp, cost_he, cost_flash, cost_smoke, cost_allgrenades, cost_glock, cost_usp, cost_deagle, cost_awp, cost_invisibility, cost_gravity, cost_speed, cost_godmode, cost_noclip, cost_camouflage, cost_silentwalk, cost_change_teamct, cost_freeday
  17. new const Cmd[][] = { "say /shop", "say shop", "radio1", "radio2", "radio3" }
  18. new bool:can_pickup[33], bool:nordeagleday, g_MsgScreenFade
  19. new moneybox[MAXENTS]
  20. new knife[33]
  21. new knife_vault
  22. new cost_pro, cost_community, cost_supervisor, cost_administrator, cost_boss, cost_extazasuperpower, cost_owners, cost_noykasharel
  23.  
  24. public plugin_init()
  25. {
  26.         register_plugin("JailBreakSho", "2.6", "+NeTo-`")
  27.         for ( new i = 0; i < sizeof ( Cmd ); i ++ )
  28.         register_clcmd ( Cmd [ i ], "shop_check" )
  29.         register_clcmd("autobuy", "cmd_autobuy")
  30.         register_clcmd("say /mycash", "showpoints")
  31.         register_clcmd("say", "ClientCommandSay")
  32.         register_clcmd("say /cash", "showpoints")
  33.         register_clcmd("say", "HandleSay2")
  34.         cost_10hp = register_cvar("hs_10hp_cost", "50")
  35.         cost_20hp = register_cvar("hs_20hp_cost", "100")
  36.         cost_30hp = register_cvar("hs_30hp_cost", "150")
  37.         cost_40hp = register_cvar("hs_40hp_cost", "200")
  38.         cost_50hp = register_cvar("hs_50hp_cost", "250")
  39.         cost_he = register_cvar("cost_he", "1500")
  40.         cost_flash = register_cvar("cost_flash", "1000")
  41.         cost_smoke = register_cvar("cost_smoke", "800")
  42.         cost_allgrenades = register_cvar("cost_allgrameds", "2900")
  43.         cost_glock = register_cvar("cost_glock", "300")
  44.         cost_usp = register_cvar("cost_usp", "400")
  45.         cost_deagle = register_cvar("cost_deagle", "500")
  46.         cost_awp = register_cvar("cost_awp", "600")
  47.         cost_invisibility = register_cvar("cost_invisibility", "200")
  48.         cost_gravity = register_cvar("cost_gravity", "250")    
  49.         cost_speed = register_cvar("cost_speed", "300")
  50.         cost_godmode = register_cvar("cost_godmode", "350")
  51.         cost_beginner = register_cvar("cost_beginner", "2000")
  52.         cost_advanced = register_cvar("cost_advanced", "3000")
  53.         cost_superadvanced = register_cvar("cost_superadvanced", "4000")
  54.         cost_vatican = register_cvar("cost_vatican", "5000")
  55.         cost_respect = register_cvar("cost_respect", "6000")
  56.         cost_special = register_cvar("cost_special", "7000")
  57.         cost_commander = register_cvar("cost_commander", "8000")
  58.         cost_pro = register_cvar("cost_pro", "9000")
  59.         cost_community = register_cvar("cost_community", "10000")
  60.         cost_supervisor = register_cvar("cost_supervisor", "11000")
  61.         cost_administrator = register_cvar("cost_administrator", "12000")
  62.         cost_boss = register_cvar("cost_boss", "13000")
  63.         cost_extazasuperpower = register_cvar("cost_extazasuperpower", "14000")
  64.         cost_owners = register_cvar("cost_owners", "15000")
  65.         cost_noykasharel = register_cvar("cost_noykasharel", "16000")
  66.         cost_noclip = register_cvar("cost_noclip", "400")
  67.         cost_camouflage = register_cvar("cost_camouflage", "450")
  68.         cost_silentwalk = register_cvar("cost_silentwalk", "500")
  69.         cost_change_teamct = register_cvar("cost_change_teamct", "670")
  70.         cost_freeday = register_cvar("cost_freeday", "380")
  71.         register_concmd("extaza_give_cash", "cmd_give_points", ADMIN_KICK, "<target> <amount>")
  72.         register_concmd("extaza_take_cash", "cmd_take_points", ADMIN_KICK, "<target> <amount>")
  73.         register_event("DeathMsg", "EventDeathMsg", "a");
  74.         register_forward(FM_Touch,"player_Touch")
  75.         register_clcmd("send_cash", "cmdSend", _, "<nick, #userid, authid> <points>");
  76.         g_MaxPlayers = get_maxplayers()
  77.         g_MsgScreenFade         = get_user_msgid("ScreenFade")
  78.         register_logevent("RoundStart", 2, "1=Round_Start")
  79.         RegisterHam(Ham_Spawn, "player", "FwdHamPlayerSpawn", 1)
  80.         register_event("CurWeapon", "Event_CurWeapon", "be","1=1")
  81.        
  82. }
  83.  
  84. public HandleSay2( id )
  85. {
  86.         new szMessage[ 192 ];
  87.         read_argv( 1, szMessage, sizeof( szMessage ) - 1 );
  88.        
  89.         new szMs[ 32 ], szPlayer[ 32 ], szNum[ 10 ];
  90.         parse( szMessage, szMs, sizeof( szMs ) - 1, szPlayer, sizeof( szPlayer ) - 1, szNum, sizeof( szNum ) - 1 );
  91.         if( equal( szMs, "/cash" ) || equal( szMs, "/cash" ) )
  92.         {
  93.         new target = cmd_target(target, szPlayer)
  94.         if(target)
  95.         {
  96.            
  97.             new Name[33];
  98.             get_user_name(target, Name, charsmax(Name));
  99.             new szName[33];
  100.             get_user_name(id, szName, charsmax(szName));
  101.             ColorChat(id, "^1[^3 Extaza^1 ]^4 %s^3 Has Have^4 %i^1 Cash.", Name, player_points[target]);
  102.             return 1;
  103.         }
  104.         ColorChat(id, "^1[^3 Extaza^1 ]^3 You Have ^4%i^1 Cash.", player_points[id])  
  105.         return 1;
  106.         }
  107.         return PLUGIN_CONTINUE;
  108. }
  109.  
  110. public plugin_precache(){
  111.        
  112.         precache_model( "models/Extaza/v_extazaknifeshop1.mdl" );
  113.         precache_model( "models/Extaza/v_extazaknifesshop2.mdl" );
  114.         precache_model( "models/Extaza/v_extazaknifeshop3.mdl" );
  115.         precache_model( "models/Extaza/v_extazaknifeshop4.mdl" );
  116.         precache_model( "models/Extaza/v_extazaknifeshop5.mdl" );
  117.         precache_model( "models/Extaza/v_extazaknifeshop6.mdl" );
  118.         precache_model( "models/Extaza/v_extazaknifeshop7.mdl" );
  119.         precache_model( "models/Extaza/v_extazaknifeshop8.mdl" );
  120.         precache_model( "models/Extaza/v_extazaknifeshop9.mdl" );
  121.         precache_model( "models/Extaza/v_extazaknifeshop10.mdl" );
  122.         precache_model( "models/Extaza/v_extazaknifeshop11.mdl" );
  123.         precache_model( "models/Extaza/v_extazaknifeshop12.mdl" );
  124.         precache_model( "models/Extaza/v_extazaknifeshop13.mdl" );
  125.         precache_model( "models/Extaza/v_extazaknifeshop14.mdl" );
  126.         precache_model( "models/Extaza/v_extazaknifeshop15.mdl" );
  127. }
  128. public RoundStart() {
  129.         new money_ent
  130.         while((money_ent=engfunc(EngFunc_FindEntityByString,money_ent,"classname","pdm_money")) != 0)
  131.                 engfunc(EngFunc_RemoveEntity,money_ent)
  132. }
  133.  
  134. public reset_pick(id)   can_pickup[id] = true
  135. public shop_check(id){
  136.         if (cs_get_user_team(id) == CS_TEAM_T)
  137.         {
  138.                 showmenu(id)
  139.                 return PLUGIN_HANDLED
  140.         }
  141.         else if(get_user_team(id) != 1)
  142.         {
  143.                 ColorChat(id,"^1[^3 Extaza^1 ]^4 Only Prisoner cant open the^3 Shop Menu ^4Your Cash is : ^3%i ", player_points[id])
  144.                 return PLUGIN_HANDLED
  145.         }
  146.         return PLUGIN_HANDLED
  147. }
  148.  
  149. public ClientCommandSay(id) {
  150.         new szMsg[ 32 ]
  151.         read_args( szMsg, charsmax( szMsg ) );
  152.         remove_quotes( szMsg );
  153.        
  154.         new arg[ 32 ], arg2[ 32 ]
  155.        
  156.         parse( szMsg, arg, charsmax( arg ), arg2, charsmax( arg2 ));
  157.        
  158.        
  159.         if(equal(arg, "/gamble") || equal(arg, "!gamble"))
  160.         {
  161.                 if(!is_str_num(arg2))
  162.                         ColorChat(id, "^1[^3 Extaza^1 ] this is not number")
  163.                 else if(arg2[0] == '-')
  164.                         ColorChat(id, "^1[^3 Extaza^1 ] you can not ^4write -")
  165.                 else if(player_points[id] < str_to_num(arg2))
  166.                         ColorChat(id, "^1[^3 Extaza^1 ]^1 you no ^3have ^4%d ^1Cash",str_to_num(arg2))
  167.                 else if(player_points[id] >= str_to_num(arg2))
  168.                 {
  169.                 new num = str_to_num( arg2 )
  170.                
  171.                 if( num < 300 )
  172.                 {
  173.                         client_print( id, print_chat, "You must gamble at least on 300 cash !" )
  174.                        
  175.                         return 1;
  176.                 }
  177.                
  178.                         new szName[32]
  179.                         get_user_name( id, szName, charsmax( szName ) );
  180.                         switch(random_num(1,100))
  181.                         {
  182.                                 case 1..65: {
  183.                                         ColorChat(id, "^1[^3 Extaza^1 ]^4 %s ^1is ^3gambled ^1on ^4%d ^1and ^4Lost",szName,str_to_num(arg2))
  184.                                         player_points[id] -= str_to_num(arg2)
  185.                                 }
  186.                                 case 66..100: {
  187.                                         ColorChat(id, "^1[^3 Extaza^1 ]^4 %s ^1is ^3gambled ^1on ^4%d ^1and ^4Win",szName,str_to_num(arg2))
  188.                                         player_points[id] += str_to_num(arg2)
  189.                                 }
  190.                         }
  191.                 }
  192.         }
  193. }
  194.  
  195. public showmenu(id){
  196.        
  197.         new text[256]
  198.         formatex(text, charsmax(text), "\r[ \wExtaza \r]\y JailBreak Shop Menu ^n\yYour Cash \w:\r %d",player_points[id])
  199.         new menu = menu_create(text, "show_menu1")    
  200.        
  201.         formatex(text,255, "\wGrenades\y Menu")
  202.         menu_additem(menu, text, "1")
  203.        
  204.         formatex(text, 255, "\wHealth\y Menu")
  205.         menu_additem(menu, text, "2")
  206.        
  207.         formatex(text, 255, "\wWeapon\y Menu")
  208.         menu_additem(menu, text, "3")
  209.        
  210.         formatex(text, 255, "\wPowers\y Menu")
  211.         menu_additem(menu, text, "4")
  212.        
  213.         formatex(text, 255, "\wOther\y Menu")
  214.         menu_additem(menu, text, "5")
  215.        
  216.         formatex(text, 255, "\wKnifes\y Menu")
  217.         menu_additem(menu, text, "6")
  218.        
  219.         formatex(text, 255, "\wCash\y Menu")
  220.         menu_additem(menu, text, "7")
  221.        
  222.         menu_setprop(menu, MPROP_EXIT, MEXIT_ALL );
  223.         menu_setprop(menu, MPROP_NUMBER_COLOR, "\d");
  224.         menu_display(id, menu, 0)
  225.        
  226.         return PLUGIN_HANDLED
  227.        
  228. }
  229. public show_menu1(id, menu, item){
  230.         if (item == MENU_EXIT){
  231.                 menu_destroy(menu)
  232.                 return PLUGIN_HANDLED
  233.         }
  234.        
  235.         new Data[6];
  236.         new Access;
  237.         new Callback;
  238.         new Name[64];
  239.         menu_item_getinfo(menu, item, Access, Data, 5, Name, 63, Callback)
  240.        
  241.         new Key = str_to_num(Data);
  242.        
  243.         switch (Key){
  244.                 case 1: show_menu_he(id)
  245.                         case 2: show_menu_buy_hp(id)
  246.                         case 3: show_menu_weapon(id)
  247.                         case 4: show_menu_power(id)
  248.                         case 5: show_menu_other(id)
  249.                         case 6: show_menu_knife(id)
  250.                         case 7: clcmd_playerpoints(id)
  251.                 }
  252.         return PLUGIN_HANDLED
  253. }
  254.  
  255. public show_menu_he(id){
  256.         new text[256]
  257.         formatex(text, charsmax(text), "\r[ \wExtaza \r]\y JailBreak Shop Menu \rYour Cash \w:\w %d^n\yGrenades Menu",player_points[id])
  258.         new menu = menu_create(text, "handle_show_menu_he")
  259.        
  260.         formatex(text, 199, "\wHE Grenade -\r [\w%d\y Cash\r]", get_pcvar_num(cost_he))
  261.         menu_additem(menu, text, "1")
  262.        
  263.         formatex(text, 199, "\wFlash Grenade -\r [\w%d\y Cash\r]", get_pcvar_num(cost_flash))
  264.         menu_additem(menu, text, "2")
  265.        
  266.         formatex(text, 199, "\wSmoke Grenade  -\r [\w%d\y Cash\r]", get_pcvar_num(cost_smoke))
  267.         menu_additem(menu, text, "3")
  268.        
  269.         formatex(text, 199, "\wAll Grenades -\r [\w%d\y Cash\r]", get_pcvar_num(cost_allgrenades))
  270.         menu_additem(menu, text, "4")
  271.        
  272.         menu_setprop(menu, MPROP_EXIT, MEXIT_ALL);
  273.         menu_setprop(menu, MPROP_NEXTNAME, "Next");
  274.        
  275.         menu_display(id, menu, 0)
  276. }
  277. public handle_show_menu_he(id, menu, item){
  278.         if (item == MENU_EXIT){
  279.                 menu_destroy(menu)
  280.                 return PLUGIN_HANDLED
  281.         }
  282.        
  283.         new Data[6];
  284.         new Access;
  285.         new Callback;
  286.         new Name[64];
  287.         menu_item_getinfo(menu, item, Access, Data, 5, Name, 63, Callback)
  288.        
  289.         new Key = str_to_num(Data);
  290.        
  291.         switch (Key){
  292.                 case 1:{
  293.                         if (!is_user_alive(id)){
  294.                                 ColorChat(id,"^1[ ^3Extaza ^1] You must be Alive to buy ^3this item.")
  295.                                
  296.                                 return PLUGIN_HANDLED
  297.                         }
  298.                         new cost = get_pcvar_num(cost_he);
  299.                        
  300.                         if (player_points[id] < cost){
  301.                                 ColorChat(id,"^1[ ^3Extaza ^1] You need more^1 (^4 %i ^1) ^4Cash ^1to buy ^3this item .", cost - player_points[id])
  302.                         }
  303.                         else{
  304.                                 new Name[33]
  305.                                 get_user_name(id, Name, 32)
  306.                                 player_points[id] -= cost
  307.                                 ColorChat(id,"^1[^3 Extaza^1 ]^4 %s^1 Buy^4 HE Grenade",Name)
  308.                                 cs_set_weapon_ammo( give_item(id, "weapon_hegrenade"), 1);
  309.                                 cs_set_user_bpammo(id, CSW_HEGRENADE, (cs_get_user_bpammo(id, CSW_HEGRENADE) + 0));
  310.                                 SavePoints(id)
  311.                         }
  312.                 }
  313.                 case 2:{
  314.                         if (!is_user_alive(id)){
  315.                                 ColorChat(id,"^1[ ^3Extaza ^1] You must be Alive to buy ^3this item.")
  316.                                 return PLUGIN_HANDLED
  317.                         }
  318.                         new cost = get_pcvar_num(cost_flash);
  319.                        
  320.                         if (player_points[id] < cost){
  321.                                 ColorChat(id,"^1[ ^3Extaza ^1] You need more^1 (^4 %i ^1) ^4Cash ^1to buy ^3this item .", cost - player_points[id])
  322.                         }
  323.                         else{
  324.                                 new Name[33]
  325.                                 get_user_name(id, Name, 32)
  326.                                 player_points[id] -= cost
  327.                                 ColorChat(id,"^1[^3 Extaza^1 ]^4 %s^1 Buy^4 Flash Granede",Name)
  328.                                 cs_set_weapon_ammo( give_item(id, "weapon_flashbang"), 1);
  329.                                 cs_set_user_bpammo(id, CSW_FLASHBANG, (cs_get_user_bpammo(id, CSW_FLASHBANG) + 0));
  330.                                 SavePoints(id)
  331.                                
  332.                         }
  333.                 }
  334.                
  335.                 case 3:{
  336.                         if (!is_user_alive(id)) {
  337.                                 ColorChat(id,"^1[ ^3Extaza ^1] You must be Alive to buy ^3this item.")
  338.                                 return PLUGIN_HANDLED
  339.                         }
  340.                         new cost = get_pcvar_num(cost_smoke);
  341.                        
  342.                         if (player_points[id] < cost){
  343.                                 ColorChat(id,"^1[ ^3Extaza ^1] You need more^1 (^4 %i ^1) ^4Cash ^1to buy ^3this item .", cost - player_points[id])
  344.                         }
  345.                         else{
  346.                                 new Name[33]
  347.                                 get_user_name(id, Name, 32)
  348.                                 player_points[id] -= cost
  349.                                 ColorChat(id,"^1[ ^3Extaza ^1]^4 %s ^1Buy^4 Smoke Graneds",Name)
  350.                                 give_item(id,"weapon_smokegrenade")
  351.                                 SavePoints(id)
  352.                                
  353.                         }
  354.                 }
  355.                
  356.                 case 4:{
  357.                         if (!is_user_alive(id)){
  358.                                 ColorChat(id,"^1[ ^3Extaza ^1] You must be Alive to buy ^3this item.")
  359.                                 return PLUGIN_HANDLED
  360.                         }
  361.                         new cost = get_pcvar_num(cost_allgrenades);
  362.                        
  363.                         if (player_points[id] < cost){
  364.                                 ColorChat(id,"^1[ ^3Extaza ^1] You need more^1 (^4 %i ^1) ^4Cash ^1to buy ^3this item .", cost - player_points[id])
  365.                         }
  366.                         else{
  367.                                 new Name[33]
  368.                                 get_user_name(id, Name, 32)
  369.                                 player_points[id] -= cost
  370.                                 ColorChat(id,"^1[ ^3Extaza ^1]^4 %s ^1Buy ^4 All Graneds",Name)
  371.                                 cs_set_weapon_ammo( give_item(id, "weapon_hegrenade"), 1);
  372.                                 cs_set_user_bpammo(id, CSW_HEGRENADE, (cs_get_user_bpammo(id, CSW_HEGRENADE) + 0));
  373.                                 cs_set_weapon_ammo( give_item(id, "weapon_flashbang"), 1);
  374.                                 cs_set_user_bpammo(id, CSW_FLASHBANG, (cs_get_user_bpammo(id, CSW_FLASHBANG) + 0));
  375.                                 give_item(id,"weapon_smokegrenade")
  376.                                 SavePoints(id)
  377.                         }
  378.                 }
  379.         }
  380.         menu_destroy(menu)
  381.         return PLUGIN_HANDLED
  382. }
  383. public show_menu_buy_hp(id){
  384.         new text[256]
  385.         formatex(text, charsmax(text), "\r[ \wExtaza \r]\y JailBreak Shop Menu \rYour Cash \w:\w %d^n\yHealth Menu",player_points[id])
  386.         new menu = menu_create(text, "handle_buy_hp_menu")
  387.        
  388.         formatex(health10, 199, "\w10 Health -\r [\w%d\y Cash\r]", get_pcvar_num(cost_10hp))
  389.         menu_additem(menu, health10, "1")
  390.        
  391.         formatex(health20, 199, "\w20 Health -\r [\w%d\y Cash\r]", get_pcvar_num(cost_20hp))
  392.         menu_additem(menu, health20, "2")
  393.        
  394.         formatex(health30, 199, "\w30 Health -\r [\w%d\y Cash\r]", get_pcvar_num(cost_30hp))
  395.         menu_additem(menu, health30, "3")
  396.        
  397.         formatex(health40, 199, "\w40 Health -\r [\w%d\y Cash\r]", get_pcvar_num(cost_40hp))
  398.         menu_additem(menu, health40, "4")
  399.        
  400.         formatex(health50, 199, "\w50 Health -\r [\w%d\y Cash\r]", get_pcvar_num(cost_50hp))
  401.         menu_additem(menu, health50, "5")
  402.        
  403.         menu_setprop(menu, MPROP_EXIT, MEXIT_ALL)
  404.         menu_display(id, menu, 0)
  405. }
  406.  
  407. public handle_buy_hp_menu(id, menu, item){
  408.         if (item == MENU_EXIT){
  409.                 menu_destroy(menu)
  410.                 return PLUGIN_HANDLED
  411.         }
  412.        
  413.         new Data[6];
  414.         new Access;
  415.         new Callback;
  416.         new Name[64];
  417.         menu_item_getinfo(menu, item, Access, Data, 5, Name, 63, Callback)
  418.        
  419.         new Key = str_to_num(Data);
  420.        
  421.         switch (Key)
  422.         {
  423.                 case 1:
  424.                 {
  425.                         if (!is_user_alive(id)){
  426.                                 ColorChat(id,"^1[ ^3Extaza ^1] You must be Alive to buy ^3this item.")
  427.                                 return PLUGIN_HANDLED
  428.                         }
  429.                         new cost = get_pcvar_num(cost_10hp);
  430.                         new Health = get_user_health(id)
  431.                        
  432.                         if (player_points[id] < cost){
  433.                                 ColorChat(id,"^1[ ^3Extaza ^1] You need more^1 (^4 %i ^1) ^4Cash ^1to buy ^3this item .", cost - player_points[id])
  434.                         }
  435.                         else{
  436.                                 new Name[33]
  437.                                 get_user_name(id, Name, 32)
  438.                                 player_points[id] -= cost
  439.                                 ColorChat(id,"^1[ ^3Extaza ^1]^4 %s ^1Buy^4 10 ^1Health",Name)
  440.                                 fm_set_user_health (id, Health+10)
  441.                                 SavePoints(id)
  442.                         }
  443.                 }
  444.                
  445.                 case 2:{
  446.                         if (!is_user_alive(id)){
  447.                                 ColorChat(id,"^^1[ ^3Extaza ^1] You must be Alive to buy ^3this item.")
  448.                                 return PLUGIN_HANDLED
  449.                         }
  450.                         new cost = get_pcvar_num(cost_20hp);
  451.                         new Health = get_user_health(id)
  452.                        
  453.                         if (player_points[id] < cost){
  454.                                 ColorChat(id,"^1[ ^3Extaza ^1] You need more^1 (^4 %i ^1) ^4Cash ^1to buy ^3this item .", cost - player_points[id])
  455.                         }
  456.                         else{
  457.                                 new Name[33]
  458.                                 get_user_name(id, Name, 32)
  459.                                 player_points[id] -= cost
  460.                                 ColorChat(id,"^1[ ^3Extaza ^1]^4 %s ^1Buy^4 20 ^1Health",Name)
  461.                                 fm_set_user_health (id, Health+20)
  462.                                 SavePoints(id)
  463.                         }
  464.                 }
  465.                
  466.                 case 3:
  467.                 {
  468.                         if (!is_user_alive(id)){
  469.                                 ColorChat(id,"^1[ ^3Extaza ^1] You must be Alive to buy ^3this item.")
  470.                                 return PLUGIN_HANDLED
  471.                         }
  472.                         new cost = get_pcvar_num(cost_30hp);
  473.                         new Health = get_user_health(id)
  474.                        
  475.                         if (player_points[id] < cost){
  476.                                 ColorChat(id,"^1[ ^3Extaza ^1] You need more^1 (^4 %i ^1) ^4Cash ^1to buy ^3this item .", cost - player_points[id])
  477.                         }
  478.                         else{
  479.                                 new Name[33]
  480.                                 get_user_name(id, Name, 32)
  481.                                 player_points[id] -= cost
  482.                                 ColorChat(id,"^1[ ^3Extaza ^1]^4 %s ^1Buy^4 30 ^1Health",Name)
  483.                                 fm_set_user_health (id, Health+30)
  484.                                 SavePoints(id)
  485.                         }
  486.                 }
  487.                
  488.                 case 4:
  489.                 {
  490.                         if (!is_user_alive(id)){
  491.                                 ColorChat(id,"^1[ ^3Extaza ^1] You must be Alive to buy ^3this item.")
  492.                                 return PLUGIN_HANDLED
  493.                         }
  494.                         new cost = get_pcvar_num(cost_40hp);
  495.                         new Health = get_user_health(id)
  496.                        
  497.                         if (player_points[id] < cost){
  498.                                 ColorChat(id,"^1[ ^3Extaza ^1] You need more^1 (^4 %i ^1) ^4Cash ^1to buy ^3this item .", cost - player_points[id])
  499.                         }
  500.                         else{
  501.                                 new Name[33]
  502.                                 get_user_name(id, Name, 32)
  503.                                 player_points[id] -= cost
  504.                                 ColorChat(id,"^1[ ^3Extaza ^1]^4 %s ^1Buy^4 40 ^1Health",Name)
  505.                                 fm_set_user_health (id, Health+40)
  506.                                 SavePoints(id)
  507.                         }
  508.                 }
  509.                
  510.                 case 5:
  511.                 {
  512.                         if (!is_user_alive(id)){
  513.                                 ColorChat(id,"^1[ ^3Extaza ^1] You must be Alive to buy ^3this item.")
  514.                                 return PLUGIN_HANDLED
  515.                         }
  516.                         new cost = get_pcvar_num(cost_50hp);
  517.                         new Health = get_user_health(id)
  518.                        
  519.                         if (player_points[id] < cost){
  520.                                 ColorChat(id,"^1[ ^3Extaza ^1] You need more^1 (^4 %i ^1) ^4Cash ^1to buy ^3this item .", cost - player_points[id])
  521.                         }
  522.                         else{
  523.                                 new Name[33]
  524.                                 get_user_name(id, Name, 32)
  525.                                 player_points[id] -= cost
  526.                                 ColorChat(id,"^1[ ^3Extaza ^1]^4 %s ^1Buy^4 50 ^1Health",Name)
  527.                                 fm_set_user_health (id, Health+50)
  528.                                 SavePoints(id)
  529.                         }
  530.                 }
  531.         }
  532.         menu_destroy(menu)
  533.         return PLUGIN_HANDLED
  534. }
  535. public show_menu_weapon(id)
  536. {
  537.         new text[256]
  538.         formatex(text, charsmax(text), "\r[ \wExtaza \r]\y JailBreak Shop Menu \rYour Cash \w:\w %d^n\yWeapons Menu ",player_points[id])
  539.         new menu = menu_create(text, "handle_show_menu_weapon")
  540.        
  541.         formatex(text, 199, "\wGlock\d 3\y Bullets -\r [\w%d\y Cash\r]", get_pcvar_num(cost_glock))
  542.         menu_additem(menu, text, "1")
  543.        
  544.         formatex(text, 199, "\wUsp\d 2\y Bullets -\r [\w%d\y Cash\r]", get_pcvar_num(cost_usp))
  545.         menu_additem(menu, text, "2")
  546.        
  547.         formatex(text, 199, "\wDeagle\d 2\y Bullets  -\r [\w%d\y Cash\r]", get_pcvar_num(cost_deagle))
  548.         menu_additem(menu, text, "3")
  549.        
  550.         formatex(text, 199, "\wAwp\d 1\y Bullets -\r [\w%d\y Cash\r]", get_pcvar_num(cost_awp))
  551.         menu_additem(menu, text, "4")
  552.        
  553.         menu_setprop(menu, MPROP_EXIT, MEXIT_ALL)
  554.         menu_display(id, menu, 0)
  555.        
  556. }
  557.  
  558. public handle_show_menu_weapon(id, menu, item)
  559. {
  560.         if (item == MENU_EXIT)
  561.         {
  562.                 menu_destroy(menu)
  563.                 return PLUGIN_HANDLED
  564.         }
  565.        
  566.         new Data[6];
  567.         new Access;
  568.         new Callback;
  569.         new Name[64];
  570.         menu_item_getinfo(menu, item, Access, Data, 5, Name, 63, Callback)
  571.        
  572.         new Key = str_to_num(Data);
  573.        
  574.         switch (Key)
  575.         {
  576.                 case 1:
  577.                 {
  578.                         if (!is_user_alive(id)){
  579.                                 ColorChat(id,"^1[ ^3Extaza ^1] You must be Alive to buy ^3this item.")
  580.                                 return PLUGIN_HANDLED
  581.                         }
  582.                         new cost = get_pcvar_num(cost_glock);
  583.                        
  584.                         if (player_points[id] < cost){
  585.                                 ColorChat(id,"^1[ ^3Extaza ^1] You need more^1 (^4 %i ^1) ^4Cash ^1to buy ^3this item .", cost - player_points[id])
  586.                         }
  587.                         else{
  588.                                 player_points[id] -= cost
  589.                                 ColorChat(id,"^1[ ^3Extaza ^1]^4 ^1You purchased^4 Glock 3 Bullets")
  590.                                 cs_set_weapon_ammo(give_item(id, "weapon_glock18"), 3);
  591.                                 SavePoints(id)
  592.                         }
  593.                 }
  594.                 case 2:
  595.                 {
  596.                         if (!is_user_alive(id))
  597.                         {
  598.                                 ColorChat(id,"^1[ ^3Extaza ^1] You must be Alive to buy ^3this item.")
  599.                                 return PLUGIN_HANDLED
  600.                         }
  601.                         new cost = get_pcvar_num(cost_usp);
  602.                        
  603.                         if (player_points[id] < cost){
  604.                                 ColorChat(id,"^1[ ^3Extaza ^1] You need more^1 (^4 %i ^1) ^4Cash ^1to buy ^3this item .", cost - player_points[id])
  605.                         }
  606.                         else{
  607.                                 player_points[id] -= cost
  608.                                 ColorChat(id,"^1[ ^3Extaza ^1] You purchased^4 Usp 2 Bullets")
  609.                                 cs_set_weapon_ammo(give_item(id, "weapon_usp"), 2);
  610.                                 SavePoints(id)
  611.                         }
  612.                 }
  613.                
  614.                 case 3:
  615.                 {
  616.                         if (!is_user_alive(id)){
  617.                                 ColorChat(id,"^1[ ^3Extaza ^1] You must be Alive to buy ^3this item.")
  618.                                 return PLUGIN_HANDLED
  619.                         }
  620.                        
  621.                         new cost = get_pcvar_num(cost_deagle);        
  622.                         if (player_points[id] < cost){
  623.                                 ColorChat(id,"^1[ ^3Extaza ^1] You need more^1 (^4 %i ^1) ^4Cash ^1to buy ^3this item .", cost - player_points[id])
  624.                         }
  625.                         else{
  626.                                
  627.                                 player_points[id] -= cost
  628.                                 ColorChat(id,"^1[ ^3Extaza ^1] You purchased^4 Deagle 2 Bullets")
  629.                                 cs_set_weapon_ammo(give_item(id, "weapon_deagle"), 2);
  630.                                 SavePoints(id)
  631.                         }
  632.                 }
  633.                
  634.                 case 4:
  635.                 {
  636.                         if (!is_user_alive(id)){
  637.                                 ColorChat(id,"^1[ ^3Extaza ^1] You must be Alive to buy ^3this item.")
  638.                                 return PLUGIN_HANDLED
  639.                         }
  640.                        
  641.                         new cost = get_pcvar_num(cost_awp);            
  642.                         if (player_points[id] < cost){
  643.                                 ColorChat(id,"^1[ ^3Extaza ^1] You need more^1 (^4 %i ^1) ^4Cash ^1to buy ^3this item .", cost - player_points[id])
  644.                         }
  645.                         else{
  646.                                 player_points[id] -= cost
  647.                                 ColorChat(id,"^1[ ^3Extaza ^1] You purchased^4 Awp 1 Bullets")
  648.                                 cs_set_weapon_ammo(give_item(id, "weapon_awp"), 1);
  649.                                 SavePoints(id)
  650.                         }
  651.                 }
  652.         }
  653.         menu_destroy(menu)
  654.         return PLUGIN_HANDLED
  655.        
  656. }
  657. public show_menu_power(id){
  658.         new text[256]
  659.         formatex(text, charsmax(text), "\r[ \wExtaza \r]\y JailBreak Shop Menu \rYour Cash \w:\w %d^n\yPowers Menu ",player_points[id])
  660.         new menu = menu_create(text, "handle_show_menu_power")
  661.        
  662.         formatex(text, 199, "\wInvisibility\d 20\y Secounds -\r [\w%d\y Cash\r]", get_pcvar_num(cost_invisibility))
  663.         menu_additem(menu, text, "1")
  664.        
  665.         formatex(text, 199, "\wGravity\d 20\y Secounds -\r [\w%d\y Cash\r]", get_pcvar_num(cost_gravity))
  666.         menu_additem(menu, text, "2")
  667.        
  668.         formatex(text, 199, "\wSpeed\d 20\y Secounds  -\r [\w%d\y Cash\r]", get_pcvar_num(cost_speed))
  669.         menu_additem(menu, text, "3")
  670.        
  671.         formatex(text, 199, "\wGodmode\d 5\y Secounds -\r [\w%d\y Cash\r]", get_pcvar_num(cost_godmode))
  672.         menu_additem(menu, text, "4")
  673.        
  674.         formatex(text, 199, "\wNoclip\d 10\y Secounds -\r [\w%d\y Cash\r]", get_pcvar_num(cost_noclip))
  675.         menu_additem(menu, text, "5")
  676.        
  677.         formatex(text, 199, "\wCamouflage\d 20\y Secounds -\r [\w%d\y Cash\r]", get_pcvar_num(cost_camouflage))
  678.         menu_additem(menu, text, "6")
  679.        
  680.         formatex(text, 199, "\wSilentWalk\d 20\y Secounds -\r [\w%d\y Cash\r]", get_pcvar_num(cost_silentwalk))
  681.         menu_additem(menu, text, "7")
  682.        
  683.         menu_setprop(menu, MPROP_EXIT, MEXIT_ALL)
  684.         menu_display(id, menu, 0)
  685. }
  686.  
  687. public handle_show_menu_power(id, menu, item){
  688.         if (item == MENU_EXIT){
  689.                 menu_destroy(menu)
  690.                 return PLUGIN_HANDLED
  691.         }
  692.        
  693.         new Data[6];
  694.         new Access;
  695.         new Callback;
  696.         new Name[64];
  697.         menu_item_getinfo(menu, item, Access, Data, 5, Name, 63, Callback)
  698.        
  699.         new Key = str_to_num(Data);
  700.        
  701.         switch (Key){
  702.                 case 1:{
  703.                         if (!is_user_alive(id)){
  704.                                 ColorChat(id,"^1[ ^3Extaza ^1] You must be Alive to buy ^3this item.")
  705.                                 return PLUGIN_HANDLED
  706.                         }              
  707.                         new cost = get_pcvar_num(cost_invisibility);
  708.                        
  709.                         if (player_points[id] < cost){
  710.                                 ColorChat(id,"^1[ ^3Extaza ^1] You need more^1 (^4 %i ^1) ^4Cash ^1to buy ^3this item .", cost - player_points[id])
  711.                         }
  712.                         else{
  713.                                 player_points[id] -= cost
  714.                                 ColorChat(id, "^1[ ^3Extaza ^1] You purchased^4 Invisibility 20 Secounds")
  715.                                 set_user_rendering(id, kRenderFxGlowShell, 0, 0, 0, kRenderTransAlpha, 0);
  716.                                 set_task(20.0, "Remove_Invisibility", id);
  717.                                 SavePoints(id)
  718.                         }
  719.                 }
  720.                 case 2:{
  721.                         if (!is_user_alive(id)){
  722.                                 ColorChat(id,"^1[ ^3Extaza ^1] You must be Alive to buy ^3this item.")
  723.                                 return PLUGIN_HANDLED
  724.                         }                      
  725.                         new cost = get_pcvar_num(cost_gravity);
  726.                        
  727.                         if (player_points[id] < cost){
  728.                                 ColorChat(id,"^1[ ^3Extaza ^1] You need more^1 (^4 %i ^1) ^4Cash ^1to buy ^3this item .", cost - player_points[id])
  729.                         }
  730.                         else{
  731.                                 player_points[id] -= cost
  732.                                 ColorChat(id,"^1[ ^3Extaza ^1] You purchased^4 Gravity 20 Secounds")
  733.                                 set_user_gravity(id, 0.40);
  734.                                 set_task(20.0, "Remove_Gravity", id);
  735.                                 SavePoints(id)
  736.                         }
  737.                 }
  738.                 case 3:
  739.                 {
  740.                         if (!is_user_alive(id)){
  741.                                 ColorChat(id,"^1[ ^3Extaza ^1] You must be Alive to buy ^3this item.")
  742.                                 return PLUGIN_HANDLED
  743.                         }
  744.                        
  745.                         new cost = get_pcvar_num(cost_speed);
  746.                        
  747.                         if (player_points[id] < cost){
  748.                                 ColorChat(id,"^1[ ^3Extaza ^1] You need more^1 (^4 %i ^1) ^4Cash ^1to buy ^3this item .", cost - player_points[id])
  749.                         }
  750.                         else
  751.                         {
  752.                                
  753.                                 player_points[id] -= cost
  754.                                 ColorChat(id,"^1[ ^3Extaza ^1] You purchased^4 Speed 20 Secounds")
  755.                                 set_user_maxspeed(id, 900.0)
  756.                                 set_task(15.0, "Remove_Speed", id)
  757.                         }
  758.                 }
  759.                
  760.                 case 4:
  761.                 {
  762.                         if (!is_user_alive(id)){
  763.                                 ColorChat(id,"^1[ ^3Extaza ^1] You must be Alive to buy ^3this item.")
  764.                                 return PLUGIN_HANDLED
  765.                         }
  766.                        
  767.                         new cost = get_pcvar_num(cost_godmode);
  768.                        
  769.                         if (player_points[id] < cost){
  770.                                 ColorChat(id,"^1[ ^3Extaza ^1] You need more^1 (^4 %i ^1) ^4Cash ^1to buy ^3this item .", cost - player_points[id])
  771.                         }
  772.                         else{
  773.                                 player_points[id] -= cost
  774.                                 ColorChat(id,"^1[ ^3Extaza ^1] You purchased^4 Godmode 5 Secounds")
  775.                                 set_user_godmode(id, 1)
  776.                                 set_task(5.0, "Remove_Godmode", id)
  777.                         }
  778.                 }
  779.                 case 5:{
  780.                         if (!is_user_alive(id))
  781.                         {
  782.                                 ColorChat(id,"^1[ ^3Extaza ^1] You must be Alive to buy ^3this item.")
  783.                                 return PLUGIN_HANDLED
  784.                         }
  785.                        
  786.                         new cost = get_pcvar_num(cost_noclip);
  787.                        
  788.                         if (player_points[id] < cost){
  789.                                 ColorChat(id,"^1[ ^3Extaza ^1] You need more^1 (^4 %i ^1) ^4Cash ^1to buy ^3this item .", cost - player_points[id])
  790.                         }
  791.                         else{
  792.                                 player_points[id] -= cost
  793.                                 ColorChat(id,"^1[ ^3Extaza ^1] You purchased^4 Noclip 10 Secounds")
  794.                                 set_user_noclip(id, 1)
  795.                                 set_task(10.0, "Remove_Noclip", id)
  796.                         }
  797.                 }
  798.                 case 6:{
  799.                         if (!is_user_alive(id))
  800.                         {
  801.                                 ColorChat(id,"^1[ ^3Extaza ^1] You must be Alive to buy ^3this item.")
  802.                                 return PLUGIN_HANDLED
  803.                         }
  804.                         new cost = get_pcvar_num(cost_camouflage);
  805.                        
  806.                         if (player_points[id] < cost){
  807.                                 ColorChat(id,"^1[ ^3Extaza ^1] You need more^1 (^4 %i ^1) ^4Cash ^1to buy ^3this item .", cost - player_points[id])
  808.                         }
  809.                         else{
  810.                                 player_points[id] -= cost
  811.                                 ColorChat(id,"^1[ ^3Extaza ^1] You purchased^4 Camouflage 20 Secounds")
  812.                                 {
  813.                                 if ( cs_get_user_team(id) == CS_TEAM_T )
  814.                                 {
  815.                                         cs_set_user_model(id, "urban")
  816.                                 }
  817.                                 set_task(20.0, "Remove_Camouflage", id)
  818.                         }
  819.                 }
  820.         }
  821.         case 7:
  822.         {
  823.                 if (!is_user_alive(id))
  824.                 {
  825.                         ColorChat(id,"^1[ ^3Extaza ^1] You must be Alive to buy ^3this item.")
  826.                         return PLUGIN_HANDLED
  827.                 }
  828.                 new cost = get_pcvar_num(cost_silentwalk);
  829.                
  830.                 if (player_points[id] < cost){
  831.                         ColorChat(id,"^1[ ^3Extaza ^1] You need more^1 (^4 %i ^1) ^4Cash ^1to buy ^3this item .", cost - player_points[id])
  832.                 }
  833.                 else{
  834.                         player_points[id] -= cost
  835.                         ColorChat(id,"^1[ ^3Extaza ^1] You purchased^4 SilentWalk 20 Secounds")
  836.                         set_user_footsteps(id, 1)
  837.                         set_task(20.0, "Remove_Footsteps", id)
  838.                 }
  839.         }
  840. }
  841.         menu_destroy(menu)
  842.         return PLUGIN_HANDLED
  843. }
  844.  
  845. public show_menu_other(id)
  846. {
  847. new text[256]
  848. formatex(text, charsmax(text), "\r[ \wExtaza \r]\y JailBreak Shop Menu \rYour Cash \w:\w %d^n\yOthers Menu",player_points[id])
  849. new menu = menu_create(text, "handle_show_menu_other")
  850.  
  851. formatex(text, 199, "\wChange Team -\r [\w%d\y Cash\r]", get_pcvar_num(cost_change_teamct))
  852. menu_additem(menu, text, "1")
  853.  
  854. formatex(text, 199, "\wFreeday -\r [\w%d\y Cash\r]", get_pcvar_num(cost_freeday))
  855. menu_additem(menu, text, "2")
  856.  
  857. menu_setprop(menu, MPROP_EXIT, MEXIT_ALL)
  858. menu_display(id, menu, 0)
  859. }
  860. public handle_show_menu_other(id, menu, item){
  861. if (item == MENU_EXIT){
  862.         menu_destroy(menu)
  863.         return PLUGIN_HANDLED
  864. }
  865.  
  866. new Data[6];
  867. new Access;
  868. new Callback;
  869. new Name[64];
  870. menu_item_getinfo(menu, item, Access, Data, 5, Name, 63, Callback)
  871.  
  872. new Key = str_to_num(Data);
  873.  
  874. switch (Key){
  875.         case 1:{
  876.                 if (!is_user_alive(id))
  877.                 {
  878.                         ColorChat(id,"^1[ ^3Extaza ^1] You must be Alive to buy ^3this item.")
  879.                         return PLUGIN_HANDLED
  880.                 }
  881.                 new cost = get_pcvar_num(cost_change_teamct)
  882.                
  883.                 if (player_points[id] < cost){
  884.                         ColorChat(id,"^1[ ^3Extaza ^1] You need more^1 (^4 %i ^1) ^4Cash ^1to buy ^3this item .", cost - player_points[id])
  885.                 }
  886.                 else{
  887.                         new Name[33]
  888.                         get_user_name(id, Name, 32)
  889.                         player_points[id] -= cost
  890.                         ColorChat(0,"^1[ ^3Extaza ^1]^4 %s ^1Buy^4 ^" ^3Change Team ^4^"", Name)
  891.                         cs_set_user_team(id,CS_TEAM_CT)
  892.                         ExecuteHam(Ham_CS_RoundRespawn, id)
  893.                 }
  894.         }
  895.         case 2:{
  896.                 if (!is_user_alive(id))
  897.                 {
  898.                         ColorChat(id,"^1[ ^3Extaza ^1] You must be Alive to buy ^3this item.")
  899.                         return PLUGIN_HANDLED
  900.                 }
  901.                 new cost = get_pcvar_num(cost_freeday)
  902.                
  903.                 if (player_points[id] < cost){
  904.                         ColorChat(id,"^1[ ^3Extaza ^1] You need more^1 (^4 %i ^1) ^4Cash ^1to buy ^3this item .", cost - player_points[id])
  905.                 }
  906.                 else{
  907.                         new Name[33]
  908.                         get_user_name(id, Name, 32)
  909.                         player_points[id] -= cost
  910.                         ColorChat(0,"^1[ ^3Extaza ^1]^4 %s ^1Buy^4 ^" ^3Freeday ^4^"", Name)
  911.                         set_user_rendering(id, kRenderFxGlowShell, random_num(0, 225), random_num(0, 225), random_num(0, 225), kRenderNormal, 255)
  912.                 }
  913.         }
  914. }
  915. menu_destroy(menu)
  916. return PLUGIN_HANDLED
  917. }
  918.  
  919. public show_menu_knife(id)
  920. {
  921. new text[256]
  922. formatex(text, charsmax(text), "\r[ \wExtaza \r]\y JailBreak Shop Menu \rYour Cash \w:\w %d^n\yKnifes Menu ",player_points[id])
  923. new menu = menu_create(text, "handle_show_menu_knifes")
  924.  
  925. formatex(text, 199, "\wBeginner Knife -\r [\w%d\y Cash\r]", get_pcvar_num(cost_beginner))
  926. menu_additem(menu, text, "1")
  927.  
  928. formatex(text, 199, "\wAdvanced Knife -\r [\w%d\y Cash\r]", get_pcvar_num(cost_advanced))
  929. menu_additem(menu, text, "2")
  930.  
  931. formatex(text, 199, "\wSuperAdvanced Knife  -\r [\w%d\y Cash\r]", get_pcvar_num(cost_superadvanced))
  932. menu_additem(menu, text, "3")
  933.  
  934. formatex(text, 199, "\wVatican Knife -\r [\w%d\y Cash\r]", get_pcvar_num(cost_vatican))
  935. menu_additem(menu, text, "4")
  936.  
  937. formatex(text, 199, "\wRespect Knife -\r [\w%d\y Cash\r]", get_pcvar_num(cost_respect))
  938. menu_additem(menu, text, "5")
  939.  
  940. formatex(text, 199, "\wSpecial Knife -\r [\w%d\y Cash\r]", get_pcvar_num(cost_special))
  941. menu_additem(menu, text, "6")
  942.  
  943. formatex(text, 199, "\wCommander Knife -\r [\w%d\y Cash\r]", get_pcvar_num(cost_commander))
  944. menu_additem(menu, text, "7")
  945.  
  946. formatex(text, 199, "\wPro Knife -\r [\w%d\y Cash\r]", get_pcvar_num(cost_pro))
  947. menu_additem(menu, text, "8")
  948.  
  949. formatex(text, 199, "\wCommunity Knife -\r [\w%d\y Cash\r]", get_pcvar_num(cost_community))
  950. menu_additem(menu, text, "9")
  951.  
  952. formatex(text, 199, "\wSupervisor Knife -\r [\w%d\y Cash\r]", get_pcvar_num(cost_supervisor))
  953. menu_additem(menu, text, "10")
  954.  
  955. formatex(text, 199, "\wAdministrator Knife -\r [\w%d\y Cash\r]", get_pcvar_num(cost_administrator))
  956. menu_additem(menu, text, "11")
  957.  
  958. formatex(text, 199, "\wBoss Knife -\r [\w%d\y Cash\r]", get_pcvar_num(cost_boss))
  959. menu_additem(menu, text, "12")
  960.  
  961. formatex(text, 199, "\wExtaza SuperPower Knife -\r [\w%d\y Cash\r]", get_pcvar_num(cost_extazasuperpower))
  962. menu_additem(menu, text, "13")
  963.  
  964. formatex(text, 199, "\wOwners Knife -\r [\w%d\y Cash\r]", get_pcvar_num(cost_owners))
  965. menu_additem(menu, text, "14")
  966.  
  967. formatex(text, 199, "\wNoykaSharel Knife -\r [\w%d\y Cash\r]", get_pcvar_num(cost_noykasharel))
  968. menu_additem(menu, text, "15")
  969.  
  970. menu_setprop(menu, MPROP_EXIT, MEXIT_ALL)
  971. menu_display(id, menu, 0)
  972.  
  973. }
  974.  
  975. public handle_show_menu_knifes(id, menu, item)
  976. {
  977. if (item == MENU_EXIT)
  978. {
  979.         menu_destroy(menu)
  980.         return PLUGIN_HANDLED
  981. }
  982.  
  983. new Data[6];
  984. new Access;
  985. new Callback;
  986. new Name[64];
  987. menu_item_getinfo(menu, item, Access, Data, 5, Name, 63, Callback)
  988.  
  989. new Key = str_to_num(Data);
  990.  
  991. switch (Key)
  992. {
  993.         case 1:
  994.         {
  995.                 if (!is_user_alive(id)){
  996.                         ColorChat(id,"^1[ ^3Extaza ^1] You must be Alive to buy ^3this item.")
  997.                         return PLUGIN_HANDLED
  998.                 }
  999.                 new cost = get_pcvar_num(cost_beginner);
  1000.                
  1001.                 if(knife[id] > 0)
  1002.                         return 1;
  1003.                         if (player_points[id] < cost){
  1004.                                 ColorChat(id,"^1[ ^3Extaza ^1] You need more^1 (^4 %i ^1) ^4Cash ^1to buy ^3this item .", cost - player_points[id])
  1005.                         }
  1006.                         else{
  1007.                                 player_points[id] -= cost
  1008.                                 ColorChat(id,"^1[ ^3Extaza ^1] You purchased^4 Beginner Knife^1 (^3Level - 1^1)")
  1009.                                 entity_set_string( id,EV_SZ_viewmodel, "models/Extaza/v_extazaknifeshop1.mdl" );  
  1010.                                 fm_set_user_health( id, 105 )
  1011.                                 SavePoints(id)
  1012.                                 knife[id] = 1
  1013.                         }
  1014.                 }
  1015.                 case 2:
  1016.                 {
  1017.                         if (!is_user_alive(id))
  1018.                         {
  1019.                                 ColorChat(id,"^1[ ^3Extaza ^1] You must be Alive to buy ^3this item.")
  1020.                                 return PLUGIN_HANDLED
  1021.                         }
  1022.                         new cost = get_pcvar_num(cost_advanced);
  1023.                        
  1024.                         if(knife[id] > 1)
  1025.                                 return 1;
  1026.                        
  1027.                         if (player_points[id] < cost){
  1028.                                 ColorChat(id,"^1[ ^3Extaza ^1] You need more^1 (^4 %i ^1) ^4Cash ^1to buy ^3this item .", cost - player_points[id])
  1029.                         }
  1030.                         else{
  1031.                                 player_points[id] -= cost
  1032.                                 ColorChat(id,"^1[ ^3Extaza ^1] You purchased^4 Advanced Knife^1 (^3Level - 2^1)")
  1033.                                 entity_set_string( id,EV_SZ_viewmodel, "models/Extaza/v_extazaknifesshop2.mdl" );  
  1034.                                 fm_set_user_health( id, 110 )
  1035.                                 SavePoints(id)
  1036.                                 knife[id] = 2
  1037.                         }
  1038.                 }
  1039.                
  1040.                 case 3:
  1041.                 {
  1042.                         if (!is_user_alive(id)){
  1043.                                 ColorChat(id,"^1[ ^3Extaza ^1] You must be Alive to buy ^3this item.")
  1044.                                 return PLUGIN_HANDLED
  1045.                         }
  1046.                        
  1047.                         if(knife[id] > 2)
  1048.                                 return 1;
  1049.                        
  1050.                         new cost = get_pcvar_num(cost_superadvanced);        
  1051.                         if (player_points[id] < cost){
  1052.                                 ColorChat(id,"^1[ ^3Extaza ^1] You need more^1 (^4 %i ^1) ^4Cash ^1to buy ^3this item .", cost - player_points[id])
  1053.                         }
  1054.                         else{
  1055.                                
  1056.                                 player_points[id] -= cost
  1057.                                 ColorChat(id,"^1[ ^3Extaza ^1] You purchased^4 SuperAdvanced Knife^1 (^3Level - 3^1)")
  1058.                                 entity_set_string( id,EV_SZ_viewmodel, "models/Extaza/v_extazaknifeshop3.mdl" );  
  1059.                                 fm_set_user_health( id, 115 )
  1060.                                 set_user_footsteps(id, 1)
  1061.                                 SavePoints(id)
  1062.                                 knife[id] = 3
  1063.                         }
  1064.                 }
  1065.                
  1066.                 case 4:
  1067.                 {
  1068.                         if (!is_user_alive(id)){
  1069.                                 ColorChat(id,"^1[ ^3Extaza ^1] You must be Alive to buy ^3this item.")
  1070.                                 return PLUGIN_HANDLED
  1071.                         }
  1072.                        
  1073.                         if(knife[id] > 3)
  1074.                                 return 1;
  1075.                        
  1076.                         new cost = get_pcvar_num(cost_vatican);            
  1077.                         if (player_points[id] < cost){
  1078.                                 ColorChat(id,"^1[ ^3Extaza ^1] You need more^1 (^4 %i ^1) ^4Cash ^1to buy ^3this item .", cost - player_points[id])
  1079.                         }
  1080.                         else{
  1081.                                 player_points[id] -= cost
  1082.                                 ColorChat(id,"^1[ ^3Extaza ^1] You purchased^4 Vatican Knife^1 (^3Level - 4^1)")
  1083.                                 entity_set_string( id,EV_SZ_viewmodel, "models/Extaza/v_extazaknifeshop4.mdl" );  
  1084.                                 fm_set_user_health( id, 120 )
  1085.                                 set_user_footsteps(id, 1)
  1086.                                 SavePoints(id)
  1087.                                 knife[id] = 4
  1088.                                
  1089.                         }
  1090.                 }
  1091.                
  1092.                 case 5:
  1093.                 {
  1094.                         if (!is_user_alive(id)){
  1095.                                 ColorChat(id,"^1[ ^3Extaza ^1] You must be Alive to buy ^3this item.")
  1096.                                 return PLUGIN_HANDLED
  1097.                         }
  1098.                        
  1099.                         if(knife[id] > 4)
  1100.                                 return 1;
  1101.                        
  1102.                         new cost = get_pcvar_num(cost_respect);            
  1103.                         if (player_points[id] < cost){
  1104.                                 ColorChat(id,"^1[ ^3Extaza ^1] You need more^1 (^4 %i ^1) ^4Cash ^1to buy ^3this item .", cost - player_points[id])
  1105.                         }
  1106.                         else{
  1107.                                 player_points[id] -= cost
  1108.                                 ColorChat(id,"^1[ ^3Extaza ^1] You purchased^4 Respect Knife^1 (^3Level - 5^1)")
  1109.                                 entity_set_string( id,EV_SZ_viewmodel, "models/Extaza/v_extazaknifeshop5.mdl" );  
  1110.                                 fm_set_user_health( id, 125 )
  1111.                                 set_user_footsteps(id, 1)
  1112.                                 SavePoints(id)
  1113.                                 knife[id] = 5
  1114.                         }
  1115.                 }
  1116.                
  1117.                 case 6:
  1118.                 {
  1119.                         if (!is_user_alive(id)){
  1120.                                 ColorChat(id,"^1[ ^3Extaza ^1] You must be Alive to buy ^3this item.")
  1121.                                 return PLUGIN_HANDLED
  1122.                         }
  1123.                        
  1124.                         if(knife[id] > 5)
  1125.                                 return 1;
  1126.                        
  1127.                         new cost = get_pcvar_num(cost_special);            
  1128.                         if (player_points[id] < cost){
  1129.                                 ColorChat(id,"^1[ ^3Extaza ^1] You need more^1 (^4 %i ^1) ^4Cash ^1to buy ^3this item .", cost - player_points[id])
  1130.                         }
  1131.                         else{
  1132.                                 player_points[id] -= cost
  1133.                                 ColorChat(id,"^1[ ^3Extaza ^1] You purchased^4 Special Knife^1 (^3Level - 6^1)")
  1134.                                 entity_set_string( id,EV_SZ_viewmodel, "models/Extaza/v_extazaknifeshop6.mdl" );  
  1135.                                 fm_set_user_health( id, 130 )
  1136.                                 set_user_footsteps(id, 1)
  1137.                                 set_user_rendering(id, kRenderFxGlowShell, 0, 0, 0, kRenderTransAlpha, 255);
  1138.                                 SavePoints(id)
  1139.                                 knife[id] = 6
  1140.                         }
  1141.                 }
  1142.                
  1143.                 case 7:
  1144.                 {
  1145.                         if (!is_user_alive(id)){
  1146.                                 ColorChat(id,"^1[ ^3Extaza ^1] You must be Alive to buy ^3this item.")
  1147.                                 return PLUGIN_HANDLED
  1148.                         }
  1149.                         if(knife[id] > 6)
  1150.                                 return 1;
  1151.                         new cost = get_pcvar_num(cost_commander);            
  1152.                         if (player_points[id] < cost){
  1153.                                 ColorChat(id,"^1[ ^3Extaza ^1] You need more^1 (^4 %i ^1) ^4Cash ^1to buy ^3this item .", cost - player_points[id])
  1154.                         }
  1155.                         else{
  1156.                                 player_points[id] -= cost
  1157.                                 ColorChat(id,"^1[ ^3Extaza ^1] You purchased^4 Commander Knife^1 (^3Level - 7^1)")
  1158.                                 entity_set_string( id,EV_SZ_viewmodel, "models/Extaza/v_extazaknifeshop7.mdl" );  
  1159.                                 fm_set_user_health( id, 135 )
  1160.                                 set_user_footsteps(id, 1)
  1161.                                 set_user_rendering(id, kRenderFxGlowShell, 0, 0, 0, kRenderTransAlpha, 255);
  1162.                                 SavePoints(id)
  1163.                                 knife[id] = 7
  1164.                         }
  1165.                 }
  1166.                
  1167.                 case 8:
  1168.                 {
  1169.                         if (!is_user_alive(id)){
  1170.                                 ColorChat(id,"^1[ ^3Extaza ^1] You must be Alive to buy ^3this item.")
  1171.                                 return PLUGIN_HANDLED
  1172.                         }
  1173.                         if(knife[id] > 7)
  1174.                                 return 1;
  1175.                         new cost = get_pcvar_num(cost_pro);            
  1176.                         if (player_points[id] < cost){
  1177.                                 ColorChat(id,"^1[ ^3Extaza ^1] You need more^1 (^4 %i ^1) ^4Cash ^1to buy ^3this item .", cost - player_points[id])
  1178.                         }
  1179.                         else{
  1180.                                 player_points[id] -= cost
  1181.                                 ColorChat(id,"^1[ ^3Extaza ^1] You purchased^4 Pro Knife^1 (^3Level - 8^1)")
  1182.                                 entity_set_string( id,EV_SZ_viewmodel, "models/Extaza/v_extazaknifeshop8.mdl" );  
  1183.                                 fm_set_user_health( id, 140 )
  1184.                                 set_user_footsteps(id, 1)
  1185.                                 set_user_rendering(id, kRenderFxGlowShell, 0, 0, 0, kRenderTransAlpha, 255);
  1186.                                 SavePoints(id)
  1187.                                 knife[id] = 8
  1188.                         }
  1189.                 }
  1190.                
  1191.                 case 9:
  1192.                 {
  1193.                         if (!is_user_alive(id)){
  1194.                                 ColorChat(id,"^1[ ^3Extaza ^1] You must be Alive to buy ^3this item.")
  1195.                                 return PLUGIN_HANDLED
  1196.                         }
  1197.                         if(knife[id] > 8)
  1198.                                 return 1;
  1199.                         new cost = get_pcvar_num(cost_community);            
  1200.                         if (player_points[id] < cost){
  1201.                                 ColorChat(id,"^1[ ^3Extaza ^1] You need more^1 (^4 %i ^1) ^4Cash ^1to buy ^3this item .", cost - player_points[id])
  1202.                         }
  1203.                         else{
  1204.                                 player_points[id] -= cost
  1205.                                 ColorChat(id,"^1[ ^3Extaza ^1] You purchased^4 Community Knife^1 (^3Level - 9^1)")
  1206.                                 entity_set_string( id,EV_SZ_viewmodel, "models/Extaza/v_extazaknifeshop9.mdl" );  
  1207.                                 fm_set_user_health( id, 145 )
  1208.                                 set_user_footsteps(id, 1)
  1209.                                 set_user_rendering(id, kRenderFxGlowShell, 0, 0, 0, kRenderTransAlpha, 255);
  1210.                                 SavePoints(id)
  1211.                                 knife[id] = 9
  1212.                         }
  1213.                 }
  1214.                
  1215.                 case 10:
  1216.                 {
  1217.                         if (!is_user_alive(id)){
  1218.                                 ColorChat(id,"^1[ ^3Extaza ^1] You must be Alive to buy ^3this item.")
  1219.                                 return PLUGIN_HANDLED
  1220.                         }
  1221.                         if(knife[id] > 9)
  1222.                                 return 1;
  1223.                         new cost = get_pcvar_num(cost_supervisor);            
  1224.                         if (player_points[id] < cost){
  1225.                                 ColorChat(id,"^1[ ^3Extaza ^1] You need more^1 (^4 %i ^1) ^4Cash ^1to buy ^3this item .", cost - player_points[id])
  1226.                         }
  1227.                         else{
  1228.                                 player_points[id] -= cost
  1229.                                 ColorChat(id,"^1[ ^3Extaza ^1] You purchased^4 Supervisor Knife^1 (^3Level - 10^1)")
  1230.                                 entity_set_string( id,EV_SZ_viewmodel, "models/Extaza/v_extazaknifeshop10.mdl" );  
  1231.                                 fm_set_user_health( id, 150 )
  1232.                                 set_user_footsteps(id, 1)
  1233.                                 set_user_rendering(id, kRenderFxGlowShell, 0, 0, 0, kRenderTransAlpha, 255);
  1234.                                 SavePoints(id)
  1235.                                 knife[id] = 10
  1236.                         }
  1237.                 }
  1238.                
  1239.                 case 11:
  1240.                 {
  1241.                         if (!is_user_alive(id)){
  1242.                                 ColorChat(id,"^1[ ^3Extaza ^1] You must be Alive to buy ^3this item.")
  1243.                                 return PLUGIN_HANDLED
  1244.                         }
  1245.                         if(knife[id] > 10)
  1246.                                 return 1;
  1247.                         new cost = get_pcvar_num(cost_administrator);            
  1248.                         if (player_points[id] < cost){
  1249.                                 ColorChat(id,"^1[ ^3Extaza ^1] You need more^1 (^4 %i ^1) ^4Cash ^1to buy ^3this item .", cost - player_points[id])
  1250.                         }
  1251.                         else{
  1252.                                 player_points[id] -= cost
  1253.                                 ColorChat(id,"^1[ ^3Extaza ^1] You purchased^4 Administrator Knife^1 (^3Level - 11^1)")
  1254.                                 entity_set_string( id,EV_SZ_viewmodel, "models/Extaza/v_extazaknifeshop11.mdl" );  
  1255.                                 fm_set_user_health( id, 155 )
  1256.                                 set_user_footsteps(id, 1)
  1257.                                 set_user_rendering(id, kRenderFxGlowShell, 0, 0, 0, kRenderTransAlpha, 255);
  1258.                                 SavePoints(id)
  1259.                                 knife[id] = 11
  1260.                         }
  1261.                 }
  1262.                
  1263.                 case 12:
  1264.                 {
  1265.                         if (!is_user_alive(id)){
  1266.                                 ColorChat(id,"^1[ ^3Extaza ^1] You must be Alive to buy ^3this item.")
  1267.                                 return PLUGIN_HANDLED
  1268.                         }
  1269.                         if(knife[id] > 11)
  1270.                                 return 1;
  1271.                         new cost = get_pcvar_num(cost_boss);            
  1272.                         if (player_points[id] < cost){
  1273.                                 ColorChat(id,"^1[ ^3Extaza ^1] You need more^1 (^4 %i ^1) ^4Cash ^1to buy ^3this item .", cost - player_points[id])
  1274.                         }
  1275.                         else{
  1276.                                 player_points[id] -= cost
  1277.                                 ColorChat(id,"^1[ ^3Extaza ^1] You purchased^4 Boss Knife^1 (^3Level - 12^1)")
  1278.                                 entity_set_string( id,EV_SZ_viewmodel, "models/Extaza/v_extazaknifeshop12.mdl" );  
  1279.                                 fm_set_user_health( id, 160 )
  1280.                                 set_user_footsteps(id, 1)
  1281.                                 set_user_rendering(id, kRenderFxGlowShell, 0, 0, 0, kRenderTransAlpha, 255);
  1282.                                 SavePoints(id)
  1283.                                 knife[id] = 12
  1284.                         }
  1285.                 }
  1286.                
  1287.                 case 13:
  1288.                 {
  1289.                         if (!is_user_alive(id)){
  1290.                                 ColorChat(id,"^1[ ^3Extaza ^1] You must be Alive to buy ^3this item.")
  1291.                                 return PLUGIN_HANDLED
  1292.                         }
  1293.                         if(knife[id] > 12)
  1294.                                 return 1;
  1295.                         new cost = get_pcvar_num(cost_extazasuperpower);            
  1296.                         if (player_points[id] < cost){
  1297.                                 ColorChat(id,"^1[ ^3Extaza ^1] You need more^1 (^4 %i ^1) ^4Cash ^1to buy ^3this item .", cost - player_points[id])
  1298.                         }
  1299.                         else{
  1300.                                 player_points[id] -= cost
  1301.                                 ColorChat(id,"^1[ ^3Extaza ^1] You purchased^4 Extaza Super-Power Knife^1 (^3Level - 13^1)")
  1302.                                 entity_set_string( id,EV_SZ_viewmodel, "models/Extaza/v_extazaknifeshop13.mdl" );  
  1303.                                 fm_set_user_health( id, 165 )
  1304.                                 set_user_footsteps(id, 1)
  1305.                                 set_user_rendering(id, kRenderFxGlowShell, 0, 0, 0, kRenderTransAlpha, 255);
  1306.                                 SavePoints(id)
  1307.                                 knife[id] = 13
  1308.                         }
  1309.                 }
  1310.                
  1311.                 case 14:
  1312.                 {
  1313.                         if (!is_user_alive(id)){
  1314.                                 ColorChat(id,"^1[ ^3Extaza ^1] You must be Alive to buy ^3this item.")
  1315.                                 return PLUGIN_HANDLED
  1316.                         }
  1317.                         if(knife[id] > 13)
  1318.                                 return 1;
  1319.                         new cost = get_pcvar_num(cost_owners);            
  1320.                         if (player_points[id] < cost){
  1321.                                 ColorChat(id,"^1[ ^3Extaza ^1] You need more^1 (^4 %i ^1) ^4Cash ^1to buy ^3this item .", cost - player_points[id])
  1322.                         }
  1323.                         else{
  1324.                                 player_points[id] -= cost
  1325.                                 ColorChat(id,"^1[ ^3Extaza ^1] You purchased^4 Owners Knife^1 (^3Level - 14^1)")
  1326.                                 entity_set_string( id,EV_SZ_viewmodel, "models/Extaza/v_extazaknifeshop14.mdl" );  
  1327.                                 fm_set_user_health( id, 170 )
  1328.                                 set_user_footsteps(id, 1)
  1329.                                 set_user_rendering(id, kRenderFxGlowShell, 0, 0, 0, kRenderTransAlpha, 255);
  1330.                                 SavePoints(id)
  1331.                                 knife[id] = 14
  1332.                         }
  1333.                 }
  1334.                
  1335.                 case 15:
  1336.                 {
  1337.                         if (!is_user_alive(id)){
  1338.                                 ColorChat(id,"^1[ ^3Extaza ^1] You must be Alive to buy ^3this item.")
  1339.                                 return PLUGIN_HANDLED
  1340.                         }
  1341.                         if(knife[id] > 14)
  1342.                                 return 1;
  1343.                         new cost = get_pcvar_num(cost_noykasharel);            
  1344.                         if (player_points[id] < cost){
  1345.                                 ColorChat(id,"^1[ ^3Extaza ^1] You need more^1 (^4 %i ^1) ^4Cash ^1to buy ^3this item .", cost - player_points[id])
  1346.                         }
  1347.                         else{
  1348.                                 player_points[id] -= cost
  1349.                                 ColorChat(id,"^1[ ^3Extaza ^1] You purchased^4 NoykaSharel Knife^1 (^3Level - 15^1)")
  1350.                                 entity_set_string( id,EV_SZ_viewmodel, "models/Extaza/v_extazaknifeshop15.mdl" );  
  1351.                                 fm_set_user_health( id, 175 )
  1352.                                 set_user_footsteps(id, 1)
  1353.                                 set_user_rendering(id, kRenderFxGlowShell, 0, 0, 0, kRenderTransAlpha, 255);
  1354.                                 SavePoints(id)
  1355.                                 knife[id] = 15
  1356.                         }
  1357.                 }
  1358.         }
  1359. menu_destroy(menu)
  1360. return PLUGIN_HANDLED
  1361. }
  1362.  
  1363. public Event_CurWeapon(id)
  1364. {
  1365.         if( !is_user_alive( id ) && !is_user_connected( id ) || cs_get_user_team(id) == CS_TEAM_CT)
  1366.                 return PLUGIN_CONTINUE
  1367.         new temp[ 2 ], weapon = get_user_weapon( id, temp[ 0 ], temp[ 1 ] );
  1368.         if( weapon == CSW_KNIFE )
  1369.         {
  1370.                 if(knife[id] == 1)
  1371.                 {
  1372.                         entity_set_string( id,EV_SZ_viewmodel, "models/Extaza/v_extazaknifeshop1.mdl" );  
  1373.                 }
  1374.                 else if(knife[id] == 2)
  1375.                 {
  1376.                         entity_set_string( id,EV_SZ_viewmodel, "models/Extaza/v_extazaknifeshop2.mdl" );  
  1377.                 }
  1378.                 else if(knife[id] == 3)
  1379.                 {
  1380.                         entity_set_string( id,EV_SZ_viewmodel, "models/Extaza/v_extazaknifeshop3.mdl" );  
  1381.                 }
  1382.                 else if(knife[id] == 4)
  1383.                 {
  1384.                         entity_set_string( id,EV_SZ_viewmodel, "models/Extaza/v_extazaknifeshop4.mdl" );  
  1385.                 }
  1386.                 else if(knife[id] == 5)
  1387.                 {
  1388.                         entity_set_string( id,EV_SZ_viewmodel, "models/Extaza/v_extazaknifeshop5.mdl" );  
  1389.                 }
  1390.                 else if(knife[id] == 6)
  1391.                 {
  1392.                         entity_set_string( id,EV_SZ_viewmodel, "models/Extaza/v_extazaknifeshop6.mdl" );  
  1393.                 }
  1394.                 else if(knife[id] == 7)
  1395.                 {
  1396.                         entity_set_string( id,EV_SZ_viewmodel, "models/Extaza/v_extazaknifeshop7.mdl" );
  1397.                                         }
  1398.                 else if(knife[id] == 8)
  1399.                 {
  1400.                         entity_set_string( id,EV_SZ_viewmodel, "models/Extaza/v_extazaknifeshop8.mdl" );
  1401.                                         }
  1402.                 else if(knife[id] == 9)
  1403.                 {
  1404.                         entity_set_string( id,EV_SZ_viewmodel, "models/Extaza/v_extazaknifeshop9.mdl" );
  1405.                                         }
  1406.                 else if(knife[id] == 10)
  1407.                 {
  1408.                         entity_set_string( id,EV_SZ_viewmodel, "models/Extaza/v_extazaknifeshop10.mdl" );
  1409.                                         }
  1410.                 else if(knife[id] == 11)
  1411.                 {
  1412.                         entity_set_string( id,EV_SZ_viewmodel, "models/Extaza/v_extazaknifeshop11.mdl" );
  1413.                                         }
  1414.                 else if(knife[id] == 12)
  1415.                 {
  1416.                         entity_set_string( id,EV_SZ_viewmodel, "models/Extaza/v_extazaknifeshop12.mdl" );
  1417.                                         }
  1418.                 else if(knife[id] == 13)
  1419.                 {
  1420.                         entity_set_string( id,EV_SZ_viewmodel, "models/Extaza/v_extazaknifeshop13.mdl" );
  1421.                                         }
  1422.                 else if(knife[id] == 14)
  1423.                 {
  1424.                         entity_set_string( id,EV_SZ_viewmodel, "models/Extaza/v_extazaknifeshop14.mdl" );
  1425.                                         }
  1426.                 else if(knife[id] == 15)
  1427.                 {
  1428.                         entity_set_string( id,EV_SZ_viewmodel, "models/Extaza/v_extazaknifeshop15.mdl" );
  1429.                 }
  1430.         }
  1431. }
  1432.  
  1433. public FwdHamPlayerSpawn(id)
  1434. {
  1435.         if(cs_get_user_team(id) == CS_TEAM_T)
  1436.         {
  1437.                 if(knife[id] == 1)
  1438.                         fm_set_user_health( id, 105 )
  1439.                 if(knife[id] == 2)
  1440.                         fm_set_user_health( id, 110 )
  1441.                 if(knife[id] == 3)
  1442.                         fm_set_user_health( id, 115 ),set_user_footsteps(id, 1)
  1443.                 if(knife[id] == 4)
  1444.                         fm_set_user_health( id, 120 ),set_user_footsteps(id, 1)
  1445.                 if(knife[id] == 5)
  1446.                         fm_set_user_health( id, 125 ),set_user_footsteps(id, 1)
  1447.                 if(knife[id] == 6)
  1448.                         fm_set_user_health( id, 130 ),set_user_footsteps(id, 1)
  1449.                 if(knife[id] == 7)
  1450.                         fm_set_user_health( id, 135 ),set_user_footsteps(id, 1)
  1451.                 if(knife[id] == 8)
  1452.                         fm_set_user_health( id, 140 ),set_user_footsteps(id, 1)
  1453.                 if(knife[id] == 9)
  1454.                         fm_set_user_health( id, 145 ),set_user_footsteps(id, 1)
  1455.                 if(knife[id] == 10)
  1456.                         fm_set_user_health( id, 150 ),set_user_footsteps(id, 1)
  1457.                 if(knife[id] == 11)
  1458.                         fm_set_user_health( id, 155 ),set_user_footsteps(id, 1)
  1459.                 if(knife[id] == 12)
  1460.                         fm_set_user_health( id, 160 ),set_user_footsteps(id, 1)
  1461.                 if(knife[id] == 13)
  1462.                         fm_set_user_health( id, 165 ),set_user_footsteps(id, 1)
  1463.                 if(knife[id] == 14)
  1464.                         fm_set_user_health( id, 170 ),set_user_footsteps(id, 1)
  1465.                 if(knife[id] == 15)
  1466.                         fm_set_user_health( id, 175 ),set_user_footsteps(id, 1)
  1467.         }
  1468. }
  1469.  
  1470. public Remove_Invisibility(id){
  1471.         set_user_rendering(id)
  1472.         ColorChat(id,"^1[ ^3Extaza ^1] You looke now ^4Normal Terror^1.")
  1473. }
  1474. public Remove_Gravity(id){
  1475.         set_user_gravity(id, 1.0)
  1476.         ColorChat(id,"^1[ ^3Extaza ^1] Your ^4Gravity ^1is ^4Normal^1 now.")
  1477. }      
  1478. public Remove_Speed(id){
  1479.         set_user_maxspeed(id, 250.0);
  1480.         ColorChat(id,"^1[ ^3Extaza ^1] Your ^4Speed ^1is ^4Normal ^1now.");
  1481. }
  1482. public Remove_Godmode(id){
  1483.         set_user_godmode(id, 0)
  1484.         ColorChat(id,"^1[ ^3Extaza ^1] Now You Dont Have ^4Godmode^1.")
  1485. }
  1486. public Remove_Noclip(id){
  1487.         set_user_noclip(id, 0)
  1488.         ColorChat(id,"^1[ ^3Extaza ^1] Now You Dont Have ^4Noclip^1.")
  1489. }
  1490. public Remove_Camouflage(id){
  1491.         cs_reset_user_model(id)
  1492.         ColorChat(id,"^1[ ^3Extaza ^1] You Look Now ^4Normal Terror^1.")
  1493. }
  1494. public Remove_Footsteps(id)
  1495. {
  1496.         set_user_footsteps(id, 0)
  1497.         ColorChat(id,"^1[ ^3Extaza ^1] Now Hear your ^4footsteps^1.")
  1498. }
  1499.  
  1500. stock fm_set_user_health(index, health) {
  1501.         health > 0 ? set_pev(index, pev_health, float(health)) : dllfunc(DLLFunc_ClientKill, index)
  1502.         return 1
  1503. }
  1504. stock fm_get_user_money(index) {
  1505.         return get_pdata_int(index, FM_MONEY_OFFSET)
  1506. }
  1507. stock fm_set_user_money(index, money, flash = 1) {
  1508.         set_pdata_int(index, FM_MONEY_OFFSET, money);
  1509.        
  1510.         message_begin(MSG_ONE, get_user_msgid("Money"), _, index);
  1511.         write_long(money);
  1512.         write_byte(flash ? 1 : 0);
  1513.         message_end();
  1514.        
  1515. }
  1516. public plugin_natives(){
  1517.         register_native("get_user_points", "_get_user_point");
  1518.         register_native("set_user_points", "_set_user_point");
  1519. }
  1520.  
  1521. public _get_user_point(plugin, params){
  1522.         return player_points[get_param(1)];
  1523. }
  1524.  
  1525. public _set_user_point(plugin, params){
  1526.         new client = get_param(1);
  1527.         player_points[client] = max(0, get_param(2));
  1528.         SavePoints(client);
  1529.         return player_points[client];
  1530. }
  1531. stock remove_user_points( id, points ){
  1532.         return set_user_point( id, get_user_point( id ) - points );
  1533. }
  1534. public showpoints(id){
  1535.         set_dhudmessage(60, 190, 255, -1.0, 0.35, 2, 6.0, 3.0, 0.1, 3.0)
  1536.         show_dhudmessage( id, "[ Extaza ]^nYour Cash is : %i", player_points[id])
  1537. }
  1538.  
  1539. public Remove_Meseh(id)
  1540. {
  1541.         set_dhudmessage(42, 212, 255, -1.0, 0.25, 2, 6.0, 3.0, 0.1, 9.0 )
  1542.         show_dhudmessage( id, "Extaza Clubs JailBreak Club #1^nYour Cash is : %i" , player_points[id])
  1543. }
  1544.  
  1545. public plugin_cfg(){
  1546.         point_vault = nvault_open( "Points" );
  1547.         knife_vault = nvault_open( "Knife");
  1548.        
  1549.         if ( point_vault == INVALID_HANDLE )
  1550.                 set_fail_state( "Failed to Open Point Vault" );
  1551.         if( knife_vault == INVALID_HANDLE)
  1552.                 set_fail_state( "failed to open knife vault" )
  1553. }
  1554. public plugin_end(){
  1555.         nvault_close(point_vault);
  1556.         nvault_close(knife_vault);
  1557. }
  1558. public client_putinserver(id){
  1559.         new Name[33]
  1560.         get_user_name(id, Name, 32)
  1561.         ColorChat(0, "^1[ ^3Extaza ^1]^4 %s ^1(%i)^4 Connected ^1to the Server !", Name, player_points[id])
  1562.         set_task(3.0, "Remove_Meseh", id)
  1563.         can_pickup[id]=true
  1564.         LoadPoints(id)
  1565. }
  1566. public client_disconnect(id){
  1567.         new Name[33]
  1568.         get_user_name(id, Name, 32)
  1569.         ColorChat(0, "^1[ ^3Extaza ^1]^4 %s ^1(%i) ^4Disconnected ^1from the Server !", Name, player_points[id])
  1570.         can_pickup[id] = false
  1571.         SavePoints(id)
  1572. }
  1573. public EventDeathMsg(){
  1574.         new Float:velo[3]
  1575.         new killer = read_data(1);
  1576.         new victim = read_data(2);
  1577.         new headshot = read_data(3)
  1578.         new ikiller[33], ivictim[33];
  1579.         get_user_name(killer, ikiller, 32)
  1580.         get_user_name(victim, ivictim, 32)
  1581.        
  1582.         if(cs_get_user_team(killer) == CS_TEAM_T && cs_get_user_team(victim) == CS_TEAM_CT){
  1583.                 new killpoints = 150
  1584.                 new headshotpoints = 200
  1585.                 make_money(victim, velo)
  1586.                 if(headshot){
  1587.                         player_points[killer] += headshotpoints
  1588.                         ColorChat(0,"^1[ ^3Extaza ^1]^4 %s^1(%i) ^3Killed^4 %s^1(%i) With A ^3HeadShot And Gained ^4%i^3 Cash.", ikiller, player_points[killer], ivictim, player_points[victim], headshotpoints)
  1589.                 }
  1590.                 else{
  1591.                         player_points[killer] += killpoints
  1592.                         ColorChat(0,"^1[ ^3Extaza ^1]^4 %s^1(%i) ^3Killed^4 %s^1(%i) ^3And Gained ^4%i^3 Cash.", ikiller, player_points[killer], ivictim, player_points[victim], killpoints)
  1593.                 }
  1594.                 SavePoints(killer);
  1595.         }
  1596.         return PLUGIN_HANDLED;
  1597. }
  1598. public SavePoints(id){
  1599.         new authid[32], ip[33];
  1600.         get_user_ip(id, ip, 32, 1);
  1601.      get_user_authid(id,authid,31);
  1602.        
  1603.         new vaultkey[64], vaultdata[64];
  1604.         new vaultkey2[64], vaultdata2[64];
  1605.         format(vaultkey,63,"Points-%s",authid);
  1606.         format(vaultdata,63,"%d",player_points[id]);
  1607.        
  1608.         format(vaultkey2,63,"Knife-%s",authid);
  1609.         format(vaultdata2,63,"%d",knife[id]);
  1610.        
  1611.         nvault_set( knife_vault , vaultkey2 , vaultdata2 );
  1612.         nvault_set( point_vault , vaultkey , vaultdata );
  1613.        
  1614. }
  1615. public LoadPoints(id){
  1616.         new authid[32], vaultkey[64],vaultkey2[64], ip[33];
  1617.         get_user_ip(id, ip, 32, 1);
  1618.         get_user_authid(id,authid,31);
  1619.        
  1620.         formatex( vaultkey , charsmax( vaultkey ) , "Points-%s" , authid);
  1621.         formatex( vaultkey2 , charsmax( vaultkey2 ) , "Knife-%s" , authid);
  1622.        
  1623.         player_points[id] = nvault_get( point_vault, vaultkey );
  1624.         knife[id] = nvault_get( knife_vault, vaultkey2 );
  1625.        
  1626. }
  1627. public cmd_give_points(id,level,cid)
  1628. {
  1629.         if(!cmd_access(id,level,cid,3))
  1630.                 return PLUGIN_HANDLED;
  1631.        
  1632.         new target[32], amount[21], reason[21];
  1633.        
  1634.         read_argv(1, target, 31 );
  1635.         read_argv(2, amount, 20 );
  1636.         read_argv( 3, reason, 20 );
  1637.        
  1638.         new player = cmd_target( id, target, 8 );
  1639.        
  1640.         if( ! player )
  1641.                 return PLUGIN_HANDLED;
  1642.        
  1643.         new admin_name[32], player_name[32];
  1644.         get_user_name(id, admin_name, 31);
  1645.         get_user_name(player, player_name, 31);
  1646.        
  1647.         new pointnum = str_to_num(amount);
  1648.        
  1649.         player_points[player] += pointnum;
  1650.        
  1651.         switch(get_cvar_num ("amx_show_activity"))
  1652.         {
  1653.                 case 1: client_print( 0, print_chat, "%s ADMIN: gave %i points for %s.", pointnum, player_points );
  1654.                         case 2: client_print( 0, print_chat, "%s ADMIN %s: gave %i points for %s.", admin_name, pointnum, player_points );
  1655.                 }
  1656.        
  1657.         client_print(player, print_chat, "%s You received %i points.(Total: %d)", pointnum, player_points[player]);
  1658.        
  1659.         SavePoints( id )
  1660.        
  1661.         return PLUGIN_CONTINUE;
  1662. }
  1663. public cmd_take_points(id,level,cid)
  1664. {
  1665.         if(!cmd_access (id, level, cid, 3))
  1666.                 return PLUGIN_HANDLED;
  1667.        
  1668.         new target[32], amount[21], reason[21];
  1669.        
  1670.         read_argv( 1, target, 31 );
  1671.         read_argv( 2, amount, 20 );
  1672.         read_argv( 3, reason, 20 );
  1673.        
  1674.         new player = cmd_target( id, target, 8 );
  1675.        
  1676.         if(!player )
  1677.                 return PLUGIN_HANDLED;
  1678.        
  1679.         new admin_name[32], player_name[32];
  1680.         get_user_name( id, admin_name, 31 );
  1681.         get_user_name( player, player_name, 31 );
  1682.        
  1683.         new pointnum = str_to_num( amount );
  1684.        
  1685.         player_points[player] -= pointnum;
  1686.        
  1687.         switch(get_cvar_num("amx_show_activity"))
  1688.         {
  1689.                 case 1: client_print( 0, print_chat, "%s ADMIN: took %i points from %s.", pointnum, player_name );
  1690.                         case 2: client_print( 0, print_chat, "%s ADMIN %s: took %i points from %s.", admin_name, pointnum, player_name );
  1691.                 }
  1692.        
  1693.         client_print( player, print_chat, "You lost %i Cash. (Total: %d)", pointnum, player_points[player] );
  1694.        
  1695.         SavePoints( id )
  1696.        
  1697.         return PLUGIN_CONTINUE;
  1698. }
  1699. public cmdSend(client)
  1700. {
  1701.         static arg[35];
  1702.         read_argv(1, arg, sizeof(arg) - 1);
  1703.        
  1704.         new target = cmd_target(client, arg, CMDTARGET_NO_BOTS);
  1705.        
  1706.         if(!target)
  1707.         {
  1708.                 client_print(client, print_console, "[ Extaza ] Client has not found.")
  1709.                 } else {
  1710.                 read_argv(2, arg, sizeof(arg) - 1);
  1711.                
  1712.                 new aPoints = str_to_num(arg);
  1713.                 new name[32];
  1714.                 get_user_name(target, name, 31)
  1715.                 client_print(client, print_console, "[ Extaza ] Client has found( %s )", name)
  1716.                
  1717.                 if(aPoints > 0)
  1718.                         if(aPoints < player_points[client])
  1719.                 {
  1720.                         player_points[client] -= aPoints, SavePoints(client);
  1721.                        
  1722.                         player_points[target] += aPoints, SavePoints(target);
  1723.                        
  1724.                         new szName[32]
  1725.                         get_user_name(client, szName, 31);  
  1726.                        
  1727.                         ColorChat(0 , "^1[ ^3Extaza ^1]^4 %s^1 send to ^4%s ^3%d^1 Cash", szName, name ,aPoints)
  1728.                         // ColorChat(0, "^3[ ^1GameStyle ^3]^3 Client has found ( ^4%s ^3)^4 %s^3 send to ham ^4%d^3 Points", name, szName,aPoints)
  1729.                         client_print(client, print_console, "[ Extaza ] Client has found( %s ) and send to him %d Cash", name, aPoints)
  1730. }}}
  1731. public CmdShowInfo(id)
  1732. {
  1733.         static text[1120], len, title[64];
  1734.        
  1735.         len += format(text[len], charsmax(text) - len, "<html>");
  1736.        
  1737.         len += format(text[len], charsmax(text) - len, "<style type = ^"text/css^">");
  1738.        
  1739.         len += format(text[len], charsmax(text) - len, "body");
  1740.         len += format(text[len], charsmax(text) - len, "{");
  1741.         len += format(text[len], charsmax(text) - len,  "background-color:000000;");
  1742.         len += format(text[len], charsmax(text) - len, "font-family:Comic Sans MS;");
  1743.         len += format(text[len], charsmax(text) - len, "font-weight:bold;");
  1744.         len += format(text[len], charsmax(text) - len, "}");
  1745.        
  1746.         len += format(text[len], charsmax(text) - len, "h1");
  1747.         len += format(text[len], charsmax(text) - len, "{");
  1748.         len += format(text[len], charsmax(text) - len, "color:00FF00;");
  1749.         len += format(text[len], charsmax(text) - len, "font-size:large;");
  1750.         len += format(text[len], charsmax(text) - len, "}");
  1751.        
  1752.         len += format(text[len], charsmax(text) - len, "h2");
  1753.         len += format(text[len], charsmax(text) - len, "{");
  1754.         len += format(text[len], charsmax(text) - len, "color:#00FF00;");
  1755.         len += format(text[len], charsmax(text) - len, "font-size:medium;");
  1756.         len += format(text[len], charsmax(text) - len, "}");
  1757.        
  1758.         len += format(text[len], charsmax(text) - len, "h3");
  1759.         len += format(text[len], charsmax(text) - len, "{");
  1760.         len += format(text[len], charsmax(text) - len, "color:#0096FF;");
  1761.         len += format(text[len], charsmax(text) - len, "font-size:medium;");
  1762.         len += format(text[len], charsmax(text) - len, "}");
  1763.        
  1764.         len += format(text[len], charsmax(text) - len, "h4");
  1765.         len += format(text[len], charsmax(text) - len, "{");
  1766.         len += format(text[len], charsmax(text) - len, "color:#FAEBD7;");
  1767.         len += format(text[len], charsmax(text) - len, "font-size:medium;");
  1768.         len += format(text[len], charsmax(text) - len, "}");
  1769.        
  1770.         len += format(text[len], charsmax(text) - len, "h5");
  1771.         len += format(text[len], charsmax(text) - len, "{");
  1772.         len += format(text[len], charsmax(text) - len, "color:#F5FFFA;");
  1773.         len += format(text[len], charsmax(text) - len, "font-size:x-small;");
  1774.         len += format(text[len], charsmax(text) - len, "}");
  1775.        
  1776.         len += format(text[len], charsmax(text) - len, "</style>");
  1777.        
  1778.         len += format(text[len], charsmax(text) - len, "<body>");
  1779.         len += format(text[len], charsmax(text) - len, "<div align = ^"center^">");
  1780.        
  1781.         len += format(text[len], charsmax(text) - len, "<h1>");
  1782.         len += format(text[len], charsmax(text) - len, "JailBreak Points Shop v1.6");
  1783.         len += format(text[len], charsmax(text) - len, "</h1>");
  1784.        
  1785.         len += format(text[len], charsmax(text) - len, "<h4>");
  1786.         len += format(text[len], charsmax(text) - len, "by adrass");
  1787.         len += format(text[len], charsmax(text) - len, "</h4>");
  1788.        
  1789.         len += format(text[len], charsmax(text) - len, "<h2>");
  1790.         len += format(text[len], charsmax(text) - len, "Commands Shop:");
  1791.         len += format(text[len], charsmax(text) - len, "</h3>");
  1792.        
  1793.         len += format(text[len], charsmax(text) - len, "<h3>");
  1794.         len += format(text[len], charsmax(text) - len, "To Open The Shop Menu<br />");
  1795.         len += format(text[len], charsmax(text) - len, "<h5>");
  1796.         len += format(text[len], charsmax(text) - len, "Say - /shop , shop | Press - radio1, radio2, radio3 (Z,X,C).<br />");
  1797.         len += format(text[len], charsmax(text) - len, "<h3>");
  1798.         len += format(text[len], charsmax(text) - len, "To Show Your Points Say:<br />");
  1799.         len += format(text[len], charsmax(text) - len, "<h5>");
  1800.         len += format(text[len], charsmax(text) - len, "/points , points, /mypoints.<br />");
  1801.         len += format(text[len], charsmax(text) - len, "<h3>");
  1802.         len += format(text[len], charsmax(text) - len, "To Send Points to Player say in the Console: </I>");
  1803.         len += format(text[len], charsmax(text) - len, "<h5>");
  1804.         len += format(text[len], charsmax(text) - len, "send_points name 123 - If you did not understand: </I>");
  1805.         len += format(text[len], charsmax(text) - len, "<h5>");
  1806.         len += format(text[len], charsmax(text) - len, "send_points matan 10 (is send to matan 10 points).</I>");
  1807.         len += format(text[len], charsmax(text) - len, "</h5>");
  1808.        
  1809.         len += format(text[len], charsmax(text) - len, "<h2>");
  1810.         len += format(text[len], charsmax(text) - len, "In the Shop:");
  1811.         len += format(text[len], charsmax(text) - len, "</h2>");
  1812.        
  1813.         len += format(text[len], charsmax(text) - len, "<h4>");
  1814.         len += format(text[len], charsmax(text) - len, "<I>Grenades Menu</I>: Buy Grenades .<br />");
  1815.         len += format(text[len], charsmax(text) - len, "<I>Healths Menu</I>: Buy Healths.<br />");
  1816.         len += format(text[len], charsmax(text) - len, "<I>Weapons Menu</I>: Buy Weapons.<br />");
  1817.         len += format(text[len], charsmax(text) - len, "<I>Power Menu</I>: Buy Power.<br />");
  1818.         len += format(text[len], charsmax(text) - len, "<I>Other Menu</I>: Buy Other things.<br />");
  1819.         len += format(text[len], charsmax(text) - len, "<I>Knife Power Menu</I>: Buy Knife Power.<br />");
  1820.         len += format(text[len], charsmax(text) - len, "<I>Vip Menu</I>: Only for VIP.<br />");
  1821.         len += format(text[len], charsmax(text) - len, "</h4>");
  1822.        
  1823.         len += format(text[len], charsmax(text) - len, "<h2>");
  1824.         len += format(text[len], charsmax(text) - len, "if you find a bug reported to NeTo.<br />");
  1825.         len += format(text[len], charsmax(text) - len, "Press G to Drop Points.");
  1826.         len += format(text[len], charsmax(text) - len, "</h2>");
  1827.        
  1828.         len += format(text[len], charsmax(text) - len, "</div>");
  1829.         len += format(text[len], charsmax(text) - len, "</body>");
  1830.        
  1831.         len += format(text[len], charsmax(text) - len, "</html>");
  1832.        
  1833.         format(title, charsmax(title) - 1, "Tag - JailBreak Points Shop Help");
  1834.         show_motd(id, text, title);
  1835.        
  1836.         return PLUGIN_HANDLED;
  1837. }
  1838. public clcmd_playerpoints(id)
  1839. {
  1840.         if(cs_get_user_team(id) != CS_TEAM_T)
  1841.                 return PLUGIN_HANDLED
  1842.        
  1843.         new Menu, szNum[4], szName[32], szData[40]
  1844.        
  1845.         Menu = menu_create("\r[\w Extaza \r]\y Cash Menu", "playersmenu_handler")
  1846.        
  1847.         for(new i = 1; i <= g_MaxPlayers; i++)
  1848.         {
  1849.                 if(!is_user_connected(i)) continue
  1850.                
  1851.                 num_to_str(i, szNum, charsmax(szNum))
  1852.                
  1853.                 get_user_name(i, szName, charsmax(szName))
  1854.                
  1855.                 formatex(szData, charsmax(szData), "%s \d[ \y%d \d]", szName, player_points[i])
  1856.                
  1857.                 menu_additem(Menu, szData, szNum)
  1858.         }
  1859.        
  1860.         menu_display(id, Menu, 0)
  1861.        
  1862.         return PLUGIN_HANDLED
  1863. }
  1864.  
  1865. public playersmenu_handler(id, menu, item)
  1866. {
  1867.         menu_destroy(menu)
  1868.         return PLUGIN_HANDLED
  1869. }
  1870.  
  1871. stock ColorChat(const id, const input[], any:...){
  1872.         new count = 1, players[32]
  1873.         static msg[191]
  1874.         vformat(msg, 190, input, 3)
  1875.        
  1876.         replace_all(msg, 190, "!g", "^4") // Green Color
  1877.         replace_all(msg, 190, "!y", "^1") // Default Color
  1878.         replace_all(msg, 190, "!team", "^3") // Team Color
  1879.        
  1880.         if (id) players[0] = id
  1881.         else get_players(players, count, "ch")
  1882.         for (new i = 0; i < count; i++)
  1883.         {
  1884.                 if (is_user_connected(players[i]))
  1885.                 {
  1886.                         message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"), _, players[i])
  1887.                         write_byte(players[i])
  1888.                         write_string(msg)
  1889.                         message_end()
  1890. }}}
  1891.  
  1892. public cmd_autobuy(id) return PLUGIN_HANDLED
  1893.  
  1894. public DropCMD(id)
  1895. {
  1896.         if(is_user_alive(id)) {
  1897.                 new weapon,clip,ammo,Float:velo[3]
  1898.                 weapon = get_user_weapon(id,clip,ammo)
  1899.                 if(weapon == CSW_KNIFE) {
  1900.                         if(player_points[id] < 2)
  1901.                                 return PLUGIN_CONTINUE
  1902.                         player_points[id] -= 2
  1903.                         can_pickup[id] = false
  1904.                         set_task(0.3,"reset_pick",id)
  1905.                         new start_velo = 10 * 15
  1906.                         new end_velo = 10 * 50
  1907.                         velocity_by_aim(id,random_num(start_velo,end_velo),velo)
  1908.                         make_money(id,velo)
  1909.                 }
  1910.         }
  1911.         return nordeagleday ? PLUGIN_HANDLED : PLUGIN_CONTINUE
  1912. }
  1913. public make_money(id,Float:velo[]) {
  1914.         new Float:origin[3]
  1915.         new Float:angles[3]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement