Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //This is Plugin By +NeTo` (Matan) Dont change cradit ty, (credit for Creeps for the send points) .
- #include <amxmodx>
- #include <amxmisc>
- #include <cstrike>
- #include <nvault>
- #include <fakemeta>
- #include <engine>
- #include <fun>
- #include <hamsandwich>
- #include <dhudmessage>
- //#define MENU_ITEMS_PP 10
- #define MAXENTS 1500
- new g_MaxPlayers
- 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
- new const Cmd[][] = { "say /shop", "say shop", "radio1", "radio2", "radio3" }
- new bool:can_pickup[33], bool:nordeagleday, g_MsgScreenFade
- new moneybox[MAXENTS]
- new knife[33]
- new knife_vault
- new cost_pro, cost_community, cost_supervisor, cost_administrator, cost_boss, cost_extazasuperpower, cost_owners, cost_noykasharel
- public plugin_init()
- {
- register_plugin("JailBreakSho", "2.6", "+NeTo-`")
- for ( new i = 0; i < sizeof ( Cmd ); i ++ )
- register_clcmd ( Cmd [ i ], "shop_check" )
- register_clcmd("autobuy", "cmd_autobuy")
- register_clcmd("say /mycash", "showpoints")
- register_clcmd("say", "ClientCommandSay")
- register_clcmd("say /cash", "showpoints")
- register_clcmd("say", "HandleSay2")
- cost_10hp = register_cvar("hs_10hp_cost", "50")
- cost_20hp = register_cvar("hs_20hp_cost", "100")
- cost_30hp = register_cvar("hs_30hp_cost", "150")
- cost_40hp = register_cvar("hs_40hp_cost", "200")
- cost_50hp = register_cvar("hs_50hp_cost", "250")
- cost_he = register_cvar("cost_he", "1500")
- cost_flash = register_cvar("cost_flash", "1000")
- cost_smoke = register_cvar("cost_smoke", "800")
- cost_allgrenades = register_cvar("cost_allgrameds", "2900")
- cost_glock = register_cvar("cost_glock", "300")
- cost_usp = register_cvar("cost_usp", "400")
- cost_deagle = register_cvar("cost_deagle", "500")
- cost_awp = register_cvar("cost_awp", "600")
- cost_invisibility = register_cvar("cost_invisibility", "200")
- cost_gravity = register_cvar("cost_gravity", "250")
- cost_speed = register_cvar("cost_speed", "300")
- cost_godmode = register_cvar("cost_godmode", "350")
- cost_beginner = register_cvar("cost_beginner", "2000")
- cost_advanced = register_cvar("cost_advanced", "3000")
- cost_superadvanced = register_cvar("cost_superadvanced", "4000")
- cost_vatican = register_cvar("cost_vatican", "5000")
- cost_respect = register_cvar("cost_respect", "6000")
- cost_special = register_cvar("cost_special", "7000")
- cost_commander = register_cvar("cost_commander", "8000")
- cost_pro = register_cvar("cost_pro", "9000")
- cost_community = register_cvar("cost_community", "10000")
- cost_supervisor = register_cvar("cost_supervisor", "11000")
- cost_administrator = register_cvar("cost_administrator", "12000")
- cost_boss = register_cvar("cost_boss", "13000")
- cost_extazasuperpower = register_cvar("cost_extazasuperpower", "14000")
- cost_owners = register_cvar("cost_owners", "15000")
- cost_noykasharel = register_cvar("cost_noykasharel", "16000")
- cost_noclip = register_cvar("cost_noclip", "400")
- cost_camouflage = register_cvar("cost_camouflage", "450")
- cost_silentwalk = register_cvar("cost_silentwalk", "500")
- cost_change_teamct = register_cvar("cost_change_teamct", "670")
- cost_freeday = register_cvar("cost_freeday", "380")
- register_concmd("extaza_give_cash", "cmd_give_points", ADMIN_KICK, "<target> <amount>")
- register_concmd("extaza_take_cash", "cmd_take_points", ADMIN_KICK, "<target> <amount>")
- register_event("DeathMsg", "EventDeathMsg", "a");
- register_forward(FM_Touch,"player_Touch")
- register_clcmd("send_cash", "cmdSend", _, "<nick, #userid, authid> <points>");
- g_MaxPlayers = get_maxplayers()
- g_MsgScreenFade = get_user_msgid("ScreenFade")
- register_logevent("RoundStart", 2, "1=Round_Start")
- RegisterHam(Ham_Spawn, "player", "FwdHamPlayerSpawn", 1)
- register_event("CurWeapon", "Event_CurWeapon", "be","1=1")
- }
- public HandleSay2( id )
- {
- new szMessage[ 192 ];
- read_argv( 1, szMessage, sizeof( szMessage ) - 1 );
- new szMs[ 32 ], szPlayer[ 32 ], szNum[ 10 ];
- parse( szMessage, szMs, sizeof( szMs ) - 1, szPlayer, sizeof( szPlayer ) - 1, szNum, sizeof( szNum ) - 1 );
- if( equal( szMs, "/cash" ) || equal( szMs, "/cash" ) )
- {
- new target = cmd_target(target, szPlayer)
- if(target)
- {
- new Name[33];
- get_user_name(target, Name, charsmax(Name));
- new szName[33];
- get_user_name(id, szName, charsmax(szName));
- ColorChat(id, "^1[^3 Extaza^1 ]^4 %s^3 Has Have^4 %i^1 Cash.", Name, player_points[target]);
- return 1;
- }
- ColorChat(id, "^1[^3 Extaza^1 ]^3 You Have ^4%i^1 Cash.", player_points[id])
- return 1;
- }
- return PLUGIN_CONTINUE;
- }
- public plugin_precache(){
- precache_model( "models/Extaza/v_extazaknifeshop1.mdl" );
- precache_model( "models/Extaza/v_extazaknifesshop2.mdl" );
- precache_model( "models/Extaza/v_extazaknifeshop3.mdl" );
- precache_model( "models/Extaza/v_extazaknifeshop4.mdl" );
- precache_model( "models/Extaza/v_extazaknifeshop5.mdl" );
- precache_model( "models/Extaza/v_extazaknifeshop6.mdl" );
- precache_model( "models/Extaza/v_extazaknifeshop7.mdl" );
- precache_model( "models/Extaza/v_extazaknifeshop8.mdl" );
- precache_model( "models/Extaza/v_extazaknifeshop9.mdl" );
- precache_model( "models/Extaza/v_extazaknifeshop10.mdl" );
- precache_model( "models/Extaza/v_extazaknifeshop11.mdl" );
- precache_model( "models/Extaza/v_extazaknifeshop12.mdl" );
- precache_model( "models/Extaza/v_extazaknifeshop13.mdl" );
- precache_model( "models/Extaza/v_extazaknifeshop14.mdl" );
- precache_model( "models/Extaza/v_extazaknifeshop15.mdl" );
- }
- public RoundStart() {
- new money_ent
- while((money_ent=engfunc(EngFunc_FindEntityByString,money_ent,"classname","pdm_money")) != 0)
- engfunc(EngFunc_RemoveEntity,money_ent)
- }
- public reset_pick(id) can_pickup[id] = true
- public shop_check(id){
- if (cs_get_user_team(id) == CS_TEAM_T)
- {
- showmenu(id)
- return PLUGIN_HANDLED
- }
- else if(get_user_team(id) != 1)
- {
- ColorChat(id,"^1[^3 Extaza^1 ]^4 Only Prisoner cant open the^3 Shop Menu ^4Your Cash is : ^3%i ", player_points[id])
- return PLUGIN_HANDLED
- }
- return PLUGIN_HANDLED
- }
- public ClientCommandSay(id) {
- new szMsg[ 32 ]
- read_args( szMsg, charsmax( szMsg ) );
- remove_quotes( szMsg );
- new arg[ 32 ], arg2[ 32 ]
- parse( szMsg, arg, charsmax( arg ), arg2, charsmax( arg2 ));
- if(equal(arg, "/gamble") || equal(arg, "!gamble"))
- {
- if(!is_str_num(arg2))
- ColorChat(id, "^1[^3 Extaza^1 ] this is not number")
- else if(arg2[0] == '-')
- ColorChat(id, "^1[^3 Extaza^1 ] you can not ^4write -")
- else if(player_points[id] < str_to_num(arg2))
- ColorChat(id, "^1[^3 Extaza^1 ]^1 you no ^3have ^4%d ^1Cash",str_to_num(arg2))
- else if(player_points[id] >= str_to_num(arg2))
- {
- new num = str_to_num( arg2 )
- if( num < 300 )
- {
- client_print( id, print_chat, "You must gamble at least on 300 cash !" )
- return 1;
- }
- new szName[32]
- get_user_name( id, szName, charsmax( szName ) );
- switch(random_num(1,100))
- {
- case 1..65: {
- ColorChat(id, "^1[^3 Extaza^1 ]^4 %s ^1is ^3gambled ^1on ^4%d ^1and ^4Lost",szName,str_to_num(arg2))
- player_points[id] -= str_to_num(arg2)
- }
- case 66..100: {
- ColorChat(id, "^1[^3 Extaza^1 ]^4 %s ^1is ^3gambled ^1on ^4%d ^1and ^4Win",szName,str_to_num(arg2))
- player_points[id] += str_to_num(arg2)
- }
- }
- }
- }
- }
- public showmenu(id){
- new text[256]
- formatex(text, charsmax(text), "\r[ \wExtaza \r]\y JailBreak Shop Menu ^n\yYour Cash \w:\r %d",player_points[id])
- new menu = menu_create(text, "show_menu1")
- formatex(text,255, "\wGrenades\y Menu")
- menu_additem(menu, text, "1")
- formatex(text, 255, "\wHealth\y Menu")
- menu_additem(menu, text, "2")
- formatex(text, 255, "\wWeapon\y Menu")
- menu_additem(menu, text, "3")
- formatex(text, 255, "\wPowers\y Menu")
- menu_additem(menu, text, "4")
- formatex(text, 255, "\wOther\y Menu")
- menu_additem(menu, text, "5")
- formatex(text, 255, "\wKnifes\y Menu")
- menu_additem(menu, text, "6")
- formatex(text, 255, "\wCash\y Menu")
- menu_additem(menu, text, "7")
- menu_setprop(menu, MPROP_EXIT, MEXIT_ALL );
- menu_setprop(menu, MPROP_NUMBER_COLOR, "\d");
- menu_display(id, menu, 0)
- return PLUGIN_HANDLED
- }
- public show_menu1(id, menu, item){
- if (item == MENU_EXIT){
- menu_destroy(menu)
- return PLUGIN_HANDLED
- }
- new Data[6];
- new Access;
- new Callback;
- new Name[64];
- menu_item_getinfo(menu, item, Access, Data, 5, Name, 63, Callback)
- new Key = str_to_num(Data);
- switch (Key){
- case 1: show_menu_he(id)
- case 2: show_menu_buy_hp(id)
- case 3: show_menu_weapon(id)
- case 4: show_menu_power(id)
- case 5: show_menu_other(id)
- case 6: show_menu_knife(id)
- case 7: clcmd_playerpoints(id)
- }
- return PLUGIN_HANDLED
- }
- public show_menu_he(id){
- new text[256]
- formatex(text, charsmax(text), "\r[ \wExtaza \r]\y JailBreak Shop Menu \rYour Cash \w:\w %d^n\yGrenades Menu",player_points[id])
- new menu = menu_create(text, "handle_show_menu_he")
- formatex(text, 199, "\wHE Grenade -\r [\w%d\y Cash\r]", get_pcvar_num(cost_he))
- menu_additem(menu, text, "1")
- formatex(text, 199, "\wFlash Grenade -\r [\w%d\y Cash\r]", get_pcvar_num(cost_flash))
- menu_additem(menu, text, "2")
- formatex(text, 199, "\wSmoke Grenade -\r [\w%d\y Cash\r]", get_pcvar_num(cost_smoke))
- menu_additem(menu, text, "3")
- formatex(text, 199, "\wAll Grenades -\r [\w%d\y Cash\r]", get_pcvar_num(cost_allgrenades))
- menu_additem(menu, text, "4")
- menu_setprop(menu, MPROP_EXIT, MEXIT_ALL);
- menu_setprop(menu, MPROP_NEXTNAME, "Next");
- menu_display(id, menu, 0)
- }
- public handle_show_menu_he(id, menu, item){
- if (item == MENU_EXIT){
- menu_destroy(menu)
- return PLUGIN_HANDLED
- }
- new Data[6];
- new Access;
- new Callback;
- new Name[64];
- menu_item_getinfo(menu, item, Access, Data, 5, Name, 63, Callback)
- new Key = str_to_num(Data);
- switch (Key){
- case 1:{
- if (!is_user_alive(id)){
- ColorChat(id,"^1[ ^3Extaza ^1] You must be Alive to buy ^3this item.")
- return PLUGIN_HANDLED
- }
- new cost = get_pcvar_num(cost_he);
- if (player_points[id] < cost){
- ColorChat(id,"^1[ ^3Extaza ^1] You need more^1 (^4 %i ^1) ^4Cash ^1to buy ^3this item .", cost - player_points[id])
- }
- else{
- new Name[33]
- get_user_name(id, Name, 32)
- player_points[id] -= cost
- ColorChat(id,"^1[^3 Extaza^1 ]^4 %s^1 Buy^4 HE Grenade",Name)
- cs_set_weapon_ammo( give_item(id, "weapon_hegrenade"), 1);
- cs_set_user_bpammo(id, CSW_HEGRENADE, (cs_get_user_bpammo(id, CSW_HEGRENADE) + 0));
- SavePoints(id)
- }
- }
- case 2:{
- if (!is_user_alive(id)){
- ColorChat(id,"^1[ ^3Extaza ^1] You must be Alive to buy ^3this item.")
- return PLUGIN_HANDLED
- }
- new cost = get_pcvar_num(cost_flash);
- if (player_points[id] < cost){
- ColorChat(id,"^1[ ^3Extaza ^1] You need more^1 (^4 %i ^1) ^4Cash ^1to buy ^3this item .", cost - player_points[id])
- }
- else{
- new Name[33]
- get_user_name(id, Name, 32)
- player_points[id] -= cost
- ColorChat(id,"^1[^3 Extaza^1 ]^4 %s^1 Buy^4 Flash Granede",Name)
- cs_set_weapon_ammo( give_item(id, "weapon_flashbang"), 1);
- cs_set_user_bpammo(id, CSW_FLASHBANG, (cs_get_user_bpammo(id, CSW_FLASHBANG) + 0));
- SavePoints(id)
- }
- }
- case 3:{
- if (!is_user_alive(id)) {
- ColorChat(id,"^1[ ^3Extaza ^1] You must be Alive to buy ^3this item.")
- return PLUGIN_HANDLED
- }
- new cost = get_pcvar_num(cost_smoke);
- if (player_points[id] < cost){
- ColorChat(id,"^1[ ^3Extaza ^1] You need more^1 (^4 %i ^1) ^4Cash ^1to buy ^3this item .", cost - player_points[id])
- }
- else{
- new Name[33]
- get_user_name(id, Name, 32)
- player_points[id] -= cost
- ColorChat(id,"^1[ ^3Extaza ^1]^4 %s ^1Buy^4 Smoke Graneds",Name)
- give_item(id,"weapon_smokegrenade")
- SavePoints(id)
- }
- }
- case 4:{
- if (!is_user_alive(id)){
- ColorChat(id,"^1[ ^3Extaza ^1] You must be Alive to buy ^3this item.")
- return PLUGIN_HANDLED
- }
- new cost = get_pcvar_num(cost_allgrenades);
- if (player_points[id] < cost){
- ColorChat(id,"^1[ ^3Extaza ^1] You need more^1 (^4 %i ^1) ^4Cash ^1to buy ^3this item .", cost - player_points[id])
- }
- else{
- new Name[33]
- get_user_name(id, Name, 32)
- player_points[id] -= cost
- ColorChat(id,"^1[ ^3Extaza ^1]^4 %s ^1Buy ^4 All Graneds",Name)
- cs_set_weapon_ammo( give_item(id, "weapon_hegrenade"), 1);
- cs_set_user_bpammo(id, CSW_HEGRENADE, (cs_get_user_bpammo(id, CSW_HEGRENADE) + 0));
- cs_set_weapon_ammo( give_item(id, "weapon_flashbang"), 1);
- cs_set_user_bpammo(id, CSW_FLASHBANG, (cs_get_user_bpammo(id, CSW_FLASHBANG) + 0));
- give_item(id,"weapon_smokegrenade")
- SavePoints(id)
- }
- }
- }
- menu_destroy(menu)
- return PLUGIN_HANDLED
- }
- public show_menu_buy_hp(id){
- new text[256]
- formatex(text, charsmax(text), "\r[ \wExtaza \r]\y JailBreak Shop Menu \rYour Cash \w:\w %d^n\yHealth Menu",player_points[id])
- new menu = menu_create(text, "handle_buy_hp_menu")
- formatex(health10, 199, "\w10 Health -\r [\w%d\y Cash\r]", get_pcvar_num(cost_10hp))
- menu_additem(menu, health10, "1")
- formatex(health20, 199, "\w20 Health -\r [\w%d\y Cash\r]", get_pcvar_num(cost_20hp))
- menu_additem(menu, health20, "2")
- formatex(health30, 199, "\w30 Health -\r [\w%d\y Cash\r]", get_pcvar_num(cost_30hp))
- menu_additem(menu, health30, "3")
- formatex(health40, 199, "\w40 Health -\r [\w%d\y Cash\r]", get_pcvar_num(cost_40hp))
- menu_additem(menu, health40, "4")
- formatex(health50, 199, "\w50 Health -\r [\w%d\y Cash\r]", get_pcvar_num(cost_50hp))
- menu_additem(menu, health50, "5")
- menu_setprop(menu, MPROP_EXIT, MEXIT_ALL)
- menu_display(id, menu, 0)
- }
- public handle_buy_hp_menu(id, menu, item){
- if (item == MENU_EXIT){
- menu_destroy(menu)
- return PLUGIN_HANDLED
- }
- new Data[6];
- new Access;
- new Callback;
- new Name[64];
- menu_item_getinfo(menu, item, Access, Data, 5, Name, 63, Callback)
- new Key = str_to_num(Data);
- switch (Key)
- {
- case 1:
- {
- if (!is_user_alive(id)){
- ColorChat(id,"^1[ ^3Extaza ^1] You must be Alive to buy ^3this item.")
- return PLUGIN_HANDLED
- }
- new cost = get_pcvar_num(cost_10hp);
- new Health = get_user_health(id)
- if (player_points[id] < cost){
- ColorChat(id,"^1[ ^3Extaza ^1] You need more^1 (^4 %i ^1) ^4Cash ^1to buy ^3this item .", cost - player_points[id])
- }
- else{
- new Name[33]
- get_user_name(id, Name, 32)
- player_points[id] -= cost
- ColorChat(id,"^1[ ^3Extaza ^1]^4 %s ^1Buy^4 10 ^1Health",Name)
- fm_set_user_health (id, Health+10)
- SavePoints(id)
- }
- }
- case 2:{
- if (!is_user_alive(id)){
- ColorChat(id,"^^1[ ^3Extaza ^1] You must be Alive to buy ^3this item.")
- return PLUGIN_HANDLED
- }
- new cost = get_pcvar_num(cost_20hp);
- new Health = get_user_health(id)
- if (player_points[id] < cost){
- ColorChat(id,"^1[ ^3Extaza ^1] You need more^1 (^4 %i ^1) ^4Cash ^1to buy ^3this item .", cost - player_points[id])
- }
- else{
- new Name[33]
- get_user_name(id, Name, 32)
- player_points[id] -= cost
- ColorChat(id,"^1[ ^3Extaza ^1]^4 %s ^1Buy^4 20 ^1Health",Name)
- fm_set_user_health (id, Health+20)
- SavePoints(id)
- }
- }
- case 3:
- {
- if (!is_user_alive(id)){
- ColorChat(id,"^1[ ^3Extaza ^1] You must be Alive to buy ^3this item.")
- return PLUGIN_HANDLED
- }
- new cost = get_pcvar_num(cost_30hp);
- new Health = get_user_health(id)
- if (player_points[id] < cost){
- ColorChat(id,"^1[ ^3Extaza ^1] You need more^1 (^4 %i ^1) ^4Cash ^1to buy ^3this item .", cost - player_points[id])
- }
- else{
- new Name[33]
- get_user_name(id, Name, 32)
- player_points[id] -= cost
- ColorChat(id,"^1[ ^3Extaza ^1]^4 %s ^1Buy^4 30 ^1Health",Name)
- fm_set_user_health (id, Health+30)
- SavePoints(id)
- }
- }
- case 4:
- {
- if (!is_user_alive(id)){
- ColorChat(id,"^1[ ^3Extaza ^1] You must be Alive to buy ^3this item.")
- return PLUGIN_HANDLED
- }
- new cost = get_pcvar_num(cost_40hp);
- new Health = get_user_health(id)
- if (player_points[id] < cost){
- ColorChat(id,"^1[ ^3Extaza ^1] You need more^1 (^4 %i ^1) ^4Cash ^1to buy ^3this item .", cost - player_points[id])
- }
- else{
- new Name[33]
- get_user_name(id, Name, 32)
- player_points[id] -= cost
- ColorChat(id,"^1[ ^3Extaza ^1]^4 %s ^1Buy^4 40 ^1Health",Name)
- fm_set_user_health (id, Health+40)
- SavePoints(id)
- }
- }
- case 5:
- {
- if (!is_user_alive(id)){
- ColorChat(id,"^1[ ^3Extaza ^1] You must be Alive to buy ^3this item.")
- return PLUGIN_HANDLED
- }
- new cost = get_pcvar_num(cost_50hp);
- new Health = get_user_health(id)
- if (player_points[id] < cost){
- ColorChat(id,"^1[ ^3Extaza ^1] You need more^1 (^4 %i ^1) ^4Cash ^1to buy ^3this item .", cost - player_points[id])
- }
- else{
- new Name[33]
- get_user_name(id, Name, 32)
- player_points[id] -= cost
- ColorChat(id,"^1[ ^3Extaza ^1]^4 %s ^1Buy^4 50 ^1Health",Name)
- fm_set_user_health (id, Health+50)
- SavePoints(id)
- }
- }
- }
- menu_destroy(menu)
- return PLUGIN_HANDLED
- }
- public show_menu_weapon(id)
- {
- new text[256]
- formatex(text, charsmax(text), "\r[ \wExtaza \r]\y JailBreak Shop Menu \rYour Cash \w:\w %d^n\yWeapons Menu ",player_points[id])
- new menu = menu_create(text, "handle_show_menu_weapon")
- formatex(text, 199, "\wGlock\d 3\y Bullets -\r [\w%d\y Cash\r]", get_pcvar_num(cost_glock))
- menu_additem(menu, text, "1")
- formatex(text, 199, "\wUsp\d 2\y Bullets -\r [\w%d\y Cash\r]", get_pcvar_num(cost_usp))
- menu_additem(menu, text, "2")
- formatex(text, 199, "\wDeagle\d 2\y Bullets -\r [\w%d\y Cash\r]", get_pcvar_num(cost_deagle))
- menu_additem(menu, text, "3")
- formatex(text, 199, "\wAwp\d 1\y Bullets -\r [\w%d\y Cash\r]", get_pcvar_num(cost_awp))
- menu_additem(menu, text, "4")
- menu_setprop(menu, MPROP_EXIT, MEXIT_ALL)
- menu_display(id, menu, 0)
- }
- public handle_show_menu_weapon(id, menu, item)
- {
- if (item == MENU_EXIT)
- {
- menu_destroy(menu)
- return PLUGIN_HANDLED
- }
- new Data[6];
- new Access;
- new Callback;
- new Name[64];
- menu_item_getinfo(menu, item, Access, Data, 5, Name, 63, Callback)
- new Key = str_to_num(Data);
- switch (Key)
- {
- case 1:
- {
- if (!is_user_alive(id)){
- ColorChat(id,"^1[ ^3Extaza ^1] You must be Alive to buy ^3this item.")
- return PLUGIN_HANDLED
- }
- new cost = get_pcvar_num(cost_glock);
- if (player_points[id] < cost){
- ColorChat(id,"^1[ ^3Extaza ^1] You need more^1 (^4 %i ^1) ^4Cash ^1to buy ^3this item .", cost - player_points[id])
- }
- else{
- player_points[id] -= cost
- ColorChat(id,"^1[ ^3Extaza ^1]^4 ^1You purchased^4 Glock 3 Bullets")
- cs_set_weapon_ammo(give_item(id, "weapon_glock18"), 3);
- SavePoints(id)
- }
- }
- case 2:
- {
- if (!is_user_alive(id))
- {
- ColorChat(id,"^1[ ^3Extaza ^1] You must be Alive to buy ^3this item.")
- return PLUGIN_HANDLED
- }
- new cost = get_pcvar_num(cost_usp);
- if (player_points[id] < cost){
- ColorChat(id,"^1[ ^3Extaza ^1] You need more^1 (^4 %i ^1) ^4Cash ^1to buy ^3this item .", cost - player_points[id])
- }
- else{
- player_points[id] -= cost
- ColorChat(id,"^1[ ^3Extaza ^1] You purchased^4 Usp 2 Bullets")
- cs_set_weapon_ammo(give_item(id, "weapon_usp"), 2);
- SavePoints(id)
- }
- }
- case 3:
- {
- if (!is_user_alive(id)){
- ColorChat(id,"^1[ ^3Extaza ^1] You must be Alive to buy ^3this item.")
- return PLUGIN_HANDLED
- }
- new cost = get_pcvar_num(cost_deagle);
- if (player_points[id] < cost){
- ColorChat(id,"^1[ ^3Extaza ^1] You need more^1 (^4 %i ^1) ^4Cash ^1to buy ^3this item .", cost - player_points[id])
- }
- else{
- player_points[id] -= cost
- ColorChat(id,"^1[ ^3Extaza ^1] You purchased^4 Deagle 2 Bullets")
- cs_set_weapon_ammo(give_item(id, "weapon_deagle"), 2);
- SavePoints(id)
- }
- }
- case 4:
- {
- if (!is_user_alive(id)){
- ColorChat(id,"^1[ ^3Extaza ^1] You must be Alive to buy ^3this item.")
- return PLUGIN_HANDLED
- }
- new cost = get_pcvar_num(cost_awp);
- if (player_points[id] < cost){
- ColorChat(id,"^1[ ^3Extaza ^1] You need more^1 (^4 %i ^1) ^4Cash ^1to buy ^3this item .", cost - player_points[id])
- }
- else{
- player_points[id] -= cost
- ColorChat(id,"^1[ ^3Extaza ^1] You purchased^4 Awp 1 Bullets")
- cs_set_weapon_ammo(give_item(id, "weapon_awp"), 1);
- SavePoints(id)
- }
- }
- }
- menu_destroy(menu)
- return PLUGIN_HANDLED
- }
- public show_menu_power(id){
- new text[256]
- formatex(text, charsmax(text), "\r[ \wExtaza \r]\y JailBreak Shop Menu \rYour Cash \w:\w %d^n\yPowers Menu ",player_points[id])
- new menu = menu_create(text, "handle_show_menu_power")
- formatex(text, 199, "\wInvisibility\d 20\y Secounds -\r [\w%d\y Cash\r]", get_pcvar_num(cost_invisibility))
- menu_additem(menu, text, "1")
- formatex(text, 199, "\wGravity\d 20\y Secounds -\r [\w%d\y Cash\r]", get_pcvar_num(cost_gravity))
- menu_additem(menu, text, "2")
- formatex(text, 199, "\wSpeed\d 20\y Secounds -\r [\w%d\y Cash\r]", get_pcvar_num(cost_speed))
- menu_additem(menu, text, "3")
- formatex(text, 199, "\wGodmode\d 5\y Secounds -\r [\w%d\y Cash\r]", get_pcvar_num(cost_godmode))
- menu_additem(menu, text, "4")
- formatex(text, 199, "\wNoclip\d 10\y Secounds -\r [\w%d\y Cash\r]", get_pcvar_num(cost_noclip))
- menu_additem(menu, text, "5")
- formatex(text, 199, "\wCamouflage\d 20\y Secounds -\r [\w%d\y Cash\r]", get_pcvar_num(cost_camouflage))
- menu_additem(menu, text, "6")
- formatex(text, 199, "\wSilentWalk\d 20\y Secounds -\r [\w%d\y Cash\r]", get_pcvar_num(cost_silentwalk))
- menu_additem(menu, text, "7")
- menu_setprop(menu, MPROP_EXIT, MEXIT_ALL)
- menu_display(id, menu, 0)
- }
- public handle_show_menu_power(id, menu, item){
- if (item == MENU_EXIT){
- menu_destroy(menu)
- return PLUGIN_HANDLED
- }
- new Data[6];
- new Access;
- new Callback;
- new Name[64];
- menu_item_getinfo(menu, item, Access, Data, 5, Name, 63, Callback)
- new Key = str_to_num(Data);
- switch (Key){
- case 1:{
- if (!is_user_alive(id)){
- ColorChat(id,"^1[ ^3Extaza ^1] You must be Alive to buy ^3this item.")
- return PLUGIN_HANDLED
- }
- new cost = get_pcvar_num(cost_invisibility);
- if (player_points[id] < cost){
- ColorChat(id,"^1[ ^3Extaza ^1] You need more^1 (^4 %i ^1) ^4Cash ^1to buy ^3this item .", cost - player_points[id])
- }
- else{
- player_points[id] -= cost
- ColorChat(id, "^1[ ^3Extaza ^1] You purchased^4 Invisibility 20 Secounds")
- set_user_rendering(id, kRenderFxGlowShell, 0, 0, 0, kRenderTransAlpha, 0);
- set_task(20.0, "Remove_Invisibility", id);
- SavePoints(id)
- }
- }
- case 2:{
- if (!is_user_alive(id)){
- ColorChat(id,"^1[ ^3Extaza ^1] You must be Alive to buy ^3this item.")
- return PLUGIN_HANDLED
- }
- new cost = get_pcvar_num(cost_gravity);
- if (player_points[id] < cost){
- ColorChat(id,"^1[ ^3Extaza ^1] You need more^1 (^4 %i ^1) ^4Cash ^1to buy ^3this item .", cost - player_points[id])
- }
- else{
- player_points[id] -= cost
- ColorChat(id,"^1[ ^3Extaza ^1] You purchased^4 Gravity 20 Secounds")
- set_user_gravity(id, 0.40);
- set_task(20.0, "Remove_Gravity", id);
- SavePoints(id)
- }
- }
- case 3:
- {
- if (!is_user_alive(id)){
- ColorChat(id,"^1[ ^3Extaza ^1] You must be Alive to buy ^3this item.")
- return PLUGIN_HANDLED
- }
- new cost = get_pcvar_num(cost_speed);
- if (player_points[id] < cost){
- ColorChat(id,"^1[ ^3Extaza ^1] You need more^1 (^4 %i ^1) ^4Cash ^1to buy ^3this item .", cost - player_points[id])
- }
- else
- {
- player_points[id] -= cost
- ColorChat(id,"^1[ ^3Extaza ^1] You purchased^4 Speed 20 Secounds")
- set_user_maxspeed(id, 900.0)
- set_task(15.0, "Remove_Speed", id)
- }
- }
- case 4:
- {
- if (!is_user_alive(id)){
- ColorChat(id,"^1[ ^3Extaza ^1] You must be Alive to buy ^3this item.")
- return PLUGIN_HANDLED
- }
- new cost = get_pcvar_num(cost_godmode);
- if (player_points[id] < cost){
- ColorChat(id,"^1[ ^3Extaza ^1] You need more^1 (^4 %i ^1) ^4Cash ^1to buy ^3this item .", cost - player_points[id])
- }
- else{
- player_points[id] -= cost
- ColorChat(id,"^1[ ^3Extaza ^1] You purchased^4 Godmode 5 Secounds")
- set_user_godmode(id, 1)
- set_task(5.0, "Remove_Godmode", id)
- }
- }
- case 5:{
- if (!is_user_alive(id))
- {
- ColorChat(id,"^1[ ^3Extaza ^1] You must be Alive to buy ^3this item.")
- return PLUGIN_HANDLED
- }
- new cost = get_pcvar_num(cost_noclip);
- if (player_points[id] < cost){
- ColorChat(id,"^1[ ^3Extaza ^1] You need more^1 (^4 %i ^1) ^4Cash ^1to buy ^3this item .", cost - player_points[id])
- }
- else{
- player_points[id] -= cost
- ColorChat(id,"^1[ ^3Extaza ^1] You purchased^4 Noclip 10 Secounds")
- set_user_noclip(id, 1)
- set_task(10.0, "Remove_Noclip", id)
- }
- }
- case 6:{
- if (!is_user_alive(id))
- {
- ColorChat(id,"^1[ ^3Extaza ^1] You must be Alive to buy ^3this item.")
- return PLUGIN_HANDLED
- }
- new cost = get_pcvar_num(cost_camouflage);
- if (player_points[id] < cost){
- ColorChat(id,"^1[ ^3Extaza ^1] You need more^1 (^4 %i ^1) ^4Cash ^1to buy ^3this item .", cost - player_points[id])
- }
- else{
- player_points[id] -= cost
- ColorChat(id,"^1[ ^3Extaza ^1] You purchased^4 Camouflage 20 Secounds")
- {
- if ( cs_get_user_team(id) == CS_TEAM_T )
- {
- cs_set_user_model(id, "urban")
- }
- set_task(20.0, "Remove_Camouflage", id)
- }
- }
- }
- case 7:
- {
- if (!is_user_alive(id))
- {
- ColorChat(id,"^1[ ^3Extaza ^1] You must be Alive to buy ^3this item.")
- return PLUGIN_HANDLED
- }
- new cost = get_pcvar_num(cost_silentwalk);
- if (player_points[id] < cost){
- ColorChat(id,"^1[ ^3Extaza ^1] You need more^1 (^4 %i ^1) ^4Cash ^1to buy ^3this item .", cost - player_points[id])
- }
- else{
- player_points[id] -= cost
- ColorChat(id,"^1[ ^3Extaza ^1] You purchased^4 SilentWalk 20 Secounds")
- set_user_footsteps(id, 1)
- set_task(20.0, "Remove_Footsteps", id)
- }
- }
- }
- menu_destroy(menu)
- return PLUGIN_HANDLED
- }
- public show_menu_other(id)
- {
- new text[256]
- formatex(text, charsmax(text), "\r[ \wExtaza \r]\y JailBreak Shop Menu \rYour Cash \w:\w %d^n\yOthers Menu",player_points[id])
- new menu = menu_create(text, "handle_show_menu_other")
- formatex(text, 199, "\wChange Team -\r [\w%d\y Cash\r]", get_pcvar_num(cost_change_teamct))
- menu_additem(menu, text, "1")
- formatex(text, 199, "\wFreeday -\r [\w%d\y Cash\r]", get_pcvar_num(cost_freeday))
- menu_additem(menu, text, "2")
- menu_setprop(menu, MPROP_EXIT, MEXIT_ALL)
- menu_display(id, menu, 0)
- }
- public handle_show_menu_other(id, menu, item){
- if (item == MENU_EXIT){
- menu_destroy(menu)
- return PLUGIN_HANDLED
- }
- new Data[6];
- new Access;
- new Callback;
- new Name[64];
- menu_item_getinfo(menu, item, Access, Data, 5, Name, 63, Callback)
- new Key = str_to_num(Data);
- switch (Key){
- case 1:{
- if (!is_user_alive(id))
- {
- ColorChat(id,"^1[ ^3Extaza ^1] You must be Alive to buy ^3this item.")
- return PLUGIN_HANDLED
- }
- new cost = get_pcvar_num(cost_change_teamct)
- if (player_points[id] < cost){
- ColorChat(id,"^1[ ^3Extaza ^1] You need more^1 (^4 %i ^1) ^4Cash ^1to buy ^3this item .", cost - player_points[id])
- }
- else{
- new Name[33]
- get_user_name(id, Name, 32)
- player_points[id] -= cost
- ColorChat(0,"^1[ ^3Extaza ^1]^4 %s ^1Buy^4 ^" ^3Change Team ^4^"", Name)
- cs_set_user_team(id,CS_TEAM_CT)
- ExecuteHam(Ham_CS_RoundRespawn, id)
- }
- }
- case 2:{
- if (!is_user_alive(id))
- {
- ColorChat(id,"^1[ ^3Extaza ^1] You must be Alive to buy ^3this item.")
- return PLUGIN_HANDLED
- }
- new cost = get_pcvar_num(cost_freeday)
- if (player_points[id] < cost){
- ColorChat(id,"^1[ ^3Extaza ^1] You need more^1 (^4 %i ^1) ^4Cash ^1to buy ^3this item .", cost - player_points[id])
- }
- else{
- new Name[33]
- get_user_name(id, Name, 32)
- player_points[id] -= cost
- ColorChat(0,"^1[ ^3Extaza ^1]^4 %s ^1Buy^4 ^" ^3Freeday ^4^"", Name)
- set_user_rendering(id, kRenderFxGlowShell, random_num(0, 225), random_num(0, 225), random_num(0, 225), kRenderNormal, 255)
- }
- }
- }
- menu_destroy(menu)
- return PLUGIN_HANDLED
- }
- public show_menu_knife(id)
- {
- new text[256]
- formatex(text, charsmax(text), "\r[ \wExtaza \r]\y JailBreak Shop Menu \rYour Cash \w:\w %d^n\yKnifes Menu ",player_points[id])
- new menu = menu_create(text, "handle_show_menu_knifes")
- formatex(text, 199, "\wBeginner Knife -\r [\w%d\y Cash\r]", get_pcvar_num(cost_beginner))
- menu_additem(menu, text, "1")
- formatex(text, 199, "\wAdvanced Knife -\r [\w%d\y Cash\r]", get_pcvar_num(cost_advanced))
- menu_additem(menu, text, "2")
- formatex(text, 199, "\wSuperAdvanced Knife -\r [\w%d\y Cash\r]", get_pcvar_num(cost_superadvanced))
- menu_additem(menu, text, "3")
- formatex(text, 199, "\wVatican Knife -\r [\w%d\y Cash\r]", get_pcvar_num(cost_vatican))
- menu_additem(menu, text, "4")
- formatex(text, 199, "\wRespect Knife -\r [\w%d\y Cash\r]", get_pcvar_num(cost_respect))
- menu_additem(menu, text, "5")
- formatex(text, 199, "\wSpecial Knife -\r [\w%d\y Cash\r]", get_pcvar_num(cost_special))
- menu_additem(menu, text, "6")
- formatex(text, 199, "\wCommander Knife -\r [\w%d\y Cash\r]", get_pcvar_num(cost_commander))
- menu_additem(menu, text, "7")
- formatex(text, 199, "\wPro Knife -\r [\w%d\y Cash\r]", get_pcvar_num(cost_pro))
- menu_additem(menu, text, "8")
- formatex(text, 199, "\wCommunity Knife -\r [\w%d\y Cash\r]", get_pcvar_num(cost_community))
- menu_additem(menu, text, "9")
- formatex(text, 199, "\wSupervisor Knife -\r [\w%d\y Cash\r]", get_pcvar_num(cost_supervisor))
- menu_additem(menu, text, "10")
- formatex(text, 199, "\wAdministrator Knife -\r [\w%d\y Cash\r]", get_pcvar_num(cost_administrator))
- menu_additem(menu, text, "11")
- formatex(text, 199, "\wBoss Knife -\r [\w%d\y Cash\r]", get_pcvar_num(cost_boss))
- menu_additem(menu, text, "12")
- formatex(text, 199, "\wExtaza SuperPower Knife -\r [\w%d\y Cash\r]", get_pcvar_num(cost_extazasuperpower))
- menu_additem(menu, text, "13")
- formatex(text, 199, "\wOwners Knife -\r [\w%d\y Cash\r]", get_pcvar_num(cost_owners))
- menu_additem(menu, text, "14")
- formatex(text, 199, "\wNoykaSharel Knife -\r [\w%d\y Cash\r]", get_pcvar_num(cost_noykasharel))
- menu_additem(menu, text, "15")
- menu_setprop(menu, MPROP_EXIT, MEXIT_ALL)
- menu_display(id, menu, 0)
- }
- public handle_show_menu_knifes(id, menu, item)
- {
- if (item == MENU_EXIT)
- {
- menu_destroy(menu)
- return PLUGIN_HANDLED
- }
- new Data[6];
- new Access;
- new Callback;
- new Name[64];
- menu_item_getinfo(menu, item, Access, Data, 5, Name, 63, Callback)
- new Key = str_to_num(Data);
- switch (Key)
- {
- case 1:
- {
- if (!is_user_alive(id)){
- ColorChat(id,"^1[ ^3Extaza ^1] You must be Alive to buy ^3this item.")
- return PLUGIN_HANDLED
- }
- new cost = get_pcvar_num(cost_beginner);
- if(knife[id] > 0)
- return 1;
- if (player_points[id] < cost){
- ColorChat(id,"^1[ ^3Extaza ^1] You need more^1 (^4 %i ^1) ^4Cash ^1to buy ^3this item .", cost - player_points[id])
- }
- else{
- player_points[id] -= cost
- ColorChat(id,"^1[ ^3Extaza ^1] You purchased^4 Beginner Knife^1 (^3Level - 1^1)")
- entity_set_string( id,EV_SZ_viewmodel, "models/Extaza/v_extazaknifeshop1.mdl" );
- fm_set_user_health( id, 105 )
- SavePoints(id)
- knife[id] = 1
- }
- }
- case 2:
- {
- if (!is_user_alive(id))
- {
- ColorChat(id,"^1[ ^3Extaza ^1] You must be Alive to buy ^3this item.")
- return PLUGIN_HANDLED
- }
- new cost = get_pcvar_num(cost_advanced);
- if(knife[id] > 1)
- return 1;
- if (player_points[id] < cost){
- ColorChat(id,"^1[ ^3Extaza ^1] You need more^1 (^4 %i ^1) ^4Cash ^1to buy ^3this item .", cost - player_points[id])
- }
- else{
- player_points[id] -= cost
- ColorChat(id,"^1[ ^3Extaza ^1] You purchased^4 Advanced Knife^1 (^3Level - 2^1)")
- entity_set_string( id,EV_SZ_viewmodel, "models/Extaza/v_extazaknifesshop2.mdl" );
- fm_set_user_health( id, 110 )
- SavePoints(id)
- knife[id] = 2
- }
- }
- case 3:
- {
- if (!is_user_alive(id)){
- ColorChat(id,"^1[ ^3Extaza ^1] You must be Alive to buy ^3this item.")
- return PLUGIN_HANDLED
- }
- if(knife[id] > 2)
- return 1;
- new cost = get_pcvar_num(cost_superadvanced);
- if (player_points[id] < cost){
- ColorChat(id,"^1[ ^3Extaza ^1] You need more^1 (^4 %i ^1) ^4Cash ^1to buy ^3this item .", cost - player_points[id])
- }
- else{
- player_points[id] -= cost
- ColorChat(id,"^1[ ^3Extaza ^1] You purchased^4 SuperAdvanced Knife^1 (^3Level - 3^1)")
- entity_set_string( id,EV_SZ_viewmodel, "models/Extaza/v_extazaknifeshop3.mdl" );
- fm_set_user_health( id, 115 )
- set_user_footsteps(id, 1)
- SavePoints(id)
- knife[id] = 3
- }
- }
- case 4:
- {
- if (!is_user_alive(id)){
- ColorChat(id,"^1[ ^3Extaza ^1] You must be Alive to buy ^3this item.")
- return PLUGIN_HANDLED
- }
- if(knife[id] > 3)
- return 1;
- new cost = get_pcvar_num(cost_vatican);
- if (player_points[id] < cost){
- ColorChat(id,"^1[ ^3Extaza ^1] You need more^1 (^4 %i ^1) ^4Cash ^1to buy ^3this item .", cost - player_points[id])
- }
- else{
- player_points[id] -= cost
- ColorChat(id,"^1[ ^3Extaza ^1] You purchased^4 Vatican Knife^1 (^3Level - 4^1)")
- entity_set_string( id,EV_SZ_viewmodel, "models/Extaza/v_extazaknifeshop4.mdl" );
- fm_set_user_health( id, 120 )
- set_user_footsteps(id, 1)
- SavePoints(id)
- knife[id] = 4
- }
- }
- case 5:
- {
- if (!is_user_alive(id)){
- ColorChat(id,"^1[ ^3Extaza ^1] You must be Alive to buy ^3this item.")
- return PLUGIN_HANDLED
- }
- if(knife[id] > 4)
- return 1;
- new cost = get_pcvar_num(cost_respect);
- if (player_points[id] < cost){
- ColorChat(id,"^1[ ^3Extaza ^1] You need more^1 (^4 %i ^1) ^4Cash ^1to buy ^3this item .", cost - player_points[id])
- }
- else{
- player_points[id] -= cost
- ColorChat(id,"^1[ ^3Extaza ^1] You purchased^4 Respect Knife^1 (^3Level - 5^1)")
- entity_set_string( id,EV_SZ_viewmodel, "models/Extaza/v_extazaknifeshop5.mdl" );
- fm_set_user_health( id, 125 )
- set_user_footsteps(id, 1)
- SavePoints(id)
- knife[id] = 5
- }
- }
- case 6:
- {
- if (!is_user_alive(id)){
- ColorChat(id,"^1[ ^3Extaza ^1] You must be Alive to buy ^3this item.")
- return PLUGIN_HANDLED
- }
- if(knife[id] > 5)
- return 1;
- new cost = get_pcvar_num(cost_special);
- if (player_points[id] < cost){
- ColorChat(id,"^1[ ^3Extaza ^1] You need more^1 (^4 %i ^1) ^4Cash ^1to buy ^3this item .", cost - player_points[id])
- }
- else{
- player_points[id] -= cost
- ColorChat(id,"^1[ ^3Extaza ^1] You purchased^4 Special Knife^1 (^3Level - 6^1)")
- entity_set_string( id,EV_SZ_viewmodel, "models/Extaza/v_extazaknifeshop6.mdl" );
- fm_set_user_health( id, 130 )
- set_user_footsteps(id, 1)
- set_user_rendering(id, kRenderFxGlowShell, 0, 0, 0, kRenderTransAlpha, 255);
- SavePoints(id)
- knife[id] = 6
- }
- }
- case 7:
- {
- if (!is_user_alive(id)){
- ColorChat(id,"^1[ ^3Extaza ^1] You must be Alive to buy ^3this item.")
- return PLUGIN_HANDLED
- }
- if(knife[id] > 6)
- return 1;
- new cost = get_pcvar_num(cost_commander);
- if (player_points[id] < cost){
- ColorChat(id,"^1[ ^3Extaza ^1] You need more^1 (^4 %i ^1) ^4Cash ^1to buy ^3this item .", cost - player_points[id])
- }
- else{
- player_points[id] -= cost
- ColorChat(id,"^1[ ^3Extaza ^1] You purchased^4 Commander Knife^1 (^3Level - 7^1)")
- entity_set_string( id,EV_SZ_viewmodel, "models/Extaza/v_extazaknifeshop7.mdl" );
- fm_set_user_health( id, 135 )
- set_user_footsteps(id, 1)
- set_user_rendering(id, kRenderFxGlowShell, 0, 0, 0, kRenderTransAlpha, 255);
- SavePoints(id)
- knife[id] = 7
- }
- }
- case 8:
- {
- if (!is_user_alive(id)){
- ColorChat(id,"^1[ ^3Extaza ^1] You must be Alive to buy ^3this item.")
- return PLUGIN_HANDLED
- }
- if(knife[id] > 7)
- return 1;
- new cost = get_pcvar_num(cost_pro);
- if (player_points[id] < cost){
- ColorChat(id,"^1[ ^3Extaza ^1] You need more^1 (^4 %i ^1) ^4Cash ^1to buy ^3this item .", cost - player_points[id])
- }
- else{
- player_points[id] -= cost
- ColorChat(id,"^1[ ^3Extaza ^1] You purchased^4 Pro Knife^1 (^3Level - 8^1)")
- entity_set_string( id,EV_SZ_viewmodel, "models/Extaza/v_extazaknifeshop8.mdl" );
- fm_set_user_health( id, 140 )
- set_user_footsteps(id, 1)
- set_user_rendering(id, kRenderFxGlowShell, 0, 0, 0, kRenderTransAlpha, 255);
- SavePoints(id)
- knife[id] = 8
- }
- }
- case 9:
- {
- if (!is_user_alive(id)){
- ColorChat(id,"^1[ ^3Extaza ^1] You must be Alive to buy ^3this item.")
- return PLUGIN_HANDLED
- }
- if(knife[id] > 8)
- return 1;
- new cost = get_pcvar_num(cost_community);
- if (player_points[id] < cost){
- ColorChat(id,"^1[ ^3Extaza ^1] You need more^1 (^4 %i ^1) ^4Cash ^1to buy ^3this item .", cost - player_points[id])
- }
- else{
- player_points[id] -= cost
- ColorChat(id,"^1[ ^3Extaza ^1] You purchased^4 Community Knife^1 (^3Level - 9^1)")
- entity_set_string( id,EV_SZ_viewmodel, "models/Extaza/v_extazaknifeshop9.mdl" );
- fm_set_user_health( id, 145 )
- set_user_footsteps(id, 1)
- set_user_rendering(id, kRenderFxGlowShell, 0, 0, 0, kRenderTransAlpha, 255);
- SavePoints(id)
- knife[id] = 9
- }
- }
- case 10:
- {
- if (!is_user_alive(id)){
- ColorChat(id,"^1[ ^3Extaza ^1] You must be Alive to buy ^3this item.")
- return PLUGIN_HANDLED
- }
- if(knife[id] > 9)
- return 1;
- new cost = get_pcvar_num(cost_supervisor);
- if (player_points[id] < cost){
- ColorChat(id,"^1[ ^3Extaza ^1] You need more^1 (^4 %i ^1) ^4Cash ^1to buy ^3this item .", cost - player_points[id])
- }
- else{
- player_points[id] -= cost
- ColorChat(id,"^1[ ^3Extaza ^1] You purchased^4 Supervisor Knife^1 (^3Level - 10^1)")
- entity_set_string( id,EV_SZ_viewmodel, "models/Extaza/v_extazaknifeshop10.mdl" );
- fm_set_user_health( id, 150 )
- set_user_footsteps(id, 1)
- set_user_rendering(id, kRenderFxGlowShell, 0, 0, 0, kRenderTransAlpha, 255);
- SavePoints(id)
- knife[id] = 10
- }
- }
- case 11:
- {
- if (!is_user_alive(id)){
- ColorChat(id,"^1[ ^3Extaza ^1] You must be Alive to buy ^3this item.")
- return PLUGIN_HANDLED
- }
- if(knife[id] > 10)
- return 1;
- new cost = get_pcvar_num(cost_administrator);
- if (player_points[id] < cost){
- ColorChat(id,"^1[ ^3Extaza ^1] You need more^1 (^4 %i ^1) ^4Cash ^1to buy ^3this item .", cost - player_points[id])
- }
- else{
- player_points[id] -= cost
- ColorChat(id,"^1[ ^3Extaza ^1] You purchased^4 Administrator Knife^1 (^3Level - 11^1)")
- entity_set_string( id,EV_SZ_viewmodel, "models/Extaza/v_extazaknifeshop11.mdl" );
- fm_set_user_health( id, 155 )
- set_user_footsteps(id, 1)
- set_user_rendering(id, kRenderFxGlowShell, 0, 0, 0, kRenderTransAlpha, 255);
- SavePoints(id)
- knife[id] = 11
- }
- }
- case 12:
- {
- if (!is_user_alive(id)){
- ColorChat(id,"^1[ ^3Extaza ^1] You must be Alive to buy ^3this item.")
- return PLUGIN_HANDLED
- }
- if(knife[id] > 11)
- return 1;
- new cost = get_pcvar_num(cost_boss);
- if (player_points[id] < cost){
- ColorChat(id,"^1[ ^3Extaza ^1] You need more^1 (^4 %i ^1) ^4Cash ^1to buy ^3this item .", cost - player_points[id])
- }
- else{
- player_points[id] -= cost
- ColorChat(id,"^1[ ^3Extaza ^1] You purchased^4 Boss Knife^1 (^3Level - 12^1)")
- entity_set_string( id,EV_SZ_viewmodel, "models/Extaza/v_extazaknifeshop12.mdl" );
- fm_set_user_health( id, 160 )
- set_user_footsteps(id, 1)
- set_user_rendering(id, kRenderFxGlowShell, 0, 0, 0, kRenderTransAlpha, 255);
- SavePoints(id)
- knife[id] = 12
- }
- }
- case 13:
- {
- if (!is_user_alive(id)){
- ColorChat(id,"^1[ ^3Extaza ^1] You must be Alive to buy ^3this item.")
- return PLUGIN_HANDLED
- }
- if(knife[id] > 12)
- return 1;
- new cost = get_pcvar_num(cost_extazasuperpower);
- if (player_points[id] < cost){
- ColorChat(id,"^1[ ^3Extaza ^1] You need more^1 (^4 %i ^1) ^4Cash ^1to buy ^3this item .", cost - player_points[id])
- }
- else{
- player_points[id] -= cost
- ColorChat(id,"^1[ ^3Extaza ^1] You purchased^4 Extaza Super-Power Knife^1 (^3Level - 13^1)")
- entity_set_string( id,EV_SZ_viewmodel, "models/Extaza/v_extazaknifeshop13.mdl" );
- fm_set_user_health( id, 165 )
- set_user_footsteps(id, 1)
- set_user_rendering(id, kRenderFxGlowShell, 0, 0, 0, kRenderTransAlpha, 255);
- SavePoints(id)
- knife[id] = 13
- }
- }
- case 14:
- {
- if (!is_user_alive(id)){
- ColorChat(id,"^1[ ^3Extaza ^1] You must be Alive to buy ^3this item.")
- return PLUGIN_HANDLED
- }
- if(knife[id] > 13)
- return 1;
- new cost = get_pcvar_num(cost_owners);
- if (player_points[id] < cost){
- ColorChat(id,"^1[ ^3Extaza ^1] You need more^1 (^4 %i ^1) ^4Cash ^1to buy ^3this item .", cost - player_points[id])
- }
- else{
- player_points[id] -= cost
- ColorChat(id,"^1[ ^3Extaza ^1] You purchased^4 Owners Knife^1 (^3Level - 14^1)")
- entity_set_string( id,EV_SZ_viewmodel, "models/Extaza/v_extazaknifeshop14.mdl" );
- fm_set_user_health( id, 170 )
- set_user_footsteps(id, 1)
- set_user_rendering(id, kRenderFxGlowShell, 0, 0, 0, kRenderTransAlpha, 255);
- SavePoints(id)
- knife[id] = 14
- }
- }
- case 15:
- {
- if (!is_user_alive(id)){
- ColorChat(id,"^1[ ^3Extaza ^1] You must be Alive to buy ^3this item.")
- return PLUGIN_HANDLED
- }
- if(knife[id] > 14)
- return 1;
- new cost = get_pcvar_num(cost_noykasharel);
- if (player_points[id] < cost){
- ColorChat(id,"^1[ ^3Extaza ^1] You need more^1 (^4 %i ^1) ^4Cash ^1to buy ^3this item .", cost - player_points[id])
- }
- else{
- player_points[id] -= cost
- ColorChat(id,"^1[ ^3Extaza ^1] You purchased^4 NoykaSharel Knife^1 (^3Level - 15^1)")
- entity_set_string( id,EV_SZ_viewmodel, "models/Extaza/v_extazaknifeshop15.mdl" );
- fm_set_user_health( id, 175 )
- set_user_footsteps(id, 1)
- set_user_rendering(id, kRenderFxGlowShell, 0, 0, 0, kRenderTransAlpha, 255);
- SavePoints(id)
- knife[id] = 15
- }
- }
- }
- menu_destroy(menu)
- return PLUGIN_HANDLED
- }
- public Event_CurWeapon(id)
- {
- if( !is_user_alive( id ) && !is_user_connected( id ) || cs_get_user_team(id) == CS_TEAM_CT)
- return PLUGIN_CONTINUE
- new temp[ 2 ], weapon = get_user_weapon( id, temp[ 0 ], temp[ 1 ] );
- if( weapon == CSW_KNIFE )
- {
- if(knife[id] == 1)
- {
- entity_set_string( id,EV_SZ_viewmodel, "models/Extaza/v_extazaknifeshop1.mdl" );
- }
- else if(knife[id] == 2)
- {
- entity_set_string( id,EV_SZ_viewmodel, "models/Extaza/v_extazaknifeshop2.mdl" );
- }
- else if(knife[id] == 3)
- {
- entity_set_string( id,EV_SZ_viewmodel, "models/Extaza/v_extazaknifeshop3.mdl" );
- }
- else if(knife[id] == 4)
- {
- entity_set_string( id,EV_SZ_viewmodel, "models/Extaza/v_extazaknifeshop4.mdl" );
- }
- else if(knife[id] == 5)
- {
- entity_set_string( id,EV_SZ_viewmodel, "models/Extaza/v_extazaknifeshop5.mdl" );
- }
- else if(knife[id] == 6)
- {
- entity_set_string( id,EV_SZ_viewmodel, "models/Extaza/v_extazaknifeshop6.mdl" );
- }
- else if(knife[id] == 7)
- {
- entity_set_string( id,EV_SZ_viewmodel, "models/Extaza/v_extazaknifeshop7.mdl" );
- }
- else if(knife[id] == 8)
- {
- entity_set_string( id,EV_SZ_viewmodel, "models/Extaza/v_extazaknifeshop8.mdl" );
- }
- else if(knife[id] == 9)
- {
- entity_set_string( id,EV_SZ_viewmodel, "models/Extaza/v_extazaknifeshop9.mdl" );
- }
- else if(knife[id] == 10)
- {
- entity_set_string( id,EV_SZ_viewmodel, "models/Extaza/v_extazaknifeshop10.mdl" );
- }
- else if(knife[id] == 11)
- {
- entity_set_string( id,EV_SZ_viewmodel, "models/Extaza/v_extazaknifeshop11.mdl" );
- }
- else if(knife[id] == 12)
- {
- entity_set_string( id,EV_SZ_viewmodel, "models/Extaza/v_extazaknifeshop12.mdl" );
- }
- else if(knife[id] == 13)
- {
- entity_set_string( id,EV_SZ_viewmodel, "models/Extaza/v_extazaknifeshop13.mdl" );
- }
- else if(knife[id] == 14)
- {
- entity_set_string( id,EV_SZ_viewmodel, "models/Extaza/v_extazaknifeshop14.mdl" );
- }
- else if(knife[id] == 15)
- {
- entity_set_string( id,EV_SZ_viewmodel, "models/Extaza/v_extazaknifeshop15.mdl" );
- }
- }
- }
- public FwdHamPlayerSpawn(id)
- {
- if(cs_get_user_team(id) == CS_TEAM_T)
- {
- if(knife[id] == 1)
- fm_set_user_health( id, 105 )
- if(knife[id] == 2)
- fm_set_user_health( id, 110 )
- if(knife[id] == 3)
- fm_set_user_health( id, 115 ),set_user_footsteps(id, 1)
- if(knife[id] == 4)
- fm_set_user_health( id, 120 ),set_user_footsteps(id, 1)
- if(knife[id] == 5)
- fm_set_user_health( id, 125 ),set_user_footsteps(id, 1)
- if(knife[id] == 6)
- fm_set_user_health( id, 130 ),set_user_footsteps(id, 1)
- if(knife[id] == 7)
- fm_set_user_health( id, 135 ),set_user_footsteps(id, 1)
- if(knife[id] == 8)
- fm_set_user_health( id, 140 ),set_user_footsteps(id, 1)
- if(knife[id] == 9)
- fm_set_user_health( id, 145 ),set_user_footsteps(id, 1)
- if(knife[id] == 10)
- fm_set_user_health( id, 150 ),set_user_footsteps(id, 1)
- if(knife[id] == 11)
- fm_set_user_health( id, 155 ),set_user_footsteps(id, 1)
- if(knife[id] == 12)
- fm_set_user_health( id, 160 ),set_user_footsteps(id, 1)
- if(knife[id] == 13)
- fm_set_user_health( id, 165 ),set_user_footsteps(id, 1)
- if(knife[id] == 14)
- fm_set_user_health( id, 170 ),set_user_footsteps(id, 1)
- if(knife[id] == 15)
- fm_set_user_health( id, 175 ),set_user_footsteps(id, 1)
- }
- }
- public Remove_Invisibility(id){
- set_user_rendering(id)
- ColorChat(id,"^1[ ^3Extaza ^1] You looke now ^4Normal Terror^1.")
- }
- public Remove_Gravity(id){
- set_user_gravity(id, 1.0)
- ColorChat(id,"^1[ ^3Extaza ^1] Your ^4Gravity ^1is ^4Normal^1 now.")
- }
- public Remove_Speed(id){
- set_user_maxspeed(id, 250.0);
- ColorChat(id,"^1[ ^3Extaza ^1] Your ^4Speed ^1is ^4Normal ^1now.");
- }
- public Remove_Godmode(id){
- set_user_godmode(id, 0)
- ColorChat(id,"^1[ ^3Extaza ^1] Now You Dont Have ^4Godmode^1.")
- }
- public Remove_Noclip(id){
- set_user_noclip(id, 0)
- ColorChat(id,"^1[ ^3Extaza ^1] Now You Dont Have ^4Noclip^1.")
- }
- public Remove_Camouflage(id){
- cs_reset_user_model(id)
- ColorChat(id,"^1[ ^3Extaza ^1] You Look Now ^4Normal Terror^1.")
- }
- public Remove_Footsteps(id)
- {
- set_user_footsteps(id, 0)
- ColorChat(id,"^1[ ^3Extaza ^1] Now Hear your ^4footsteps^1.")
- }
- stock fm_set_user_health(index, health) {
- health > 0 ? set_pev(index, pev_health, float(health)) : dllfunc(DLLFunc_ClientKill, index)
- return 1
- }
- stock fm_get_user_money(index) {
- return get_pdata_int(index, FM_MONEY_OFFSET)
- }
- stock fm_set_user_money(index, money, flash = 1) {
- set_pdata_int(index, FM_MONEY_OFFSET, money);
- message_begin(MSG_ONE, get_user_msgid("Money"), _, index);
- write_long(money);
- write_byte(flash ? 1 : 0);
- message_end();
- }
- public plugin_natives(){
- register_native("get_user_points", "_get_user_point");
- register_native("set_user_points", "_set_user_point");
- }
- public _get_user_point(plugin, params){
- return player_points[get_param(1)];
- }
- public _set_user_point(plugin, params){
- new client = get_param(1);
- player_points[client] = max(0, get_param(2));
- SavePoints(client);
- return player_points[client];
- }
- stock remove_user_points( id, points ){
- return set_user_point( id, get_user_point( id ) - points );
- }
- public showpoints(id){
- set_dhudmessage(60, 190, 255, -1.0, 0.35, 2, 6.0, 3.0, 0.1, 3.0)
- show_dhudmessage( id, "[ Extaza ]^nYour Cash is : %i", player_points[id])
- }
- public Remove_Meseh(id)
- {
- set_dhudmessage(42, 212, 255, -1.0, 0.25, 2, 6.0, 3.0, 0.1, 9.0 )
- show_dhudmessage( id, "Extaza Clubs JailBreak Club #1^nYour Cash is : %i" , player_points[id])
- }
- public plugin_cfg(){
- point_vault = nvault_open( "Points" );
- knife_vault = nvault_open( "Knife");
- if ( point_vault == INVALID_HANDLE )
- set_fail_state( "Failed to Open Point Vault" );
- if( knife_vault == INVALID_HANDLE)
- set_fail_state( "failed to open knife vault" )
- }
- public plugin_end(){
- nvault_close(point_vault);
- nvault_close(knife_vault);
- }
- public client_putinserver(id){
- new Name[33]
- get_user_name(id, Name, 32)
- ColorChat(0, "^1[ ^3Extaza ^1]^4 %s ^1(%i)^4 Connected ^1to the Server !", Name, player_points[id])
- set_task(3.0, "Remove_Meseh", id)
- can_pickup[id]=true
- LoadPoints(id)
- }
- public client_disconnect(id){
- new Name[33]
- get_user_name(id, Name, 32)
- ColorChat(0, "^1[ ^3Extaza ^1]^4 %s ^1(%i) ^4Disconnected ^1from the Server !", Name, player_points[id])
- can_pickup[id] = false
- SavePoints(id)
- }
- public EventDeathMsg(){
- new Float:velo[3]
- new killer = read_data(1);
- new victim = read_data(2);
- new headshot = read_data(3)
- new ikiller[33], ivictim[33];
- get_user_name(killer, ikiller, 32)
- get_user_name(victim, ivictim, 32)
- if(cs_get_user_team(killer) == CS_TEAM_T && cs_get_user_team(victim) == CS_TEAM_CT){
- new killpoints = 150
- new headshotpoints = 200
- make_money(victim, velo)
- if(headshot){
- player_points[killer] += headshotpoints
- 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)
- }
- else{
- player_points[killer] += killpoints
- 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)
- }
- SavePoints(killer);
- }
- return PLUGIN_HANDLED;
- }
- public SavePoints(id){
- new authid[32], ip[33];
- get_user_ip(id, ip, 32, 1);
- get_user_authid(id,authid,31);
- new vaultkey[64], vaultdata[64];
- new vaultkey2[64], vaultdata2[64];
- format(vaultkey,63,"Points-%s",authid);
- format(vaultdata,63,"%d",player_points[id]);
- format(vaultkey2,63,"Knife-%s",authid);
- format(vaultdata2,63,"%d",knife[id]);
- nvault_set( knife_vault , vaultkey2 , vaultdata2 );
- nvault_set( point_vault , vaultkey , vaultdata );
- }
- public LoadPoints(id){
- new authid[32], vaultkey[64],vaultkey2[64], ip[33];
- get_user_ip(id, ip, 32, 1);
- get_user_authid(id,authid,31);
- formatex( vaultkey , charsmax( vaultkey ) , "Points-%s" , authid);
- formatex( vaultkey2 , charsmax( vaultkey2 ) , "Knife-%s" , authid);
- player_points[id] = nvault_get( point_vault, vaultkey );
- knife[id] = nvault_get( knife_vault, vaultkey2 );
- }
- public cmd_give_points(id,level,cid)
- {
- if(!cmd_access(id,level,cid,3))
- return PLUGIN_HANDLED;
- new target[32], amount[21], reason[21];
- read_argv(1, target, 31 );
- read_argv(2, amount, 20 );
- read_argv( 3, reason, 20 );
- new player = cmd_target( id, target, 8 );
- if( ! player )
- return PLUGIN_HANDLED;
- new admin_name[32], player_name[32];
- get_user_name(id, admin_name, 31);
- get_user_name(player, player_name, 31);
- new pointnum = str_to_num(amount);
- player_points[player] += pointnum;
- switch(get_cvar_num ("amx_show_activity"))
- {
- case 1: client_print( 0, print_chat, "%s ADMIN: gave %i points for %s.", pointnum, player_points );
- case 2: client_print( 0, print_chat, "%s ADMIN %s: gave %i points for %s.", admin_name, pointnum, player_points );
- }
- client_print(player, print_chat, "%s You received %i points.(Total: %d)", pointnum, player_points[player]);
- SavePoints( id )
- return PLUGIN_CONTINUE;
- }
- public cmd_take_points(id,level,cid)
- {
- if(!cmd_access (id, level, cid, 3))
- return PLUGIN_HANDLED;
- new target[32], amount[21], reason[21];
- read_argv( 1, target, 31 );
- read_argv( 2, amount, 20 );
- read_argv( 3, reason, 20 );
- new player = cmd_target( id, target, 8 );
- if(!player )
- return PLUGIN_HANDLED;
- new admin_name[32], player_name[32];
- get_user_name( id, admin_name, 31 );
- get_user_name( player, player_name, 31 );
- new pointnum = str_to_num( amount );
- player_points[player] -= pointnum;
- switch(get_cvar_num("amx_show_activity"))
- {
- case 1: client_print( 0, print_chat, "%s ADMIN: took %i points from %s.", pointnum, player_name );
- case 2: client_print( 0, print_chat, "%s ADMIN %s: took %i points from %s.", admin_name, pointnum, player_name );
- }
- client_print( player, print_chat, "You lost %i Cash. (Total: %d)", pointnum, player_points[player] );
- SavePoints( id )
- return PLUGIN_CONTINUE;
- }
- public cmdSend(client)
- {
- static arg[35];
- read_argv(1, arg, sizeof(arg) - 1);
- new target = cmd_target(client, arg, CMDTARGET_NO_BOTS);
- if(!target)
- {
- client_print(client, print_console, "[ Extaza ] Client has not found.")
- } else {
- read_argv(2, arg, sizeof(arg) - 1);
- new aPoints = str_to_num(arg);
- new name[32];
- get_user_name(target, name, 31)
- client_print(client, print_console, "[ Extaza ] Client has found( %s )", name)
- if(aPoints > 0)
- if(aPoints < player_points[client])
- {
- player_points[client] -= aPoints, SavePoints(client);
- player_points[target] += aPoints, SavePoints(target);
- new szName[32]
- get_user_name(client, szName, 31);
- ColorChat(0 , "^1[ ^3Extaza ^1]^4 %s^1 send to ^4%s ^3%d^1 Cash", szName, name ,aPoints)
- // 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)
- client_print(client, print_console, "[ Extaza ] Client has found( %s ) and send to him %d Cash", name, aPoints)
- }}}
- public CmdShowInfo(id)
- {
- static text[1120], len, title[64];
- len += format(text[len], charsmax(text) - len, "<html>");
- len += format(text[len], charsmax(text) - len, "<style type = ^"text/css^">");
- len += format(text[len], charsmax(text) - len, "body");
- len += format(text[len], charsmax(text) - len, "{");
- len += format(text[len], charsmax(text) - len, "background-color:000000;");
- len += format(text[len], charsmax(text) - len, "font-family:Comic Sans MS;");
- len += format(text[len], charsmax(text) - len, "font-weight:bold;");
- len += format(text[len], charsmax(text) - len, "}");
- len += format(text[len], charsmax(text) - len, "h1");
- len += format(text[len], charsmax(text) - len, "{");
- len += format(text[len], charsmax(text) - len, "color:00FF00;");
- len += format(text[len], charsmax(text) - len, "font-size:large;");
- len += format(text[len], charsmax(text) - len, "}");
- len += format(text[len], charsmax(text) - len, "h2");
- len += format(text[len], charsmax(text) - len, "{");
- len += format(text[len], charsmax(text) - len, "color:#00FF00;");
- len += format(text[len], charsmax(text) - len, "font-size:medium;");
- len += format(text[len], charsmax(text) - len, "}");
- len += format(text[len], charsmax(text) - len, "h3");
- len += format(text[len], charsmax(text) - len, "{");
- len += format(text[len], charsmax(text) - len, "color:#0096FF;");
- len += format(text[len], charsmax(text) - len, "font-size:medium;");
- len += format(text[len], charsmax(text) - len, "}");
- len += format(text[len], charsmax(text) - len, "h4");
- len += format(text[len], charsmax(text) - len, "{");
- len += format(text[len], charsmax(text) - len, "color:#FAEBD7;");
- len += format(text[len], charsmax(text) - len, "font-size:medium;");
- len += format(text[len], charsmax(text) - len, "}");
- len += format(text[len], charsmax(text) - len, "h5");
- len += format(text[len], charsmax(text) - len, "{");
- len += format(text[len], charsmax(text) - len, "color:#F5FFFA;");
- len += format(text[len], charsmax(text) - len, "font-size:x-small;");
- len += format(text[len], charsmax(text) - len, "}");
- len += format(text[len], charsmax(text) - len, "</style>");
- len += format(text[len], charsmax(text) - len, "<body>");
- len += format(text[len], charsmax(text) - len, "<div align = ^"center^">");
- len += format(text[len], charsmax(text) - len, "<h1>");
- len += format(text[len], charsmax(text) - len, "JailBreak Points Shop v1.6");
- len += format(text[len], charsmax(text) - len, "</h1>");
- len += format(text[len], charsmax(text) - len, "<h4>");
- len += format(text[len], charsmax(text) - len, "by adrass");
- len += format(text[len], charsmax(text) - len, "</h4>");
- len += format(text[len], charsmax(text) - len, "<h2>");
- len += format(text[len], charsmax(text) - len, "Commands Shop:");
- len += format(text[len], charsmax(text) - len, "</h3>");
- len += format(text[len], charsmax(text) - len, "<h3>");
- len += format(text[len], charsmax(text) - len, "To Open The Shop Menu<br />");
- len += format(text[len], charsmax(text) - len, "<h5>");
- len += format(text[len], charsmax(text) - len, "Say - /shop , shop | Press - radio1, radio2, radio3 (Z,X,C).<br />");
- len += format(text[len], charsmax(text) - len, "<h3>");
- len += format(text[len], charsmax(text) - len, "To Show Your Points Say:<br />");
- len += format(text[len], charsmax(text) - len, "<h5>");
- len += format(text[len], charsmax(text) - len, "/points , points, /mypoints.<br />");
- len += format(text[len], charsmax(text) - len, "<h3>");
- len += format(text[len], charsmax(text) - len, "To Send Points to Player say in the Console: </I>");
- len += format(text[len], charsmax(text) - len, "<h5>");
- len += format(text[len], charsmax(text) - len, "send_points name 123 - If you did not understand: </I>");
- len += format(text[len], charsmax(text) - len, "<h5>");
- len += format(text[len], charsmax(text) - len, "send_points matan 10 (is send to matan 10 points).</I>");
- len += format(text[len], charsmax(text) - len, "</h5>");
- len += format(text[len], charsmax(text) - len, "<h2>");
- len += format(text[len], charsmax(text) - len, "In the Shop:");
- len += format(text[len], charsmax(text) - len, "</h2>");
- len += format(text[len], charsmax(text) - len, "<h4>");
- len += format(text[len], charsmax(text) - len, "<I>Grenades Menu</I>: Buy Grenades .<br />");
- len += format(text[len], charsmax(text) - len, "<I>Healths Menu</I>: Buy Healths.<br />");
- len += format(text[len], charsmax(text) - len, "<I>Weapons Menu</I>: Buy Weapons.<br />");
- len += format(text[len], charsmax(text) - len, "<I>Power Menu</I>: Buy Power.<br />");
- len += format(text[len], charsmax(text) - len, "<I>Other Menu</I>: Buy Other things.<br />");
- len += format(text[len], charsmax(text) - len, "<I>Knife Power Menu</I>: Buy Knife Power.<br />");
- len += format(text[len], charsmax(text) - len, "<I>Vip Menu</I>: Only for VIP.<br />");
- len += format(text[len], charsmax(text) - len, "</h4>");
- len += format(text[len], charsmax(text) - len, "<h2>");
- len += format(text[len], charsmax(text) - len, "if you find a bug reported to NeTo.<br />");
- len += format(text[len], charsmax(text) - len, "Press G to Drop Points.");
- len += format(text[len], charsmax(text) - len, "</h2>");
- len += format(text[len], charsmax(text) - len, "</div>");
- len += format(text[len], charsmax(text) - len, "</body>");
- len += format(text[len], charsmax(text) - len, "</html>");
- format(title, charsmax(title) - 1, "Tag - JailBreak Points Shop Help");
- show_motd(id, text, title);
- return PLUGIN_HANDLED;
- }
- public clcmd_playerpoints(id)
- {
- if(cs_get_user_team(id) != CS_TEAM_T)
- return PLUGIN_HANDLED
- new Menu, szNum[4], szName[32], szData[40]
- Menu = menu_create("\r[\w Extaza \r]\y Cash Menu", "playersmenu_handler")
- for(new i = 1; i <= g_MaxPlayers; i++)
- {
- if(!is_user_connected(i)) continue
- num_to_str(i, szNum, charsmax(szNum))
- get_user_name(i, szName, charsmax(szName))
- formatex(szData, charsmax(szData), "%s \d[ \y%d \d]", szName, player_points[i])
- menu_additem(Menu, szData, szNum)
- }
- menu_display(id, Menu, 0)
- return PLUGIN_HANDLED
- }
- public playersmenu_handler(id, menu, item)
- {
- menu_destroy(menu)
- return PLUGIN_HANDLED
- }
- stock ColorChat(const id, const input[], any:...){
- new count = 1, players[32]
- static msg[191]
- vformat(msg, 190, input, 3)
- replace_all(msg, 190, "!g", "^4") // Green Color
- replace_all(msg, 190, "!y", "^1") // Default Color
- replace_all(msg, 190, "!team", "^3") // Team Color
- if (id) players[0] = id
- else get_players(players, count, "ch")
- for (new i = 0; i < count; i++)
- {
- if (is_user_connected(players[i]))
- {
- message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"), _, players[i])
- write_byte(players[i])
- write_string(msg)
- message_end()
- }}}
- public cmd_autobuy(id) return PLUGIN_HANDLED
- public DropCMD(id)
- {
- if(is_user_alive(id)) {
- new weapon,clip,ammo,Float:velo[3]
- weapon = get_user_weapon(id,clip,ammo)
- if(weapon == CSW_KNIFE) {
- if(player_points[id] < 2)
- return PLUGIN_CONTINUE
- player_points[id] -= 2
- can_pickup[id] = false
- set_task(0.3,"reset_pick",id)
- new start_velo = 10 * 15
- new end_velo = 10 * 50
- velocity_by_aim(id,random_num(start_velo,end_velo),velo)
- make_money(id,velo)
- }
- }
- return nordeagleday ? PLUGIN_HANDLED : PLUGIN_CONTINUE
- }
- public make_money(id,Float:velo[]) {
- new Float:origin[3]
- new Float:angles[3]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement