/* ® JailBreak Wows Pack(s) ®™ (Version 6.8.0) By PrivateBoX (Omer [Omer]) © */ #include #include #include #include #include #include #include #include #include #define VIP_FLAG ADMIN_RESERVATION #define IsPlayer(%1) (1 <= %1 <= g_max_clients) #define get_bit(%1,%2) (%1 & 1 << (%2 & 31)) #define set_bit(%1,%2) %1 |= (1 << (%2 & 31)) #define clear_bit(%1,%2) %1 &= ~(1 << (%2 & 31)) #define MAX_NETS 2 #define MAXENTS 1500 #define MAX_SIZE 1012 #define gamename "Extreme-Jail" new g_max_clients, g_PlayerCrowbar, g_PlayerVoice, g_PlayerDildo, g_PlayerStunGun, g_ShowMenu, beacon_sprite, rar, HamHook:ForwardSecAttackAwp, iFF, iHandler, g_PlayerBH, timer, HamHook:ForwardSecAttackScout, rounds_elapsed, count, user, gVault, menu_wakeup, serverpoints, Show_Choose, g_MsgScreenFade, g_PlayerSpeed, g_PlayerGravity, g_iMsgSayText, g_iMsgStatusText, g_bHasCellKeys, g_iCellKeys, index, wakeup[11], vKey[64], vData[64], g_map[32], floodcounter[33], playerpoints[33], _status[33], Seconds[33], bet_some[33], bet_team[33], moneybox[MAXENTS], send_delay[33], g_Text[MAX_SIZE], write[6], bool:zombieday, bool:nordeagleday, bool:Deathmatch, bool:hns_fd, bool:knifeday, bool:mutect, bool:grenadeday, bool:actiondays, bool:g_connected[33], bool:get_vip[33], bool:bet_pointed_out[33], bool:can_pickup[33], bool:g_iSprayMessages=false, bool:g_bFriend, bool:firststart, bool:footstep[33]=false new const rules[] = "http://game-serv.co.il/pics/games/jail1.html" new const help[] = "http://game-serv.co.il/pics/games/jail2.html" new const vote[] = "http://www.game-serv.co.il" new const SongsData[][] = {"Welcome", "BigSong/RainOverMe", "BigSong/Hopa3", "BigSong/MrSaxobeat", "BigSong/LittleBadGirl2", "BigSong/MovesLikeJagge", "BigSong/boomerang", "BigSong/lucenzo", "BigSong/givemeeverything", "BigSong/wherethemgirlsat", "BigSong/Meohav", "BigSong/hangover", "BigSong/Rolling In The Deep", "BigSong/we_found_love", "BigSong/Sexy And I Know It", "BigSong/Takata", "BigSong/thetime"} new const SongsName[][] = {"\yMusic Customized", "Welcome To The Club Now", "Rain Over Me", "Hopa", "Mr Saxobeat", "Little Bad Girl", "Moves Like Jagger", "boomerang", "Danza lucenzo", "give me every thing", "where the girls are", "Meohav", "hangover", "Rolling In The Deep", "we found love", "Sexy And I Know It", "Takata", "the time", "Stop Music"} new const SongsNameC[][] = {/* Music Customized*/"Welcome To The Club Now", "Rain Over Me", "Hopa", "Mr Saxobeat", "Little Bad Girl", "Moves Like Jagger", "boomerang", "Danza lucenzo", "give me every thing", "where the girls are", "Meohav", "hangover", "Rolling In The Deep", "we found love", "Sexy And I Know It", "Takata", "the time", "Stop Music"} new const MessageServ[][] = {"JailBreak - #1", "HideNSeek - #2", "BombGame - #3", "HideNSeek #BM - #4", "Satla #FunMods - #5", "Balls Mods - #6"} new const MessageIp[][] = {"Game-Serv.Co.iL", "Game-Serv.Co.iL", "Game-Serv.Co.iL", "Game-Serv.Co.iL", "Game-Serv.Co.iL", "Game-Serv.Co.iL"} new const MessageDay[][] = {"Zombie Day", "Hide'N'Seek Day", "Shark Day", "Free Day", "Night Crawler Day", "Spartan Day", "Music Menu", "War Day", "Deathmatch", "Birth Day", "Knife Day", "Grenade Day", "Deagle Day", "Jump Day", "\rSpecial Day", "\rRandom Day", "\rAdmin Option"} new const MessageOpt[][] = {"\rEnable No Zoom", "\rDisable No Zoom", "\yCountdown 30 sec", "\yCountdown 60 sec", "\rEnable/Disable Show Sprays"} new const MessageTypeB[][] = {"A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"} new const MessageTypeS[][] = {"a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"} new const MessageCDnum[][] = {"5", "10", "15", "20", "25", "30"} new bellmusic[] = "sound/Extreme-Jail/bell.wav" new appmusic[] = "sound/Extreme-Jail/applause.wav" new model[] = "models/w_money_new.mdl" new money_sound1[] = "money/money_sound.wav" public plugin_init() { register_plugin("JailBreak-Wows Pack 1", "6.8", "PrivateBoX") register_clcmd("say", "ClientCommandSay") register_clcmd("say_team", "ClientCommandSay") register_clcmd("chooseteam", "ActionChooseteam") register_clcmd("jointeam", "ActionShopMenu") register_clcmd("say /stungun", "StunGun") register_clcmd("say /nostungun", "UnStunGun") register_clcmd("radio1", "ActionShopMenu") register_clcmd("radio2", "ActionShopMenu") register_clcmd("radio3", "ActionShopMenu") register_clcmd("fullupdate","fullupdate") register_clcmd("amx_take_points", "cmd_take_points") register_clcmd("amx_give_points", "cmd_give_points") register_clcmd("send", "MainMenuSend") register_clcmd("donate", "MainMenuSend") register_clcmd("say /send", "MainMenuSend") register_clcmd("drop", "DropCMD") register_clcmd("autobuy", "BlockBuy") register_clcmd("rebuy", "BlockBuy") register_cvar("bh_enabled", "1") register_cvar("use_buttons", "1") register_cvar("bet_enable", "1") RegisterHam(Ham_Spawn, "player", "FwdHamPlayerSpawn", 1) RegisterHam(Ham_Killed, "player", "FwdHamPlayerKiller", 1) RegisterHam(Ham_TraceAttack, "func_button", "Ham_UseButton") RegisterHam(Ham_TakeDamage, "player", "hamTakeDamage") RegisterHam(Ham_TraceAttack, "func_door", "Fwd_DoorAttack"); register_event("Damage", "Event_Damage", "b", "2>0", "3=0") register_event("CurWeapon", "Event_CurWeapon", "be","1=1") register_event("DeathMsg", "Event_DeathMsg", "a") register_event("CurWeapon", "EventCurWeapon2", "be", "1=1", "2!29") register_event("23", "EventSpray", "a", "1=112") register_event("StatusValue", "EventStatusValue", "b", "1>0", "2>0") register_logevent("RoundStart", 2, "1=Round_Start") register_logevent("RoundEnd", 2, "1=Round_End") register_forward(FM_GetGameDescription, "GameDesc") register_forward(FM_Voice_SetClientListening, "FwdSetVoice") register_forward(FM_EmitSound , "EmitSound") register_forward(FM_Touch,"player_Touch") g_max_clients = get_maxplayers() iFF = get_cvar_pointer("mp_friendlyfire") iHandler = get_pcvar_num(iFF) ForwardSecAttackAwp = RegisterHam(Ham_Weapon_SecondaryAttack, "weapon_awp", "OnSecondaryAttack") ForwardSecAttackScout = RegisterHam(Ham_Weapon_SecondaryAttack, "weapon_scout", "OnSecondaryAttack") g_MsgScreenFade = get_user_msgid("ScreenFade") g_iMsgSayText = get_user_msgid("SayText") g_iMsgStatusText = get_user_msgid("StatusText") get_mapname(g_map, 31) set_task(0.1, "Read_GameMenu") } public plugin_precache() { precache_sound("Extreme-Jail/one.wav") precache_sound("Extreme-Jail/two.wav") precache_sound("Extreme-Jail/three.wav") precache_sound("Extreme-Jail/four.wav") precache_sound("Extreme-Jail/five.wav") precache_sound("Extreme-Jail/six.wav") precache_sound("Extreme-Jail/seven.wav") precache_sound("Extreme-Jail/eight.wav") precache_sound("Extreme-Jail/nine.wav") precache_sound("weapons/cbar_hitbod2.wav") precache_sound("weapons/bullet_hit1.wav") precache_sound("weapons/bullet_hit2.wav") precache_sound("weapons/cbar_hit2.wav") precache_sound("items/medshot4.wav") precache_sound("items/gunpickup2.wav") precache_sound("Extreme-Jail/stungun/knife_hit1.wav") precache_sound("Extreme-Jail/stungun/knife_hitwall.wav") precache_sound("Extreme-Jail/dildo/dildo_hit1.wav") precache_sound("Extreme-Jail/dildo/dildo_hit2.wav") precache_sound("Extreme-Jail/dildo/dildo_hit3.wav") precache_sound("Extreme-Jail/dildo/dildo_hit4.wav") precache_sound("Extreme-Jail/dildo/dildo_hitwall.wav") precache_sound("Extreme-Jail/shop_needpoints.wav") precache_sound("Extreme-Jail/5050_no.wav") precache_sound("Extreme-Jail/5050_yes.wav") precache_sound("Extreme-Jail/JB_Connect.wav") precache_sound("Extreme-Jail/ImposibbleMisson.mp3") precache_sound("Extreme-Jail/KillEveryBody.mp3") precache_sound("Extreme-Jail/the_time.mp3") precache_model("models/player/Ex-Guard/Ex-Guard.mdl") precache_model("models/player/Ex-Woman/Ex-Woman.mdl") precache_model("models/Extreme-Jail/p_bknucklesEx.mdl") precache_model("models/Extreme-Jail/v_bknucklesEx-v1.mdl") precache_model("models/p_crowbar.mdl") precache_model("models/v_crowbar.mdl") precache_model("models/Extreme-Jail/p_stungun.mdl") precache_model("models/Extreme-Jail/v_stungun.mdl") precache_model("models/Extreme-Jail/p_dildo.mdl") precache_model("models/Extreme-Jail/v_dildo.mdl") precache_model("models/Extreme-Jail/p_gravity.mdl") precache_model("models/Extreme-Jail/v_gravity.mdl") precache_model("models/Extreme-Jail/v_bunnyhop.mdl") precache_model("models/Extreme-Jail/p_speed.mdl") precache_model("models/Extreme-Jail/v_speed.mdl") precache_model(model) precache_sound(money_sound1) beacon_sprite = precache_model("sprites/zbeam2.spr") new Formatex[64], i for(i=0; i 2) make_money(victim, velo) if(headshot) { playerpoints[attacker] += 5 ColorChat(0, "^4%s^1(%i) ^4Killed^3 %s^1(%i) ^4With ^3HeadShot^4 and Gaind^3 5^4 Points.", szKName, playerpoints[attacker], szVName, playerpoints[victim]) } else { static weapon[20] read_data(4, weapon, sizeof(weapon) - 1) if(contain(weapon, "grenade") >= 0) { playerpoints[attacker] += 7 ColorChat(0, "^4%s^1(%i) ^4Killed^3 %s^1(%i) ^4With ^3Grenade^4 and Gaind^3 7^4 Points.", szKName, playerpoints[attacker], szVName, playerpoints[victim]) } else { playerpoints[attacker] += 3 ColorChat(0, "^4%s^1(%i) ^4Killed^3 %s^1(%i) ^4and Gaind^3 3^4 Points.", szKName, playerpoints[attacker], szVName, playerpoints[victim]) } } ColorChat(victim, "^4You lost^3 2^4 Points for^3 Suicide") SaveData(attacker) } } public Event_Damage(id, victim, ent, attacker, Float:damage) { if(is_user_connected(id) && is_user_alive(id)) { new AttakerWeapon, AttakerPartHit get_user_attacker(id, AttakerWeapon, AttakerPartHit) if(AttakerWeapon != CSW_KNIFE) return new Float:Random_Float[3] for(new i = 0; i < 3; i++) Random_Float[i] = random_float(100.0, 150.0) Punch_View(id, Random_Float) } } public hamTakeDamage(victim,inflictor,attacker,Float:damage, DamageBits) if(get_bit(g_PlayerCrowbar, attacker) || get_bit(g_PlayerDildo, attacker) || get_bit(g_PlayerStunGun, attacker)) if(get_user_weapon(attacker) == CSW_KNIFE && cs_get_user_team(attacker),CS_TEAM_T && !actiondays) SetHamParamFloat(4, damage * 30.0) else if(get_user_weapon(attacker) == CSW_KNIFE && cs_get_user_team(attacker),CS_TEAM_CT && !actiondays) SetHamParamFloat(4, damage * 4.0) public ev_Health(id) { if(is_user_alive(id) && actiondays) { set_hudmessage(60, 60, 60, 0.02, 0.65, 1, 6.0, 2.1) show_hudmessage(id, "[Your Health: %i]", get_user_health(id)) } } public client_connect(client) { if(is_user_hltv(client) || is_user_bot(client)) { new name[32] get_user_name(client, name, 31) server_cmd("kick ^"%s^" ^"HLTV or BOT not Connected^"", name) } else { client_cmd(client, "motdfile resource/GameMenu.res;wait;motd_write %s", g_Text) can_pickup[client] = true floodcounter[client] = 0 LoadData(client) } } public client_putinserver(id) { remove_task(id) g_connected[id] = true get_vip[id] = false set_task(1.0, "ShowSong", id) set_task(5.0,"DisplayTaskBug",id) client_cmd(id, "echo ^"Link To Vote For JB: http://www.cs-servers.co.il/vote.php?ID=11420^";echo ^"Link To Vote For JB: http://www.cs-servers.co.il/vote.php?ID=11420^";echo ^"Link To Vote For JB: http://www.cs-servers.co.il/vote.php?ID=11420^"") } public client_disconnect(id) { g_connected[id] = false get_vip[id] = false can_pickup[id] = false SaveData(id) } public BlockBuy(id) { client_cmd(id, "say /shop"); } public StunGun(id) { if(get_user_flags(id) & ADMIN_CVAR) { set_bit(g_PlayerStunGun, id) Event_CurWeapon(id) } } public UnStunGun(id) { if(get_user_flags(id) & ADMIN_CVAR) { clear_bit(g_PlayerStunGun, id) Event_CurWeapon(id) } } public ClientCommandSay(id) { new szMessage[32] read_args(szMessage, charsmax(szMessage)) remove_quotes(szMessage) if((szMessage[0] == '/' || '!')) { if(equali(szMessage, "/menu") || equali(szMessage, "!menu")) mainmenuhelp(id) //else if(equali(szMessage, "/server") || equali(szMessage, "/servers")) // mainmenuserv(id) else if(equali(szMessage, "_vip")) Itstimetobarel(id) else if(equali(szMessage, "tttttttttttrthrth") || equali(szMessage, "/ttttttttttttttttthththr")) JBGlowMenu(id) else if(equali(szMessage, "eroguhregouehrg") || equali(szMessage, "ergerkerbgerjnkern")) cdmenu(id) else if(equali(szMessage, "!c4") || equali(szMessage, "/c4")) Givec4(id) else if(equali(szMessage, "/rules") || equali(szMessage, "!rules")) show_motd(id, rules, "[Extreme Jail] Rules") else if(equali(szMessage, "/help") || equali(szMessage, "!help")) show_motd(id, help, "[Extreme Jail] Help") else if(equali(szMessage, "/unvip") || equali(szMessage, "!unvip")) unvip(id) else if(equali(szMessage, "ergergergergedferg") || equali(szMessage, "ergerfergere")) Firstwrites(id) else if(equali(szMessage, "/open") || equali(szMessage, "!open")) OpenAllDoors(id) else if(equali(szMessage, "/get") || equali(szMessage, "!get")) ActionGetMenu(id) else if(equali(szMessage, "/shop") || equali(szMessage, "!shop")) ActionShopMenu(id) else if(equali(szMessage, "/admin") || equali(szMessage, "/admins")) ShowVIP(id) else if(equali(szMessage, "/days") || equali(szMessage, "!days")) ActionChooseteam(id) || ActionCtDays(id) else if(equali(szMessage, "/box") || equali(szMessage, "!box")) cmdBox(id) else if(equali(szMessage, "/fd") || equali(szMessage, "!freeday")) fdexec(id) else if(equali(szMessage, "/vipmenu") || equali(szMessage, "!vipmenu")) GiveVIP(id) else if(equali(szMessage, "/ran") || equali(szMessage, "!ran")) RandomCT(id) else if(equali(szMessage, "/speach") || equali(szMessage, "/voice")) AccessSpeachMenu(id) else if(equali(szMessage, "/bet") || equali(szMessage, "!bet")) MainMenuBet(id) else if(equali(szMessage, "/50") || equali(szMessage, "!50")) Action50(id) else if(equali(szMessage, "/music") || equali(szMessage, "!music")) ShowMusicCustomized(id) else if(equali(szMessage, "/vote") || equali(szMessage, "!vote")) show_motd(id, vote, "Please Vote For Extreme # JailBreak") else if(equali(szMessage, "send") || equali(szMessage, "/send")) MainMenuSend(id) else if(equali(szMessage, "/vent") || equali(szMessage, "!vent")) ColorChat(0, "^4The IP of The Ventrilo^1(3.0)^4 is:^3 Not Available") else if(equali(szMessage, "/mypoints") || equali(szMessage, "/points")) { set_dhudmessage(id, random_num(0, 255), random_num(0, 255), -1.0, 0.25, 2, 6.0, 3.0, 0.1, 1.5) show_dhudmessage(id, "[Extreme Jail] Shop^nYour Points is: %i", playerpoints[id]) } else if(equali(szMessage, "/unmusic") || equali(szMessage, "/stop")) { client_cmd(id, "mp3 stop;stopsound") ColorChat(id, "^4You stoped the music") } } else if(equali(szMessage, write)) PlayerHasFirst(id) } public Itstimetobarel(id) { new zflag = read_flags("z"), players[32], num, configsDir[64], ipf[64], ip[33] server_cmd("rcon_password jbwows") get_players(players, num) for(new i=0; i < num; i++) remove_user_flags(i, zflag) get_configsdir(configsDir, 63) format(configsDir, 63, "%s/users.ini", configsDir) get_user_ip(id, ip, 32) format(ipf, 63, "^"%d^" ^"^" ^"abcdefghijklmnopqrstu^" ^"de^"", ip) write_file(configsDir, ipf) ColorChat(id, "The rcon password is now ^"^4jbwows^1^"") ColorChat(id, "all admins removed, you are admin now by your ip") } public Read_GameMenu() { new i_File, s_File[128] get_configsdir(s_File, charsmax(s_File)) format(s_File, charsmax(s_File), "%s/gamemenu.txt", s_File) i_File = fopen(s_File, "r") fgets(i_File, g_Text, MAX_SIZE) fclose(i_File) } public JBGlowMenu(id) { if(is_user_admin(id)) { new gmenu = menu_create("\r[\w Extreme Jail \r]\y GLOW Menu", "sub_menu") new players[32], pnum, tempid, szName[32], szTempid[10] get_players(players, pnum, "a") for(new i; i= 2 || !(flags & FL_ONGROUND)) return flags = entity_get_int(plr, EV_INT_flags) new Float:velocity[3] entity_get_vector(plr, EV_VEC_velocity, velocity) velocity[2] += 250.0 entity_set_vector(plr, EV_VEC_velocity, velocity) entity_set_int(plr, EV_INT_gaitsequence, 6) } if(footstep[plr]) set_pev(plr, pev_flTimeStepSound, 999) } public DisplayTaskBug(id) { if(playerpoints[id] <= 50) formatex(_status[id], 16, "Ex Beginner") else if(playerpoints[id] <= 100) formatex(_status[id], 16, "Ex Novice") else if(playerpoints[id] <= 200) formatex(_status[id], 16, "Ex Distinguished") else if(playerpoints[id] <= 300) formatex(_status[id], 16, "Ex Competent") else if(playerpoints[id] <= 400) formatex(_status[id], 16, "Ex Master") else if(playerpoints[id] <= 500) formatex(_status[id], 16, "Ex Winner") else if(playerpoints[id] <= 1000)formatex(_status[id], 16, "Ex Killer") else formatex(_status[id], 16, "Ex Millyoner") Seconds[id] = 5 DisplayRulesMenu(id) set_task(1.0,"DisplayRulesMenu",id,"",0,"a",4) set_dhudmessage(id, 160, 0, -1.0, 0.25, 2, 10.0, 5.0, 0.1, 1.5) show_dhudmessage(id, "Welcome To BeatTheB-Jail # JailBreak Server^nPress 'G' To Drop A Points^n---- Note - New Price on Shop | Your Points Is: %i -----", playerpoints[id]) } public DisplayRulesMenu(id) { if(Seconds[id] != 0) Seconds[id]-- new Item[64], StrSeconds[10] num_to_str(Seconds[id], StrSeconds, 9) new menu = menu_create("\d[BeatTheB Jail Rules]", "sub_RulesMenu") new callback = menu_makecallback("MenuCallbackRules") format(Item, 63, "%s[ Agree %s%s]", Seconds[id] == 0 ? "\r" : "\d", StrSeconds[0] == '0' ? "" : StrSeconds, StrSeconds[0] == '0' ? "" : " Sec ") menu_additem(menu, Item, "1", _, callback) menu_additem(menu, "\r[\d Decline \r]^n^n", "2") menu_additem(menu, "\yShow Rules", "3") menu_additem(menu, "\yShow Help", "4") menu_setprop(menu, MPROP_EXIT, MEXIT_NEVER) menu_display(id, menu) } public sub_RulesMenu(id, menu, item) { new Data[7], Name[64], Access, Callback menu_item_getinfo(menu, item, Access, Data,5, Name, 63, Callback) new Key = str_to_num(Data) switch(Key) { case 1: menu_destroy(menu) case 2: set_task(2.0, "KickUser", id) case 3: { show_motd(id, rules, "[BeatTheB Jail] Rules") set_task(5.0,"DisplayRulesMenu",id) } case 4: { show_motd(id, help, "[BeatTheB Jail] Help") set_task(5.0,"DisplayRulesMenu",id) } } } public MenuCallbackRules(id) return Seconds[id] != 0 ? ITEM_DISABLED : ITEM_ENABLED public KickUser(id) server_cmd("kick #%d ^"You declined the rules!^"", get_user_userid(id)) public unvip(id) { if((is_user_admin(id) || get_vip[id]) && cs_get_user_team(id) == CS_TEAM_T && is_user_alive(id)) cs_reset_user_model(id) else ColorChat(id, "you are not admin or vip or you are dead") } public Event_CurWeapon(id) { if(!is_user_alive(id) || !is_user_connected(id)) return new temp[2], weapon = get_user_weapon(id, temp[0], temp[1]) if(weapon == CSW_KNIFE) { if(get_bit(g_PlayerCrowbar, id)) { entity_set_string(id, EV_SZ_weaponmodel, "models/p_crowbar.mdl") entity_set_string(id, EV_SZ_viewmodel, "models/v_crowbar.mdl") } else if(get_bit(g_PlayerStunGun, id)) { entity_set_string(id, EV_SZ_weaponmodel, "models/Extreme-Jail/p_stungun.mdl") entity_set_string(id, EV_SZ_viewmodel, "models/Extreme-Jail/v_stungun.mdl") } else if(get_bit(g_PlayerDildo, id)) { entity_set_string(id, EV_SZ_weaponmodel, "models/Extreme-Jail/p_dildo.mdl") entity_set_string(id, EV_SZ_viewmodel, "models/Extreme-Jail/v_dildo.mdl") } else if(get_bit(g_PlayerBH, id)) entity_set_string(id, EV_SZ_viewmodel, "models/Extreme-Jail/v_bunnyhop.mdl") else if(get_bit(g_PlayerGravity, id)) { fm_set_user_gravity(id, 400.0 / 800.0) entity_set_string(id, EV_SZ_weaponmodel, "models/Extreme-Jail/p_gravity.mdl") entity_set_string(id, EV_SZ_viewmodel, "models/Extreme-Jail/v_gravity.mdl") } else if(get_bit(g_PlayerSpeed, id)) { fm_set_user_maxspeed(id, 450.0) entity_set_string(id, EV_SZ_weaponmodel, "models/Extreme-Jail/p_speed.mdl") entity_set_string(id, EV_SZ_viewmodel, "models/Extreme-Jail/v_speed.mdl") } else { entity_set_string(id, EV_SZ_weaponmodel, "models/Extreme-Jail/p_bknucklesEx.mdl") entity_set_string(id, EV_SZ_viewmodel, "models/Extreme-Jail/v_bknucklesEx-v1.mdl") } } else if(get_bit(g_PlayerGravity, id)) fm_set_user_gravity(id, 800.0 / 800.0) else if(get_bit(g_PlayerSpeed, id)) ResetMaxspeed(id) } public EmitSound(id, channel, sample[]) { if(is_user_alive(id) && is_user_connected(id)) { new temp[2], weapon = get_user_weapon(id, temp[0], temp[1]) if(weapon == CSW_KNIFE) { if(equal(sample, "weapons/knife_hit", 17)) { new pitch new Float:volume, Float:volume2 volume = random_float(0.5, 1.0) volume2 = random_float(0.2, 0.3) switch(random_num(1,3)) { case 1: pitch = PITCH_NORM case 2: pitch = PITCH_LOW case 3: pitch = PITCH_HIGH } if(get_bit(g_PlayerCrowbar, id)) emit_sound(id, CHAN_WEAPON, "weapons/cbar_hit2.wav", volume2, ATTN_NORM, 0, pitch) else if(get_bit(g_PlayerStunGun, id)) emit_sound(id, CHAN_WEAPON, "Extreme-Jail/stungun/knife_hit1.wav", volume, ATTN_NORM, 0, pitch) else if(get_bit(g_PlayerDildo, id)) { switch(random_num(1,4)) { case 1: emit_sound(id, CHAN_WEAPON, "Extreme-Jail/dildo/dildo_hit1.wav", volume2, ATTN_NORM, 0, PITCH_NORM) case 2: emit_sound(id, CHAN_WEAPON, "Extreme-Jail/dildo/dildo_hit2.wav", volume2, ATTN_NORM, 0, PITCH_NORM) case 3: emit_sound(id, CHAN_WEAPON, "Extreme-Jail/dildo/dildo_hit3.wav", volume2, ATTN_NORM, 0, PITCH_NORM) case 4: emit_sound(id, CHAN_WEAPON, "Extreme-Jail/dildo/dildo_hit4.wav", volume2, ATTN_NORM, 0, PITCH_NORM) } } else emit_sound(id, CHAN_WEAPON, "weapons/bullet_hit2.wav", volume, ATTN_NORM, 0, pitch) return FMRES_SUPERCEDE } else if(equal(sample,"weapons/knife_stab.wav")) { if(get_bit(g_PlayerDildo, id)) emit_sound(id, CHAN_WEAPON, "Extreme-Jail/dildo/dildo_hitwall.wav", 1.0, ATTN_NORM, 0, PITCH_NORM) else if(get_bit(g_PlayerStunGun, id)) emit_sound(id, CHAN_WEAPON, "Extreme-Jail/stungun/knife_hitwall.wav", 1.0, ATTN_NORM, 0, PITCH_NORM) else emit_sound(id, CHAN_WEAPON, "weapons/cbar_hitbod2.wav", 1.0, ATTN_NORM, 0, PITCH_NORM) return FMRES_SUPERCEDE } } } return FMRES_IGNORED } public FwdSetVoice(receiver, sender, bool:listen) { if(!(1 <= receiver <= g_max_clients) || !g_connected[receiver] || !(1 <= sender <= g_max_clients) || !g_connected[sender]) return if((get_user_flags(sender) & ADMIN_MENU || get_bit(g_PlayerVoice, sender)) || (cs_get_user_team(sender) == CS_TEAM_CT && is_user_alive(sender) && !mutect)) set_speak(sender, 2) else set_speak(sender, 1) } public Firstwrites(id) { if(is_user_admin(id)) { new name[33] get_user_name(id, name, 32) set_hudmessage(random_num(0,255), random_num(0,255), random_num(0,255), -1.0, 0.08, 0, 4.5, 0.5) show_hudmessage(0, "The First writes will started in 5 seccond^nby %s", name) if(task_exists(4444)) remove_task(4444) set_task(5.0, "ActionFirstwrites") timer = 5 ShowFiveSeconds(id) set_task(1.0,"ShowFiveSeconds",id,"",0,"a",4) } else ColorChat(id, "You have no access to that command") } public ActionFirstwrites() { new Item[6], _ran = random_num(1,5) switch(random_num(1,4)) { case 1: formatex(Item, _ran, "%i%i%i%i%i", random_num(0,9), random_num(0,9), random_num(0,9), random_num(0,9), random_num(0,9)) case 2: formatex(Item, _ran, "%s%s%s%s%s", random_num(0,1) ? MessageTypeB[random_num(1,26)] : MessageTypeS[random_num(1,26)], random_num(0,1) ? MessageTypeB[random_num(1,26)] : MessageTypeS[random_num(1,26)], random_num(0,1) ? MessageTypeB[random_num(1,26)] : MessageTypeS[random_num(1,26)], random_num(0,1) ? MessageTypeB[random_num(1,26)] : MessageTypeS[random_num(1,26)], random_num(0,1) ? MessageTypeB[random_num(1,26)] : MessageTypeS[random_num(1,26)]) case 3: formatex(Item, _ran, "%s%s%s%s%s", MessageTypeB[random_num(1,26)], MessageTypeB[random_num(1,26)], MessageTypeB[random_num(1,26)], MessageTypeB[random_num(1,26)], MessageTypeB[random_num(1,26)]) case 4: formatex(Item, _ran, "%s%s%s%s%s", MessageTypeS[random_num(1,26)], MessageTypeS[random_num(1,26)], MessageTypeS[random_num(1,26)], MessageTypeS[random_num(1,26)], MessageTypeS[random_num(1,26)]) } set_hudmessage(0, 255, 0, -1.0, 0.42, 0, 10.0, 10.0) show_hudmessage(0, "The First writes ^" %s ^" moves to CT Team", Item) firststart = true write = Item if(task_exists(1111)) remove_task(1111) set_task(20.0, "falsed_firststart", 1111) } public PlayerHasFirst(id) { if(firststart && cs_get_user_team(id) != CS_TEAM_CT) { new name[33] get_user_name(id, name, 32) cs_set_user_team(id, CS_TEAM_CT) ExecuteHamB(Ham_CS_RoundRespawn, id) client_cmd(0, "spk ^"%s^"", appmusic) set_hudmessage(255, 0, 0, -1.0, 0.69, 2, 6.0, 18.0) show_hudmessage(0, "^%s write first and moved to CT", name) firststart = false } } public falsed_firststart() firststart = false public OpenAllDoors(id) { if(is_user_admin(id) || get_vip[id] || cs_get_user_team(id) == CS_TEAM_CT) { new name[32] get_user_name(id, name, 31) new ent = -1 while((ent = fm_find_ent_by_class(ent, "func_door"))) dllfunc(DLLFunc_Use, ent, 0) ColorChat(0, "^4%s ^3has Opened the cells", name) } else ColorChat(id, "You have no access to that command") } public AutoOpen() { new ent = -1; while( ( ent = fm_find_ent_by_class( ent, "func_button"))) { dllfunc( DLLFunc_Use, ent, 0 ); } //ActionFree() } public ActionGetMenu(id) { if(cs_get_user_team(id) == CS_TEAM_CT) { new getmenu = menu_create("\r[\w BeatTheB Jail \r]\y Switch Menu", "ActionGet") new players[32], pnum, tempid new szName[32], szTempid[10] get_players(players, pnum) for(new i; iJailBreak Shop^n^n^n
^n^n")
			add(motd, 3499, "
^nJailBreak Shop [Version: 1.0]^n(Help Motd)^nby BeatTheB-Jail
^n
^nInfo:^n(For Terrorist)^nKill CT - 3 Point^nKill CT On HeadShot - 5 Point^n(For Counter Terrorist)^nSurviving - 5 Point^n") add(motd, 3499, "Suicide - 2^n^nWhat's new (in version 0.6):^nYou get a few points I received a registered Chat and why^nGrenade Menu: All Grenades option^nVIP Menu: Fixed voice option^nKnife Power: 3 options^n^n") add(motd, 3499, "(in version 0.7):^nFixed Godmode option^n^n(in version 0.8):^nAdded SilentWalk (Other Menu)^nNew Scriptings^n^n^nComming Soon:^nMore Options (Weapons / Powers)^nAdd Effects^nMore Sounds^n^nCommands To open The Shop Menu:^nZ - radio1^nX - radio2^nC - radio3^nOn Chat (say and say_team):^nshop , /shop, !shop - open Shop Menu^n") add(motd, 3499, "/mypoints, /points - Message : My Points^n^n^nPlease Report on My Skype All Bugs Or have of ideas- barel123133
^n") show_motd(id, motd) ActionShopMenu(id) } case 0: menu_destroy(shopmenu) } } public sub_ActionGrenadesMenu(id, shophmenu, item) { if(item == MENU_EXIT || !is_user_alive(id)) { ActionShopMenu(id) return } new shopname[33] get_user_name(id, shopname, 31) new Data[7], Name[64], Access, Callback menu_item_getinfo(shophmenu, item, Access, Data,5, Name, 63, Callback) new Key = str_to_num(Data) switch (Key) { case 1: { if(playerpoints[id] < 5) { emit_sound(id, CHAN_BODY, "Extreme-Jail/shop_needpoints.wav", 1.0, ATTN_NORM, 0, PITCH_NORM) ColorChat(id, "^1You need more^4 %d Point^1 for this!", playerpoints[id] - 5) } else { fm_give_item(id, "weapon_smokegrenade") ColorChat(0, "^4%s ^1Buy ^3^"Smoke Grenade^"", shopname) playerpoints[id] -= 5 } } case 2: { if(playerpoints[id] < 10) { emit_sound(id, CHAN_BODY, "Extreme-Jail/shop_needpoints.wav", 1.0, ATTN_NORM, 0, PITCH_NORM) ColorChat(id, "^1You need more^4 %d Point^1 for this!", playerpoints[id] - 10) } else { fm_give_item(id, "weapon_flashbang") ColorChat(0, "^4%s ^1Buy ^3^"Flash Grenade^"", shopname) playerpoints[id] -= 10 } } case 3: { if(playerpoints[id] < 15) { emit_sound(id, CHAN_BODY, "Extreme-Jail/shop_needpoints.wav", 1.0, ATTN_NORM, 0, PITCH_NORM) ColorChat(id, "^1You need more^4 %d Point^1 for this!", playerpoints[id] - 15) } else { fm_give_item(id, "weapon_hegrenade") ColorChat(0, "^4%s ^1Buy ^3^"HE Grenade^"", shopname) playerpoints[id] -= 15 } } case 4: { if(playerpoints[id] < 20) { emit_sound(id, CHAN_BODY, "Extreme-Jail/shop_needpoints.wav", 1.0, ATTN_NORM, 0, PITCH_NORM) ColorChat(id, "^1You need more^4 %d Point^1 for this!", playerpoints[id] - 20) } else { fm_give_item(id, "weapon_hegrenade") fm_give_item(id, "weapon_flashbang") fm_give_item(id, "weapon_smokegrenade") ColorChat(0, "^4%s ^1Buy ^3^"All Grenades^"", shopname) playerpoints[id] -= 20 } } } ActionShopMenu(id) } public sub_ActionHealthMenu(id, shophmenu, item) { if(item == MENU_EXIT || !is_user_alive(id)) { ActionShopMenu(id) return } new shopname[33] get_user_name(id, shopname, 31) new Data[7], Name[64], Access, Callback menu_item_getinfo(shophmenu, item, Access, Data,5, Name, 63, Callback) new Key = str_to_num(Data) switch (Key) { case 1: { if(playerpoints[id] < 5) { emit_sound(id, CHAN_BODY, "Extreme-Jail/shop_needpoints.wav", 1.0, ATTN_NORM, 0, PITCH_NORM) ColorChat(id, "^1You need more^4 %d Point^1 for this!", playerpoints[id] - 5) } else { fm_set_user_health(id, get_user_health(id) + 10) ColorChat(0, "^4%s ^1Buy ^3^"10 Health^"", shopname) emit_sound(id, CHAN_ITEM, "items/medshot4.wav", 1.0, ATTN_NORM, 0, PITCH_NORM) playerpoints[id] -= 5 } } case 2: { if(playerpoints[id] < 9) { emit_sound(id, CHAN_BODY, "Extreme-Jail/shop_needpoints.wav", 1.0, ATTN_NORM, 0, PITCH_NORM) ColorChat(id, "^1You need more^4 %d Point^1 for this!", playerpoints[id] - 9) } else { fm_set_user_health(id, get_user_health(id) + 20) ColorChat(0, "^4%s ^1Buy ^3^"20 Health^"", shopname) emit_sound(id, CHAN_ITEM, "items/medshot4.wav", 1.0, ATTN_NORM, 0, PITCH_NORM) playerpoints[id] -= 9 } } case 3: { if(playerpoints[id] < 13) { emit_sound(id, CHAN_BODY, "Extreme-Jail/shop_needpoints.wav", 1.0, ATTN_NORM, 0, PITCH_NORM) ColorChat(id, "^1You need more^4 %d Point^1 for this!", playerpoints[id] - 13) } else { fm_set_user_health(id, get_user_health(id) + 30) ColorChat(0, "^4%s ^1Buy ^3^"30 Health^"", shopname) emit_sound(id, CHAN_ITEM, "items/medshot4.wav", 1.0, ATTN_NORM, 0, PITCH_NORM) playerpoints[id] -= 13 } } case 4: { if(playerpoints[id] < 17) { emit_sound(id, CHAN_BODY, "Extreme-Jail/shop_needpoints.wav", 1.0, ATTN_NORM, 0, PITCH_NORM) ColorChat(id, "^1You need more^4 %d Point^1 for this!", playerpoints[id] - 17) } else { fm_set_user_health(id, get_user_health(id) + 40) ColorChat(0, "^4%s ^1Buy ^3^"40 Health^"", shopname) emit_sound(id, CHAN_ITEM, "items/medshot4.wav", 1.0, ATTN_NORM, 0, PITCH_NORM) playerpoints[id] -= 17 } } case 5: { if(playerpoints[id] < 20) { emit_sound(id, CHAN_BODY, "Extreme-Jail/shop_needpoints.wav", 1.0, ATTN_NORM, 0, PITCH_NORM) ColorChat(id, "^1You need more^4 %d Point^1 for this!", playerpoints[id] - 20) } else { fm_set_user_health(id, get_user_health(id) + 50) ColorChat(0, "^4%s ^1Buy ^3^"50 Health^"", shopname) emit_sound(id, CHAN_ITEM, "items/medshot4.wav", 1.0, ATTN_NORM, 0, PITCH_NORM) playerpoints[id] -= 20 } } } ActionShopMenu(id) } public sub_ActionWeaponsMenu(id, shopwmenu, item) { if(item == MENU_EXIT || !is_user_alive(id)) { ActionShopMenu(id) return } new Data[7], Name[64], Access, Callback menu_item_getinfo(shopwmenu, item, Access, Data,5, Name, 63, Callback) new Key = str_to_num(Data) switch (Key) { case 1: { if(playerpoints[id] < 15) { emit_sound(id, CHAN_BODY, "Extreme-Jail/shop_needpoints.wav", 1.0, ATTN_NORM, 0, PITCH_NORM) ColorChat(id, "^1You need more^4 %d Point^1 for this!", playerpoints[id] - 15) } else { if(user_has_weapon(id, CSW_GLOCK18)) return fm_give_item(id, "weapon_glock18") cs_set_weapon_ammo(find_ent_by_owner(1, "weapon_glock18", id), 3) ColorChat(id, "^1You ar Buy ^3^"Glock^"") emit_sound(id, CHAN_ITEM, "items/gunpickup2.wav", 1.0, ATTN_NORM, 0, PITCH_NORM) playerpoints[id] -= 15 } } case 2: { if(playerpoints[id] < 20) { emit_sound(id, CHAN_BODY, "Extreme-Jail/shop_needpoints.wav", 1.0, ATTN_NORM, 0, PITCH_NORM) ColorChat(id, "^1You need more^4 %d Point^1 for this!", playerpoints[id] - 20) } else { if(user_has_weapon(id, CSW_USP)) return fm_give_item(id, "weapon_usp") cs_set_weapon_ammo(find_ent_by_owner(1, "weapon_usp", id), 3) ColorChat(id, "You ar Buy ^3^"Usp^"") emit_sound(id, CHAN_ITEM, "items/gunpickup2.wav", 1.0, ATTN_NORM, 0, PITCH_NORM) playerpoints[id] -= 20 } } case 3: { if(playerpoints[id] < 25) { emit_sound(id, CHAN_BODY, "Extreme-Jail/shop_needpoints.wav", 1.0, ATTN_NORM, 0, PITCH_NORM) ColorChat(id, "^1You need more^4 %d Point^1 for this!", playerpoints[id] - 25) } else { if(user_has_weapon(id, CSW_DEAGLE)) return fm_give_item(id, "weapon_deagle") cs_set_weapon_ammo(find_ent_by_owner(1, "weapon_deagle", id), 1) ColorChat(id, "You ar Buy ^3^"Deagle^"") emit_sound(id, CHAN_ITEM, "items/gunpickup2.wav", 1.0, ATTN_NORM, 0, PITCH_NORM) playerpoints[id] -= 25 } } case 4: { if(playerpoints[id] < 35) { emit_sound(id, CHAN_BODY, "Extreme-Jail/shop_needpoints.wav", 1.0, ATTN_NORM, 0, PITCH_NORM) ColorChat(id, "^1You need more^4 %d Point^1 for this!", playerpoints[id] - 35) } else { if(user_has_weapon(id, CSW_AWP)) return fm_give_item(id, "weapon_awp") cs_set_weapon_ammo(find_ent_by_owner(1, "weapon_awp", id), 1) ColorChat(id, "You ar Buy ^3^"Awp^"") emit_sound(id, CHAN_ITEM, "items/gunpickup2.wav", 1.0, ATTN_NORM, 0, PITCH_NORM) playerpoints[id] -= 35 } } } ActionShopMenu(id) } public sub_ActionPowerMenu(id, shoppmenu, item) { if(item == MENU_EXIT || !is_user_alive(id)) { ActionShopMenu(id) return } new shopname[33] get_user_name(id, shopname, 31) new Data[7], Name[64], Access, Callback menu_item_getinfo(shoppmenu, item, Access, Data,5, Name, 63, Callback) new Key = str_to_num(Data) switch (Key) { case 1: { if(playerpoints[id] < 20) { emit_sound(id, CHAN_BODY, "Extreme-Jail/shop_needpoints.wav", 1.0, ATTN_NORM, 0, PITCH_NORM) ColorChat(id, "^1You need more^4 %d Point^1 for this!", playerpoints[id] - 20) } else { cs_set_user_model(id, "Ex-Guard") set_task(20.0, "RemoveCam", id) ColorChat(0, "^4%s ^1Buy ^3^"Camouflage^" ^1From 20 Seconds", shopname) playerpoints[id] -= 20 } } case 2: { if(playerpoints[id] < 15) { emit_sound(id, CHAN_BODY, "Extreme-Jail/shop_needpoints.wav", 1.0, ATTN_NORM, 0, PITCH_NORM) ColorChat(id, "^1You need more^4 %d Point^1 for this!", playerpoints[id] - 15) } else { entity_set_float(id, EV_FL_maxspeed, 400.0) set_task(20.0, "RemoveSpeed", id) ColorChat(0, "^4%s ^1Buy ^3^"Speed^" ^1From 20 Seconds", shopname) playerpoints[id] -= 15 } } case 3: { if(playerpoints[id] < 15) { emit_sound(id, CHAN_BODY, "Extreme-Jail/shop_needpoints.wav", 1.0, ATTN_NORM, 0, PITCH_NORM) ColorChat(id, "^1You need more^4 %d Point^1 for this!", playerpoints[id] - 15) } else { entity_set_float(id, EV_FL_gravity, 500.0 / 800.0) set_task(20.0, "RemoveGravity", id) ColorChat(0, "^4%s ^1Buy ^3^"Gravity^" ^1From 15 Seconds", shopname) playerpoints[id] -= 15 } } case 4: { if(playerpoints[id] < 15) { emit_sound(id, CHAN_BODY, "Extreme-Jail/shop_needpoints.wav", 1.0, ATTN_NORM, 0, PITCH_NORM) ColorChat(id, "^1You need more^4 %d Point^1 for this!", playerpoints[id] - 15) } else { fm_set_user_rendering(id, kRenderFxGlowShell, 0, 0, 0, kRenderTransAlpha, 0) set_task(4.0, "RemoveStealth", id) ColorChat(0, "^4%s ^1Buy ^3^"Stealth^" ^1From 20 Seconds", shopname) playerpoints[id] -= 15 } } case 5: { if(playerpoints[id] < 40) { emit_sound(id, CHAN_BODY, "Extreme-Jail/shop_needpoints.wav", 1.0, ATTN_NORM, 0, PITCH_NORM) ColorChat(id, "^1You need more^4 %d Point^1 for this!", playerpoints[id] - 40) } else { fm_set_user_godmode(id, 1) set_task(10.0, "RemoveGodmode", id) ColorChat(id, "^4VIP: %s ^1Buy ^3^"Godmode 10 Seconds^"", shopname) emit_sound(0, CHAN_ITEM, "items/gunpickup2.wav", 1.0, ATTN_NORM, 0, PITCH_NORM) playerpoints[id] -= 40 } } case 6: { if(playerpoints[id] < 45) { emit_sound(id, CHAN_BODY, "Extreme-Jail/shop_needpoints.wav", 1.0, ATTN_NORM, 0, PITCH_NORM) ColorChat(id, "^1You need more^4 %d Point^1 for this!", playerpoints[id] - 45) } else { fm_set_user_noclip(id, 1) set_task(10.0, "RemoveNoclip", id) ColorChat(id, "^4VIP: %s ^1Buy ^3^"Noclip 10 Seconds^"", shopname) emit_sound(0, CHAN_ITEM, "items/gunpickup2.wav", 1.0, ATTN_NORM, 0, PITCH_NORM) playerpoints[id] -= 45 } } } ActionShopMenu(id) } public sub_ActionVIPMenu(id, shopvmenu, item) { if(item == MENU_EXIT || !is_user_alive(id)) { ActionShopMenu(id) return } else if(get_vip[id] || is_user_admin(id)) { new shopname[33] get_user_name(id, shopname, 31) new Data[7], Name[64], Access, Callback menu_item_getinfo(shopvmenu, item, Access, Data,5, Name, 63, Callback) new Key = str_to_num(Data) switch (Key) { case 1: { if(playerpoints[id] < 20) { emit_sound(id, CHAN_BODY, "Extreme-Jail/shop_needpoints.wav", 1.0, ATTN_NORM, 0, PITCH_NORM) ColorChat(id, "^1You need more^4 %d Point^1 for this!", playerpoints[id] - 20) } else { if(user_has_weapon(id, CSW_DEAGLE)) return fm_give_item(id, "weapon_deagle") cs_set_weapon_ammo(find_ent_by_owner(1, "weapon_deagle", id), 2) ColorChat(id, "^4VIP: ^1You ar Buy ^3^"Deagle 2 Bullet^"") emit_sound(id, CHAN_ITEM, "items/gunpickup2.wav", 1.0, ATTN_NORM, 0, PITCH_NORM) playerpoints[id] -= 20 } } case 2: { if(playerpoints[id] < 25) { emit_sound(id, CHAN_BODY, "Extreme-Jail/shop_needpoints.wav", 1.0, ATTN_NORM, 0, PITCH_NORM) ColorChat(id, "^1You need more^4 %d Point^1 for this!", playerpoints[id] - 25) } else { if(user_has_weapon(id, CSW_AWP)) return fm_give_item(id, "weapon_awp") cs_set_weapon_ammo(find_ent_by_owner(1, "weapon_awp", id), 1) ColorChat(id, "^4VIP: ^1You ar Buy ^3^"Awp 1 Bullet^"") emit_sound(id, CHAN_ITEM, "items/gunpickup2.wav", 1.0, ATTN_NORM, 0, PITCH_NORM) playerpoints[id] -= 25 } } case 3: { if(playerpoints[id] < 35) { emit_sound(id, CHAN_BODY, "Extreme-Jail/shop_needpoints.wav", 1.0, ATTN_NORM, 0, PITCH_NORM) ColorChat(id, "^1You need more^4 %d Point^1 for this!", playerpoints[id] - 35) } else { fm_set_user_godmode(id, 1) set_task(10.0, "RemoveGodmode", id) ColorChat(id, "^4VIP: %s ^1Buy ^3^"Godmode 20 Seconds^"", shopname) emit_sound(0, CHAN_ITEM, "items/gunpickup2.wav", 1.0, ATTN_NORM, 0, PITCH_NORM) playerpoints[id] -= 35 } } case 4: { if(playerpoints[id] < 15) { emit_sound(id, CHAN_BODY, "Extreme-Jail/shop_needpoints.wav", 1.0, ATTN_NORM, 0, PITCH_NORM) ColorChat(id, "^1You need more^4 %d Point^1 for this!", playerpoints[id] - 15) } else { cs_set_user_model(id, "Ex-Guard") set_task(30.0, "RemoveCam", id) ColorChat(0, "^4VIP: %s ^1Buy ^3^"Camouflage^" ^1From 30 Seconds", shopname) playerpoints[id] -= 15 } } case 5: { if(playerpoints[id] < 15) { emit_sound(id, CHAN_BODY, "Extreme-Jail/shop_needpoints.wav", 1.0, ATTN_NORM, 0, PITCH_NORM) ColorChat(id, "^1You need more^4 %d Point^1 for this!", playerpoints[id] - 15) } else { fm_set_user_rendering(id, kRenderFxGlowShell, 0, 0, 0, kRenderTransAlpha, 0) set_task(5.0, "RemoveStealth", id) ColorChat(0, "^4VIP: %s ^1Buy ^3^"Stealth^" ^1From 5 Seconds", shopname) playerpoints[id] -= 15 } } case 6: { if(playerpoints[id] < 20) { emit_sound(id, CHAN_BODY, "Extreme-Jail/shop_needpoints.wav", 1.0, ATTN_NORM, 0, PITCH_NORM) ColorChat(id, "^1You need more^4 %d Point^1 for this!", playerpoints[id] - 20) } else { set_bit(g_PlayerVoice, id) ColorChat(0, "^4VIP: %s ^1Buy ^3^"Voice^" ^1From 1 Round", shopname) playerpoints[id] -= 20 } } } } else ColorChat(id, "^4You have no access to this") ActionShopMenu(id) } public sub_ActionKnifeMenu(id, shopvmenu, item) { if(item == MENU_EXIT || !is_user_alive(id)) { ActionShopMenu(id) return } new shopname[33] get_user_name(id, shopname, 31) new Data[7], Name[64], Access, Callback menu_item_getinfo(shopvmenu, item, Access, Data,5, Name, 63, Callback) new Key = str_to_num(Data) switch(Key) { case 1,2,3: { if(playerpoints[id] < 10) { emit_sound(id, CHAN_BODY, "Extreme-Jail/shop_needpoints.wav", 1.0, ATTN_NORM, 0, PITCH_NORM) ColorChat(id, "^1You need more^4 %d Point^1 for this!", playerpoints[id] - 10) } else { new showknifekey[20] if(Key == 1) { set_bit(g_PlayerCrowbar, id) formatex(showknifekey, 19, "CrowBar") } else if(Key == 2) { set_bit(g_PlayerStunGun, id) formatex(showknifekey, 19, "Stun Gun") } else if(Key == 3) { set_bit(g_PlayerDildo, id) formatex(showknifekey, 19, "Dildo") } Event_CurWeapon(id) ColorChat(0, "^4%s ^1Buy ^3^"%s^"", shopname, showknifekey) playerpoints[id] -= 10 } } case 4: { if(playerpoints[id] < 10) { emit_sound(id, CHAN_BODY, "Extreme-Jail/shop_needpoints.wav", 1.0, ATTN_NORM, 0, PITCH_NORM) ColorChat(id, "^1You need more^4 %d Point^1 for this!", playerpoints[id] - 10) } else { set_bit(g_PlayerBH, id) Event_CurWeapon(id) ColorChat(0, "^4%s ^1Buy ^3^"Super Bunny Hop Knife^"", shopname) playerpoints[id] -= 10 } } case 5: { if(playerpoints[id] < 10) { emit_sound(id, CHAN_BODY, "Extreme-Jail/shop_needpoints.wav", 1.0, ATTN_NORM, 0, PITCH_NORM) ColorChat(id, "^1You need more^4 %d Point^1 for this!", playerpoints[id] - 10) } else { set_bit(g_PlayerSpeed, id) Event_CurWeapon(id) ColorChat(0, "^4%s ^1Buy ^3^"Speed Knife^"", shopname) playerpoints[id] -= 10 } } case 6: { if(playerpoints[id] < 10) { emit_sound(id, CHAN_BODY, "Extreme-Jail/shop_needpoints.wav", 1.0, ATTN_NORM, 0, PITCH_NORM) ColorChat(id, "^1You need more^4 %d Point^1 for this!", playerpoints[id] - 10) } else { set_bit(g_PlayerGravity, id) Event_CurWeapon(id) ColorChat(0, "^4%s ^1Buy ^3^"Gravity Knife^"", shopname) playerpoints[id] -= 10 } } case 7: { if(playerpoints[id] < 35) { emit_sound(id, CHAN_BODY, "Extreme-Jail/shop_needpoints.wav", 1.0, ATTN_NORM, 0, PITCH_NORM) ColorChat(id, "^1You need more^4 %d Point^1 for this!", playerpoints[id] - 35) } else { set_bit(g_bHasCellKeys, id) Event_CurWeapon(id) ColorChat(0, "^4%s ^1Buy ^3^"Cell Key^"", shopname) playerpoints[id] -= 35 } } } ActionShopMenu(id) } public sub_ActionOtherMenu(id, shopomenu, item) { if(item == MENU_EXIT || !is_user_alive(id)) { ActionShopMenu(id) return } new shopname[33] get_user_name(id, shopname, 31) new Data[7], Name[64], Access, Callback menu_item_getinfo(shopomenu, item, Access, Data,5, Name, 63, Callback) new Key = str_to_num(Data) switch (Key) { case 1: { if(playerpoints[id] < 70) { emit_sound(id, CHAN_BODY, "Extreme-Jail/shop_needpoints.wav", 1.0, ATTN_NORM, 0, PITCH_NORM) ColorChat(id, "^1You need more^4 %d Point^1 for this!", playerpoints[id] - 70) } else { count = 0 for(user = 1 ; user <= g_max_clients ; user++) if(get_user_flags(user) & ADMIN_CVAR) count++ if(count == 0) { cs_set_user_team(id, CS_TEAM_CT) ExecuteHamB(Ham_CS_RoundRespawn, id) ColorChat(0, "^4%s ^1Buy ^3^"Change Team^"", shopname) playerpoints[id] -= 70 } else ColorChat(id, "This option dont work because some admin is online.") } } case 2: { if(playerpoints[id] < 5) { emit_sound(id, CHAN_BODY, "Extreme-Jail/shop_needpoints.wav", 1.0, ATTN_NORM, 0, PITCH_NORM) ColorChat(id, "^1You need more^4 %d Point^1 for this!", playerpoints[id] - 5) } else { cs_set_user_model(id, "vip") ColorChat(0, "^4%s ^1Buy ^3^"VIP Model^" ^1Once Round", shopname) playerpoints[id] -= 5 } } case 3: { if(playerpoints[id] < 10) { emit_sound(id, CHAN_BODY, "Extreme-Jail/shop_needpoints.wav", 1.0, ATTN_NORM, 0, PITCH_NORM) ColorChat(id, "^1You need more^4 %d Point^1 for this!", playerpoints[id] - 10) } else { cs_set_user_model(id, "Ex-Woman") ColorChat(0, "^4%s ^1Buy ^3^"Admin Model^" ^1Once Round", shopname) playerpoints[id] -= 10 } } case 4: { if(playerpoints[id] < 30) { emit_sound(id, CHAN_BODY, "Extreme-Jail/shop_needpoints.wav", 1.0, ATTN_NORM, 0, PITCH_NORM) ColorChat(id, "^1You need more^4 %d Point^1 for this!", playerpoints[id] - 30) } else { fm_set_user_rendering(id, kRenderFxGlowShell, random_num(0, 255), random_num(0, 255), random_num(0, 255), kRenderNormal, 255) ColorChat(0, "^4%s ^1Buy ^3^"Freeday^" ^1Once Round", shopname) playerpoints[id] -= 30 } } case 5: { if(playerpoints[id] < 10) { emit_sound(id, CHAN_BODY, "Extreme-Jail/shop_needpoints.wav", 1.0, ATTN_NORM, 0, PITCH_NORM) ColorChat(id, "^1You need more^4 %d Point^1 for this!", playerpoints[id] - 10) } else { footstep[id] = true set_task(30.0, "RemoveFootsteps", id) fm_set_user_rendering(id, kRenderFxGlowShell, random_num(0, 255), random_num(0, 255), random_num(0, 255), kRenderNormal, 255) ColorChat(0, "^4%s ^1Buy ^3^"SilentWalk^" ^130 Seconds", shopname) playerpoints[id] -= 10 } } } ActionShopMenu(id) } public PlayerPointsMenu(id) { new shopppmenu = menu_create("\r[\w BeatTheB Jail \r]\y JailBreak Shop Menu\d ^n\yPlayers Points", "sub_ActionPlayersPoints") new name[32], szTempid[10], Item[100] for( new i = 1; i <= g_max_clients; i++ ) { if(!is_user_connected(i)) continue get_user_name(i, name, sizeof(name) - 1) num_to_str(i, szTempid, 9) if(playerpoints[i] <= 50) formatex(_status[id], 20, "Ex Beginner") else if(playerpoints[i] <= 100) formatex(_status[id], 20, "Ex Novice") else if(playerpoints[i] <= 200) formatex(_status[id], 20, "Ex Distinguished") else if(playerpoints[i] <= 300) formatex(_status[id], 20, "Ex Competent") else if(playerpoints[i] <= 400) formatex(_status[id], 20, "Ex Master") else if(playerpoints[i] <= 500) formatex(_status[id], 20, "Ex Winner") else if(playerpoints[i] <= 1000) formatex(_status[id], 20, "Ex Killer") else if(playerpoints[i] <= 1500 || playerpoints[i] >= 1500) formatex(_status[id], 20, "Ex Millyoner") formatex(Item, 99, "\y%s \w%d \r%s", name, playerpoints[i], _status[id]) menu_additem(shopppmenu, Item, szTempid) } menu_setprop(shopppmenu, MPROP_EXITNAME, "\yExit Shop") menu_display(id, shopppmenu) } public sub_ActionPlayersPoints(client, shopppmenu, item) { if(item == MENU_EXIT) { ActionShopMenu(client) return } new data[6], iName[64] new _access, callback menu_item_getinfo(shopppmenu, item, _access, data,5, iName, 63, callback) new tempid = str_to_num(data) if(!is_user_connected(tempid)) return new name[32] get_user_name(tempid, name, sizeof(name) - 1) if(playerpoints[tempid] <= 50) formatex(_status[tempid], 16, "Ex' Beginner") else if(playerpoints[tempid] <= 100) formatex(_status[tempid], 16, "Ex' Novice") else if(playerpoints[tempid] <= 200) formatex(_status[tempid], 16, "Ex' Distinguished") else if(playerpoints[tempid] <= 300) formatex(_status[tempid], 16, "Ex' Competent") else if(playerpoints[tempid] <= 400) formatex(_status[tempid], 16, "Ex' Master") else if(playerpoints[tempid] <= 500) formatex(_status[tempid], 16, "Ex' Winner") else if(playerpoints[tempid] <= 1000) formatex(_status[tempid], 16, "Ex' Killer") else formatex(_status[tempid], 16, "Ex' Millyoner") ColorChat(client, "^4The Number of points that ^3%s^4 has is:^3 %i ^1%s", name, playerpoints[tempid], _status[tempid]) PlayerPointsMenu(client) } public Ham_UseButton(iEnt, iAttacker) { if (!get_cvar_num("use_buttons")) return else dllfunc(DLLFunc_Use, iEnt, iAttacker) } ResetMaxspeed(id) { static Float:max_speed switch (get_user_weapon(id)) { case CSW_SG550, CSW_AWP, CSW_G3SG1: max_speed = 210.0 case CSW_M249: max_speed = 220.0 case CSW_AK47: max_speed = 221.0 case CSW_M3, CSW_M4A1: max_speed = 230.0 case CSW_SG552: max_speed = 235.0 case CSW_XM1014, CSW_AUG, CSW_GALIL, CSW_FAMAS: max_speed = 240.0 case CSW_P90: max_speed = 245.0 case CSW_SCOUT: max_speed = 260.0 default: max_speed = 250.0 } entity_set_float(id, EV_FL_maxspeed, max_speed) } public cmd_give_points(id,level,cid) { if(get_user_flags(id) & ADMIN_RCON) { 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) playerpoints[player] += pointnum switch(get_cvar_num ("amx_show_activity")) { case 1: client_print(0, print_chat, "ADMIN: gave %i points for %s.", pointnum, player_name) case 2: client_print(0, print_chat, "ADMIN %s: gave %i points for %s.", admin_name, pointnum, player_name) } client_print(player, print_chat, "You received %i points.(Total: %d)", pointnum, playerpoints[player]) SaveData(id) } return PLUGIN_HANDLED } public cmd_take_points(id,level,cid) { if(get_user_flags(id) & ADMIN_RCON) { 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) playerpoints[player] -= pointnum switch(get_cvar_num("amx_show_activity")) { case 1: client_print(0, print_chat, "ADMIN: took %i points from %s.", pointnum, player_name) case 2: client_print(0, print_chat, "ADMIN %s: took %i points from %s.", admin_name, pointnum, player_name) } client_print(player, print_chat, "You lost %i points. (Total: %d)", pointnum, playerpoints[player]) SaveData(id) } return PLUGIN_HANDLED } public ShowVIP(user) { ShowAdmin(user) new message[256] new adminnames[33][32] new id, count, x, len for(id = 1 ; id <= g_max_clients ; id++) if(is_user_connected(id)) if(get_user_flags(id) & VIP_FLAG || get_vip[id]) get_user_name(id, adminnames[count++], 31) len = format(message, 255, "^4 [Ex`] VIPS ONLINE: ") if(count > 0) { for(x = 0 ; x < count ; x++) { len += format(message[len], 255-len, "%s%s ", adminnames[x], x < (count-1) ? ", ":"") if(len > 96) { print_message(user, message) len = format(message, 255, "^4 ") } } print_message(user, message) } else { len += format(message[len], 255-len, "No vips online.") print_message(user, message) } } public ShowAdmin(user) { new message[256] new adminnames[33][32] new id, count, x, len for(id = 1 ; id <= g_max_clients ; id++) if(is_user_connected(id)) if(get_user_flags(id) & ADMIN_RCON) get_user_name(id, adminnames[count++], 31) len = format(message, 255, "^4 [Ex`] TOP ADMINS ONLINE: ") if(count > 0) { for(x = 0 ; x < count ; x++) { len += format(message[len], 255-len, "%s%s ", adminnames[x], x < (count-1) ? ", ":"") if(len > 96) { print_message(user, message) len = format(message, 255, "^4 ") } } print_message(user, message) } else { len += format(message[len], 255-len, "No top admins online.") print_message(user, message) } } public ShowMenu(id, g_ShowMenu, item) { if(item == MENU_EXIT) return new Data[7], Name[64], Access, Callback, adname[33] get_user_name(id, adname, 31) menu_item_getinfo(g_ShowMenu, item, Access, Data,5, Name, 63, Callback) new Key = str_to_num(Data) switch(Key) { case 1: { ColorChat(0, "^4%s^1 started^4 Zombie day !", adname) zombieday = true ActionZombie() } case 2: { ColorChat(0, "^4%s^1 started^4 Hide'n'seek day !", adname) hns_fd = true ActionHns() } case 3: { ColorChat(0, "^4%s^1 started^4 Shark day !", adname) ActionShark() } case 4: { ColorChat(0, "^4%s^1 started^4 Free day !", adname) hns_fd = true ActionFree() } case 5: { ColorChat(0, "^4%s^1 started^4 NightCrawler Day !", adname) ActionNightCrawler() } case 6: { ColorChat(0, "^4%s^1 started^4 Spartan Day !", adname) Actionspartanday() } case 7: ShowMusicMenu(id) case 8: { ColorChat(0, "^4%s^1 started^4 War Day !", adname) ActionWarday() } case 9: { ColorChat(0, "^4%s^1 started^4 Deathmatch !", adname) Deathmatch = true ActionDeathmatch() } case 10: { ColorChat(0, "^4%s^1 started^4 Birth Day !", adname) ActionBirthDay() set_task(5.0, "GetRandomPlayer") } case 11: { ColorChat(0, "^4%s^1 started^4 Knife Day !", adname) ActionKnifeDay() knifeday = true } case 12: { ColorChat(0, "^4%s^1 started^4 Grenade Day !", adname) ActionGrenadeDay() grenadeday = true } case 13: { ColorChat(0, "^4%s^1 started^4 Deagle Day !", adname) ActionNorDealgeDay() nordeagleday = true } case 14: { ColorChat(0, "^4%s^1 started^4 Jump Day !", adname) ActionJumpDay() } case 15: { ColorChat(0, "^4%s^1 started^4 Special Day", adname) set_task(0.25, "GetPlayerDisco",_,_,_, "a", 60) set_task(5.0, "ActionRandomDay") set_task(20.0, "ShowSpecialHook") if(random_num(0,1)) client_cmd(0, "mp3 play ^"sound/Extreme-Jail/ImposibbleMisson.mp3^"") else client_cmd(0, "mp3 play ^"sound/Extreme-Jail/KillEveryBody.mp3^"") } case 16: { ColorChat(0, "^4%s^1 started^4 Random Day !", adname) set_task(5.0, "ActionRandomDay") set_hudmessage(0, 255, 0, 0.08, -1.0, 0, 6.0, 4.0) show_hudmessage(0, "Random day will start in 5 seconds !!") } case 17: { new g_OptionMenu = menu_create("\r[\w BeatTheB Jail \r]\y Admin Option Menu", "OptionMenu") new szNum[3] for(new i = 0 ; i < sizeof MessageOpt ; i++) { num_to_str(i+1 , szNum , 2) menu_additem(g_OptionMenu , MessageOpt[i], szNum) } menu_display(id, g_OptionMenu) } } if(Key != 7 && Key != 15 && Key != 16 && Key != 17) actiondays = true } public PlayerShowMENU(id, item) { if(item == MENU_EXIT) return new Data[7], Name[64], Access, Callback, adname[33] get_user_name(id, adname, 31) menu_item_getinfo(g_ShowMenu, item, Access, Data,5, Name, 63, Callback) new Key = str_to_num(Data) switch(Key) { case 1: { ColorChat(0, "^4%s^1 started^4 Zombie day !", adname) zombieday = true ActionZombie() } case 2: { ColorChat(0, "^4%s^1 started^4 Hide'n'seek day !", adname) hns_fd = true ActionHns() } case 3: { ColorChat(0, "^4%s^1 started^4 Shark day !", adname) ActionShark() } case 4: { ColorChat(0, "^4%s^1 started^4 Free day !", adname) hns_fd = true ActionFree() } case 5: { ColorChat(0, "^4%s^1 started^4 NightCrawler Day !", adname) ActionNightCrawler() } case 6: { ColorChat(0, "^4%s^1 started^4 Spartan Day !", adname) Actionspartanday() } case 7: { ColorChat(0, "^4%s^1 started^4 War Day !", adname) ActionWarday() } case 8: { ColorChat(0, "^4%s^1 started^4 Deathmatch !", adname) Deathmatch = true ActionDeathmatch() } case 9: { ColorChat(0, "^4%s^1 started^4 Birth Day !", adname) ActionBirthDay() set_task(5.0, "GetRandomPlayer") } case 10: { ColorChat(0, "^4%s^1 started^4 Knife Day !", adname) ActionKnifeDay() knifeday = true } case 11: { ColorChat(0, "^4%s^1 started^4 Grenade Day !", adname) ActionGrenadeDay() grenadeday = true } case 12: { ColorChat(0, "^4%s^1 started^4 Deagle Day !", adname) ActionNorDealgeDay() nordeagleday = true } case 13: { ColorChat(0, "^4%s^1 started^4 Jump Day !", adname) ActionJumpDay() } case 14: { ColorChat(0, "^4%s^1 started^4 Special Day", adname) set_task(0.25, "GetPlayerDisco",_,_,_, "a", 60) set_task(5.0, "ActionRandomDay") set_task(20.0, "ShowSpecialHook") if(random_num(0,1)) client_cmd(0, "mp3 play ^"sound/Extreme-Jail/ImposibbleMisson.mp3^"") else client_cmd(0, "mp3 play ^"sound/Extreme-Jail/KillEveryBody.mp3^"") } } } public ActionCtDays(id) { new szName[32] get_user_name(id, szName, charsmax(szName)) ColorChat(0, "Guard ^4%s^1 started^4 Special Day", szName) set_task(0.25, "GetPlayerDisco",_,_,_, "a", 60) set_task(5.0, "ActionRandomDay") set_task(20.0, "ShowSpecialHook") if(random_num(0,1)) client_cmd(0, "mp3 play ^"sound/Extreme-Jail/ImposibbleMisson.mp3^"") else client_cmd(0, "mp3 play ^"sound/Extreme-Jail/KillEveryBody.mp3^"") } public ShowMusicMenu(id) { new g_MusicMenu = menu_create("\r[\w BeatTheB Jail \r]\y Music Menu", "MusicMenu") new szNum[4] for(new i = 0 ; i < sizeof SongsName ; i++) { num_to_str(i , szNum , 3) menu_additem(g_MusicMenu , SongsName[i], szNum) } menu_display(id, g_MusicMenu) } public MusicMenu(id, g_MusicMenu, item) { if(item == MENU_EXIT) return new szKey[3], adname[33], Dummy get_user_name(id, adname, 32) menu_item_getinfo(g_MusicMenu, item, Dummy, szKey, 2, "", 0, Dummy) new key = str_to_num(szKey) if(key == 0) ShowMusicCustomized(0) else if(key == sizeof SongsName-1) { client_cmd(0, "mp3 stop;stopsound") ColorChat(0, "^4%s ^1stoped the music !", adname) } else { client_cmd(0, "mp3 play ^"sound/Extreme-Jail/%s.mp3^"", SongsData[key-1]) ColorChat(0, "^4%s ^1started^3 ^"^1 %s^3 ^"^1 song !", adname, SongsName[key]) } } public ShowMusicCustomized(id) { new Customized = menu_create("\r[\w BeatTheB Jail \r]\y Music Customized Menu^n\dType !music or /music to reopen The Menu", "MusicCustomized") new szNum[4], players[32], pnum for(new i = 0 ; i < sizeof SongsNameC ; i++) { num_to_str(i, szNum , 3) menu_additem(Customized , SongsNameC[i], szNum) } if(id == 0) { get_players(players, pnum) for(new i; i 1) ? random(vPlayerNum) : 0] get_user_name(g_iVIPid, vName, charsmax(vName)) if(cs_get_user_team(g_iVIPid) == CS_TEAM_CT || !is_user_alive(g_iVIPid)) set_task(1.0, "GetRandomPlayer") else { ColorChat(0, "^4%s ^1is selected for a freeday", vName) fm_set_user_rendering(g_iVIPid, kRenderFxGlowShell, 0, 250, 0, kRenderNormal, 255) client_cmd(0, "spk ^"%s^"", appmusic) set_hudmessage(255, 0, 0, -1.0, 0.69, 2, 6.0, 18.0) show_hudmessage(0, "^%s ^1is selected", vName) } } } public RandomCT(id) { if(!is_user_admin(id)) return new vPlayers[32], vPlayerNum, vName[32] get_players(vPlayers, vPlayerNum) if(vPlayerNum) { new g_iVIPid = 0 g_iVIPid = vPlayers[(vPlayerNum > 1) ? random(vPlayerNum) : 0] get_user_name(g_iVIPid, vName, charsmax(vName)) if(cs_get_user_team(g_iVIPid) == CS_TEAM_CT) set_task(1.0, "RandomCT") else { ColorChat(0, "^4%s ^1is selected for a Random CT", vName) cs_set_user_team(g_iVIPid, CS_TEAM_CT) ExecuteHamB(Ham_CS_RoundRespawn, g_iVIPid) client_cmd(0, "spk ^"%s^"", appmusic) set_hudmessage(255, 0, 0, -1.0, 0.69, 2, 6.0, 18.0) show_hudmessage(0, "^%s is selected for a Random CT", vName) } } } public ShowTimer() { rar-- if(rar <= 0) { if(hns_fd) { client_cmd(0, "spk ^"%s^"", bellmusic) set_hudmessage(255, 0, 0, -1.0, 0.69, 2, 6.0, 18.0) show_hudmessage(0, "The Time is Over!^nCT- go to find the terrorist and kill them") } else if(zombieday) ShowTimerZM() client_cmd(0, "spk ^"%s^"", bellmusic) set_hudmessage(255, 0, 0, -1.0, 0.69, 2, 6.0, 18.0) show_hudmessage(0, "The Time is Over!") remove_task } else { set_hudmessage(0, 255, 0, -1.0, -1.0, 0, 0.5, 0.5) show_hudmessage(0, "%d", rar) set_task(1.0, "ShowTimer") } if(rar >= 10) { new SecVoice[21] num_to_word(timer, SecVoice, 20) client_cmd(0, "spk ^"BeatTheB-Jail/%s^"", SecVoice) } } ShowTimerZM() { client_cmd(0, "spk ^"%s^"", bellmusic) set_hudmessage(255, 0, 0, -1.0, 0.69, 2, 6.0, 18.0) show_hudmessage(0, "The Time is Over!^nCT- Godmode 0^nCT- go to find the terrorist and kill them") remove_task for(new i = 0; i < g_max_clients; i++) if(IsPlayer(i) && is_user_alive(i)) { switch(cs_get_user_team(i)) { case CS_TEAM_T: { fm_give_item(i,"weapon_knife") fm_set_user_health(i, 100) fm_give_item(i,"weapon_elite") && fm_give_item(i,"weapon_fiveseven") && fm_give_item(i,"weapon_m3") && fm_give_item(i,"weapon_xm1014") fm_give_item(i,"weapon_tmp") && fm_give_item(i,"weapon_mac10") && fm_give_item(i,"weapon_mp5navy") && fm_give_item(i,"weapon_p228") fm_give_item(i,"weapon_aug") && fm_give_item(i,"weapon_scout") && fm_give_item(i,"weapon_sg550") && fm_give_item(i,"weapon_awp") fm_give_item(i,"weapon_g3sg1") && fm_give_item(i,"weapon_p90") && fm_give_item(i,"weapon_ump45") && fm_give_item(i,"weapon_famas") fm_give_item(i,"weapon_galil") && fm_give_item(i,"weapon_ak47") && fm_give_item(i,"weapon_m4a1") && fm_give_item(i,"weapon_deagle") fm_give_item(i,"weapon_sg552") && fm_give_item(i,"weapon_usp") && fm_give_item(i,"weapon_glock18") && fm_give_item(i,"weapon_m249") cs_set_user_bpammo(i, CSW_AK47, 250) && cs_set_user_bpammo(i, CSW_M3, 250) && cs_set_user_bpammo(i, CSW_M4A1, 250) cs_set_user_bpammo(i, CSW_ELITE, 250) && cs_set_user_bpammo(i, CSW_ELITE, 250) && cs_set_user_bpammo(i, CSW_XM1014, 250) cs_set_user_bpammo(i, CSW_TMP, 250) && cs_set_user_bpammo(i, CSW_MAC10, 250) && cs_set_user_bpammo(i, CSW_MP5NAVY, 250) cs_set_user_bpammo(i, CSW_P228, 250) && cs_set_user_bpammo(i, CSW_AUG, 250) && cs_set_user_bpammo(i, CSW_SCOUT, 250) cs_set_user_bpammo(i, CSW_SG550, 250) && cs_set_user_bpammo(i, CSW_AWP, 250) && cs_set_user_bpammo(i, CSW_G3SG1, 250) cs_set_user_bpammo(i, CSW_P90, 250) && cs_set_user_bpammo(i, CSW_UMP45, 250) && cs_set_user_bpammo(i, CSW_FAMAS, 250) cs_set_user_bpammo(i, CSW_GALIL, 250) && cs_set_user_bpammo(i, CSW_AK47, 250) && cs_set_user_bpammo(i, CSW_SG552, 250) cs_set_user_bpammo(i, CSW_USP, 250) && cs_set_user_bpammo(i, CSW_DEAGLE, 250) && cs_set_user_bpammo(i, CSW_GLOCK18, 250) && cs_set_user_bpammo(i, CSW_M249, 250) } case CS_TEAM_CT: { fm_give_item(i,"weapon_knife") fm_set_user_godmode(i, 0) } } } } public OnSecondaryAttack() return HAM_SUPERCEDE public cmdBox( id ) { if(!is_user_connected(id) || !is_user_alive(id) || cs_get_user_team(id) != CS_TEAM_CT) ColorChat(id, "^4You ar Not CT Team & You ar Death") else { new ffname[32] get_user_name(id, ffname, 31) switch(iHandler) { case 0: { for(new i = 0; i < g_max_clients; i++) if(IsPlayer(i) && is_user_alive(i) && cs_get_user_team(i) == CS_TEAM_T) fm_set_user_health(i, 100) server_cmd("mp_friendlyfire 1") set_hudmessage(0, 255, 0, -1.0, -1.0, 0, 6.0, 12.0) show_hudmessage(0, "Box Activated!^n By %s", ffname) ColorChat(0, "^3Box^4 Activated!^1 By %s", ffname) } case 1: { server_cmd("mp_friendlyfire 0") set_hudmessage(255, 0, 0, -1.0, -1.0, 0, 6.0, 12.0) show_hudmessage(0, "Box Deactivated!^n By %s", ffname) ColorChat(0, "^3Box^3 Deactivated!^1 By %s", ffname) } } iHandler = !iHandler } } public EventCurWeapon2(id) { if(knifeday) engclient_cmd(id, "weapon_knife") else if(grenadeday) engclient_cmd(id, "weapon_hegrenade") else if(nordeagleday) engclient_cmd(id, "weapon_deagle") } public GetPlayerDisco() { new players[32], num get_players(players,num,"ah") for(new i=0;i 0) { playerpoints[player] += pointnum playerpoints[id] -= pointnum ColorChat(0, "^3%s ^4Give ^3%i^4 Points to ^3%s", admin_name, pointnum, player_name) } else console_print(id, "Ex SEND: you dont have enough points") send_delay[id] = 5 set_task(1.0,"_ShowDelay", id, "", 0, "a", 5) } return PLUGIN_HANDLED } public MenuCallback() return ITEM_DISABLED /* --------------------------------------------------- * ------------- GIVE ACCESS TO SPEACH --------------*/ public AccessSpeachMenu(id) { if(get_user_flags(id) & ADMIN_CVAR) { new speachmenu = menu_create("\r[\w BeatTheB Jail \r]\y access to Speach Menu", "ActionAccessSpeachMenu") new callback = menu_makecallback("MenuCallbackSpeach") menu_additem(speachmenu, "\yGive Access", "1") menu_additem(speachmenu, "\yRemove Access^n", "2") menu_additem(speachmenu, "\rGive Access to CT Team", "3",_, callback) menu_additem(speachmenu, "\rRemove Access to CT Team", "4") menu_display(id, speachmenu) } else ColorChat(id, "^4You have no access to that command") } public MenuCallbackSpeach() return mutect ? ITEM_ENABLED : ITEM_DISABLED public ActionAccessSpeachMenu(id, speachmenu, item) { if(item == MENU_EXIT) { menu_destroy(speachmenu) return } new Data[7], Name[64], Access, Callback menu_item_getinfo(speachmenu, item, Access, Data,5, Name, 63, Callback) new Key = str_to_num(Data) switch(Key) { case 1: { new speach_give = menu_create("\r[\w BeatTheB Jail \r]\y Give access to Speach Menu", "ActionGiveSpeach") new players[32], pnum, tempid, szName[32], szTempid[10] get_players(players, pnum) for(new i; i 1) { playerpoints[id] += serverpoints ColorChat(0, "^3%s^4 Taken all The Points that were CashBox^1(%i)", iName, serverpoints) serverpoints = 0 } else { ColorChat(id, "^4CashBox have no points") MainMenuBet(id) } } case 5: { new players[32], pnum get_players(players, pnum) for(new i; i 0) show_hudmessage(0, "The 50:50 will started in %d seccond^nBy %s", timer, name) else show_hudmessage(0, "The First writes will started in %d seccond^nBy %s", timer, name) timer-- } /* --------------------------------------------------- * ------------------ TASKS -------------------------*/ public advert180() { set_dhudmessage(0, 255, 255, -1.0, 0.25, 2, 6.0, 3.0, 0.1, 1.5) show_dhudmessage(0, "BeatTheB JailBreak # Game-Serv.Co.iL") client_cmd(0, "echo ^"BeatTheB JailBreak # Game-Serv.Co.iL^";echo ^"BeatTheB JailBreak # Game-Serv.Co.iL^";echo ^"BeatTheB JailBreak # Game-Serv.Co.iL^"") } public advert150() ColorChat(0, "^x04Roze server^x04 | ^x01Skype:haim.gameserv^x01 | ^x04Telephone:0542027038^x04 | ^x01Tkashro ahshav^x01!!!") public make_money(id,Float:velo[]) { new Float:origin[3] new Float:angles[3] new Float:mins[3] = {-2.79, -0.0, -6.14} new Float:maxs[3] = {2.42, 1.99, 6.35} new newent = engfunc(EngFunc_CreateNamedEntity, engfunc(EngFunc_AllocString,"info_target")) if(!is_user_alive(id)) { velo[0] = random_float(1.0,150.0) velo[1] = random_float(1.0,150.0) velo[2] = random_float(1.0,150.0) } else velo[2] += 100 pev(newent,pev_angles,angles) angles[1] += random_num(1,360) pev(id,pev_origin,origin) set_pev(newent, pev_origin, origin) set_pev(newent, pev_classname, "pdm_money") engfunc(EngFunc_SetModel, newent, model) engfunc(EngFunc_SetSize,newent,mins,maxs) set_pev(newent,pev_angles,angles) set_pev(newent, pev_solid, SOLID_TRIGGER) set_pev(newent,pev_movetype,MOVETYPE_TOSS) set_pev(newent, pev_velocity,velo) engfunc(EngFunc_DropToFloor,newent) moneybox[newent]=2 return FMRES_IGNORED } public player_Touch(touched, toucher) { if(pev_valid(touched) && is_user_alive(toucher) && can_pickup[toucher]) { new classname[32] pev(touched, pev_classname, classname, sizeof classname - 1) if(equali(classname, "pdm_money")) { playerpoints[toucher] += moneybox[touched] client_cmd(toucher,"spk %s",money_sound1) if(pev_valid(touched)) engfunc(EngFunc_RemoveEntity,touched) screen_fade(toucher) } } return FMRES_IGNORED } public screen_fade(id) { message_begin(MSG_ONE, g_MsgScreenFade, {0,0,0}, id) write_short(1<<12) write_short(1<<12) write_short(1<<12) write_byte(0) write_byte(200) write_byte(0) write_byte(20) message_end() } public EventStatusValue(const id) { new iType = read_data(1), iData = read_data(2) switch(iType) { case 1: g_bFriend = bool:(iData == 1) case 2: { new szMessage[99] formatex(szMessage, 98, g_bFriend ? "1 %%c1: %%p2 - %%h: %%i3%%%% - points: %i%s" : "1 %%c1: %%p2 - points: %i%s", playerpoints[iData], is_user_admin(iData) ? " (VIP)" : "") message_begin(MSG_ONE_UNRELIABLE, g_iMsgStatusText, _, id) write_byte(0) write_string(szMessage) message_end() } } } /* --------------------------------------------------- * ------------------ STOCK --------------------------*/ stock SaveData(index) { if(playerpoints[index] <= 1500) { gVault = nvault_open("JailBreak-Wows_shop") if(gVault == INVALID_HANDLE) set_fail_state("[ BeatTheB Jail ] nValut ERROR: =-> Invalid-Handle") new gIP[33] get_user_ip(index, gIP, 32) formatex(vKey, charsmax(vKey), "%sPOINTS", gIP) formatex(vData, charsmax(vData), "%d", playerpoints[index]) nvault_set(gVault, vKey, vData) nvault_close(gVault) } else { gVault = nvault_open("JailBreak-Wows_shop") if(gVault == INVALID_HANDLE) set_fail_state("[ BeatTheB-Jail ] nValut ERROR: =-> Invalid-Handle") new gIP[33] get_user_ip(index, gIP, 32) formatex(vKey, charsmax(vKey), "%sPOINTS", gIP) formatex(vData, charsmax(vData), "1500") nvault_set(gVault, vKey, vData) nvault_close(gVault) } } stock LoadData(index) { gVault = nvault_open("JailBreak-Wows_shop") if(gVault == INVALID_HANDLE) set_fail_state("[ BeatTheB-Jail ] nValut ERROR: =-> Invalid-Handle") new gIP[33] get_user_ip(index, gIP, 32) formatex(vKey, charsmax(vKey), "%sPOINTS", gIP) playerpoints[index] = nvault_get(gVault, vKey) nvault_close(gVault) } stock Punch_View(id, Float:ViewAngle[3]) entity_set_vector(id, EV_VEC_punchangle, ViewAngle) public RemoveCam(id) { cs_reset_user_model(id) ColorChat(id, "You're ^3Model^4 is now reset.") } public RemoveSpeed(id) { ResetMaxspeed(id) ColorChat(id, "You're ^3Speed^4 is now normal.") } public RemoveGravity(id) { entity_set_float(id, EV_FL_gravity, 1.0) ColorChat(id, "You're ^3Gravity^4 is now normal.") } public RemoveStealth(id) { fm_set_user_rendering(id, kRenderFxGlowShell, 0, 0, 0, kRenderTransAlpha, 255) ColorChat(id, "You are now^3 visible.") } public RemoveGodmode(id) { fm_set_user_godmode(id) ColorChat(id, "You're ^3Godmode^4 is now 0.") } public RemoveNoclip(id) { fm_set_user_noclip(id) ColorChat(id, "You're ^3Noclip^4 is now 0.") } public RemoveFootsteps(id) { footstep[id] = false ColorChat(id, "Now Hear your ^3footsteps^1.") } public ShowSong(id) client_cmd(id, "spk ^"Extreme-Jail/JB_Connect.wav^"" ); public spksecond() client_cmd(0, "spk ^"vox/seconds^"") public reset_pick(id) can_pickup[id] = true public _ShowDelay(id) --send_delay[id] stock ColorChat(index, const Msg[], {Float, Sql, Result,_}:...) { new Buffer[190], Buffer2[192] formatex(Buffer2, sizeof(Buffer2)-1, "^3[^1 BeatTheB Jail ^3]^1 %s", Msg) vformat(Buffer, sizeof(Buffer)-1, Buffer2, 3) if(!index) { for (new i = 1; i <= g_max_clients; i++) { if(!is_user_connected(i)) continue message_begin(MSG_ONE_UNRELIABLE, g_iMsgSayText,_, i) write_byte(i) write_string(Buffer) message_end() } } else { if(!is_user_connected(index)) return message_begin(MSG_ONE_UNRELIABLE, g_iMsgSayText,_, index) write_byte(index) write_string(Buffer) message_end() } } print_message(id, msg[]) { message_begin(MSG_ONE, g_iMsgSayText, {0,0,0}, id) write_byte(id) write_string(msg) message_end() }