Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <amxmodx>
- #include <amxmisc>
- #include <cstrike>
- #include <hamsandwich>
- #include <dhudmessage>
- #include <fakemeta_util>
- #include <fakemeta>
- #include <engine>
- #include <nvault>
- #include <vault>
- #include <fun>
- #include <xs>
- #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 Float:g_fWallOrigin[33][3];
- new g_max_clients, g_PlayerCrowbar, g_PlayerVoice, g_PlayerScout, g_PlayerDildo, g_PlayerStunGun,
- g_ShowMenu, beacon_sprite, rar, cashtimer, 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, g_GoldenScout, g_Knife0, g_Knife1, g_Knife2, g_Knife3, g_Knife4, g_Knife5, g_Knife6, g_Knife7, g_Knife8, g_Knife9, bitvault,
- 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:BoxDay, bool:hns, bool:fd, bool:RunAwayDay, bool:fire, bool:knifeday, bool:nightcrawler, bool:knifematchday, 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"}
- 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", "Stop Music"}
- new const SongsNameC[][] = {"\rMusic For Every Body \y [CT/Admin Only]", "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", "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", "RunAway Day","Box Day", "Spartan Day", "Music Menu", "War Day", "Deathmatch", "KnifeDM", "Birth Day", "Knife Day", "Grenade Day", "Deagle Day", "Jump Day", "Rambo Day \r[ NEW ]", "Fire Day \r[ NEW ]", "\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", "")
- register_clcmd("say", "ClientCommandSay")
- register_clcmd("say_team", "ClientCommandSay")
- register_clcmd("say", "CmdSayMsg")
- register_clcmd("chooseteam", "ActionChooseteam")
- register_clcmd("jointeam", "ActionShopMenu")
- register_clcmd("say /crowbar", "Crowbar")
- register_clcmd("say /nocrowbar", "UnCrowbar")
- register_clcmd("say /stungun", "StunGun")
- register_clcmd("say /nostungun", "UnStunGun")
- register_clcmd("say /dildo", "Dildo")
- register_clcmd("say /nodildo", "UnDildo")
- register_clcmd("say /stopdeathmatch", "StopDeathMatch")
- register_clcmd("say /stopdays", "StopDays")
- 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_clcmd("say /nife", "knife")
- 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")
- bitvault = nvault_open("bits_vault");
- if(bitvault == INVALID_HANDLE)
- set_fail_state( "Error opening bits Vault" );
- 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_Connecting.mp3")
- precache_sound("Extreme-Jail/ImposibbleMisson.mp3")
- precache_sound("Extreme-Jail/KillEveryBody.mp3")
- precache_sound("FirstWrites/5.wav")
- precache_sound("FirstWrites/4.wav")
- precache_sound("FirstWrites/3.wav")
- precache_sound("FirstWrites/2.wav")
- precache_sound("FirstWrites/1.wav")
- precache_sound("FirstWrites/winner.wav")
- precache_sound("FirstWrites/loser.wav")
- 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("models/Extreme-Jail/p_Goldenscout.mdl")
- precache_model("models/Extreme-Jail/v_Goldenscout.mdl")
- precache_model(model)
- precache_sound(money_sound1)
- beacon_sprite = precache_model("sprites/zbeam2.spr")
- new Formatex[64], i
- for(i=0; i<sizeof SongsData; i++) {
- formatex(Formatex, 63, "Extreme-Jail/%s.mp3", SongsData[i])
- precache_sound(Formatex)
- }
- }
- public RoundStart(id) {
- new money_ent
- while((money_ent=engfunc(EngFunc_FindEntityByString,money_ent,"classname","pdm_money")) != 0)
- engfunc(EngFunc_RemoveEntity,money_ent)
- remove_task
- remove_task(id)
- set_task(0.3, "ActionDayViewer")
- server_cmd("mp_friendlyfire 0")
- DisableHamForward(ForwardSecAttackAwp)
- DisableHamForward(ForwardSecAttackScout)
- set_task(5.0, "ZoomEnable")
- set_task(10.0, "ZoomEnable")
- if(actiondays) {
- actiondays = false
- zombieday = false
- Deathmatch = false
- knifematchday = false
- fd = false
- hns = false
- BoxDay = false
- RunAwayDay = false
- knifeday = false
- grenadeday = false
- nordeagleday = false
- nightcrawler = false
- fire = false
- }
- }
- public ZoomEnable()
- {
- DisableHamForward(ForwardSecAttackAwp)
- DisableHamForward(ForwardSecAttackScout)
- }
- public ActionDayViewer()
- {
- if(menu_wakeup == 7) {
- set_task(0.25, "GetPlayerDisco",_,_,_, "a", 80)
- 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^"")
- } else {
- new rndctstr[21]
- num_to_word(rounds_elapsed, rndctstr, 20)
- client_cmd(0, "spk ^"vox/round %s^"",rndctstr)
- }
- set_task(0.2, "ShowHudMessage")
- }
- public ShowHudMessage()
- {
- new CurrentTime[9]
- new p_playernum = get_playersnum(1)
- get_time("%H:%M:%S", CurrentTime, 8)
- if(menu_wakeup == 7) {
- ColorChat(0, "העש: ^3%d ^1- םינקחש: ^3תבש ^1- הפמ: ^3%s ^1| םוי: ^4%d ^1| דנואר: ^4%s ^1!", rounds_elapsed, g_map, p_playernum, CurrentTime)
- ColorChat(0, "Today is special !")
- set_hudmessage(255, 255, 255, -1.0, 0.71, 0, 15.0, 15.0, 5.0, 5.0)
- show_hudmessage(0,"[םוי %d]^n[תבש]^n[דחוימ םוי]", rounds_elapsed, CurrentTime)
- menu_wakeup = 0
- } else {
- set_hudmessage(255, 255, 255, -1.0, 0.71, 0, 15.0, 15.0, 5.0, 5.0)
- show_hudmessage(0,"[םוי %d]^n[%s]^n[העש %s]", rounds_elapsed, wakeup, CurrentTime)
- ColorChat(0, "העש: ^3%d ^1- םינקחש: ^3%s ^1- הפמ: ^3%s ^1| םוי: ^4%d ^1| דנואר: ^4%s ^1!", rounds_elapsed, wakeup, g_map, p_playernum, CurrentTime)
- }
- }
- public RoundEnd(id)
- {
- set_hudmessage(255, 255, 255, -1.0, 0.71, 0, 0.5, 0.5, 2.0, 2.0)
- show_hudmessage(0,"[רמגנ %d םוי]^n[%s]", rounds_elapsed, wakeup)
- rounds_elapsed++
- menu_wakeup++
- if(menu_wakeup == 1) formatex(wakeup, 10, "ןושאר")
- else if(menu_wakeup == 2) formatex(wakeup, 10, "ינש")
- else if(menu_wakeup == 4) formatex(wakeup, 10, "יעיבר")
- else if(menu_wakeup == 5) formatex(wakeup, 10, "ישימח")
- else if(menu_wakeup == 6) formatex(wakeup, 10, "ישיש")
- for(new i = 1 ; i <= g_max_clients ; i++)
- if(IsPlayer(i) && is_user_connected(i) && cs_get_user_team(i) == CS_TEAM_CT && is_user_alive(i)) {
- playerpoints[i] += 100
- ColorChat(i, " ^4You gained^3 100^4 cash for surviving!")
- }
- server_cmd("weapontrail 0;amx_wpglow_mode 0")
- client_cmd(0, "slot10")
- remove_task
- remove_task(id)
- if(fire) {
- set_task(1.0, "EveryBodyDeadNow")
- }
- if(actiondays) {
- actiondays = false
- zombieday = false
- Deathmatch = false
- knifematchday = false
- fd = false
- BoxDay = false
- RunAwayDay = false
- fire = false
- hns = false
- knifeday = false
- grenadeday = false
- nordeagleday = false
- nightcrawler = false
- }
- }
- public FwdHamPlayerSpawn(id) {
- if(is_user_connected(id) && is_user_alive(id)) {
- fm_strip_user_weapons(id)
- set_pdata_int(id, 116, 0)
- if(get_bit(g_PlayerCrowbar||g_PlayerStunGun||g_PlayerDildo||g_PlayerVoice||g_PlayerSpeed||g_PlayerBH||g_PlayerGravity||g_bHasCellKeys||g_iCellKeys, id||g_GoldenScout))
- {
- clear_bit(g_PlayerCrowbar, id)
- clear_bit(g_PlayerStunGun, id)
- clear_bit(g_PlayerDildo, id)
- clear_bit(g_PlayerVoice, id)
- clear_bit(g_PlayerBH, id)
- clear_bit(g_PlayerSpeed, id)
- clear_bit(g_PlayerGravity, id)
- clear_bit(g_bHasCellKeys, id)
- clear_bit(g_iCellKeys, id)
- clear_bit(g_GoldenScout, id)
- }
- fm_give_item(id, "weapon_knife")
- if(cs_get_user_team(id) == CS_TEAM_CT)
- {
- fm_set_user_gravity(id, 800.0 / 800.0)
- ResetMaxspeed(id)
- fm_give_item(id, "weapon_m4a1")
- fm_give_item(id, "weapon_deagle")
- fm_give_item(id, "weapon_smokegrenade")
- //set_bit(g_PlayerStunGun, id)
- //set_task(2.0, "bit", id,_,_, "b")
- set_task(4.0, "tazer", id)
- set_task(1.0, "WeaponMenu", id)
- cs_set_user_bpammo(id, CSW_M4A1, 120)
- cs_set_user_bpammo(id, CSW_DEAGLE, 70)
- cs_set_user_bpammo(id, CSW_SMOKEGRENADE, 4)
- cs_set_user_armor(id, 100, CS_ARMOR_VESTHELM)
- cs_set_user_model(id, "Ex-Guard")
- } else if(get_user_flags(id) & ADMIN_CVAR)
- cs_set_user_model(id, "Ex-Woman")
- /*else if(is_user_admin(id) || get_vip[id])
- cs_set_user_model(id, "vip")*/
- else cs_reset_user_model(id)
- }
- if(get_bit(g_PlayerCrowbar||g_PlayerStunGun||g_PlayerDildo||g_PlayerVoice||g_PlayerSpeed||g_PlayerBH||g_PlayerGravity||g_bHasCellKeys||g_iCellKeys, id||g_GoldenScout))
- {
- clear_bit(g_PlayerCrowbar, id)
- clear_bit(g_PlayerStunGun, id)
- clear_bit(g_PlayerDildo, id)
- clear_bit(g_PlayerVoice, id)
- clear_bit(g_PlayerBH, id)
- clear_bit(g_PlayerSpeed, id)
- clear_bit(g_PlayerGravity, id)
- clear_bit(g_GoldenScout, id)
- }
- }
- public knife(id)
- {
- set_bit(g_Knife1, id)
- }
- public WeaponMenu(id)
- {
- if(cs_get_user_team(id) == CS_TEAM_CT && !actiondays) {
- new ChooseWeapon = menu_create("\r[\w Extreme Jail \r]\y Choose Your Weapon", "sub_Weapon_Choosed")
- menu_additem(ChooseWeapon, "M4A1 + Deagle + 2 Grenades", "1")
- menu_additem(ChooseWeapon, "AK47 + Deagle + 2 Grenades", "2")
- menu_additem(ChooseWeapon, "SHOTGUN + Deagle + 2 Grenades", "3")
- menu_additem(ChooseWeapon, "MECHINEGUN + Deagle + 2 Grenades", "4")
- menu_additem(ChooseWeapon, "AWP + Deagle + 2 Grenades", "5")
- menu_additem(ChooseWeapon, "Golden Scout!!!!!!! + Deagle + 2 Grenades [This Choose Can Kill You!!!!! ( 50 % )]", "6")
- menu_display(id, ChooseWeapon)
- }
- return PLUGIN_HANDLED
- }
- public sub_Weapon_Choosed(id, ChooseWeapon, item)
- {
- if(item == MENU_EXIT)
- return
- new data[6], iName[64]
- new access, callback
- menu_item_getinfo(ChooseWeapon, item, access, data, 6, iName, 63, callback)
- new key = str_to_num(data)
- switch(key)
- {
- case 1:
- { if(cs_get_user_team(id) == CS_TEAM_CT)
- fm_strip_user_weapons(id)
- fm_give_item(id, "weapon_m4a1")
- fm_give_item(id, "weapon_deagle")
- fm_give_item(id, "weapon_hegrenade")
- fm_give_item(id, "weapon_smokegrenade")
- fm_give_item(id, "weapon_knife")
- cs_set_user_bpammo(id, CSW_M4A1, 255)
- cs_set_user_bpammo(id, CSW_DEAGLE, 255)
- cs_set_user_bpammo(id, CSW_HEGRENADE, 2)
- cs_set_user_bpammo(id, CSW_SMOKEGRENADE, 2)
- }
- case 2:
- {
- if(cs_get_user_team(id) == CS_TEAM_CT)
- fm_strip_user_weapons(id)
- fm_give_item(id, "weapon_ak47")
- fm_give_item(id, "weapon_deagle")
- fm_give_item(id, "weapon_hegrenade")
- fm_give_item(id, "weapon_smokegrenade")
- fm_give_item(id, "weapon_knife")
- cs_set_user_bpammo(id, CSW_AK47, 255)
- cs_set_user_bpammo(id, CSW_DEAGLE, 255)
- cs_set_user_bpammo(id, CSW_HEGRENADE, 2)
- cs_set_user_bpammo(id, CSW_SMOKEGRENADE, 2)
- }
- case 3:
- {
- if(cs_get_user_team(id) == CS_TEAM_CT)
- fm_strip_user_weapons(id)
- fm_give_item(id, "weapon_m3")
- fm_give_item(id, "weapon_deagle")
- fm_give_item(id, "weapon_hegrenade")
- fm_give_item(id, "weapon_smokegrenade")
- fm_give_item(id, "weapon_knife")
- cs_set_user_bpammo(id, CSW_M3, 255)
- cs_set_user_bpammo(id, CSW_DEAGLE, 255)
- cs_set_user_bpammo(id, CSW_HEGRENADE, 2)
- cs_set_user_bpammo(id, CSW_SMOKEGRENADE, 2)
- }
- case 4:
- {
- if(cs_get_user_team(id) == CS_TEAM_CT)
- fm_strip_user_weapons(id)
- fm_give_item(id, "weapon_m249")
- fm_give_item(id, "weapon_deagle")
- fm_give_item(id, "weapon_hegrenade")
- fm_give_item(id, "weapon_smokegrenade")
- fm_give_item(id, "weapon_knife")
- cs_set_user_bpammo(id, CSW_M249, 255)
- cs_set_user_bpammo(id, CSW_DEAGLE, 255)
- cs_set_user_bpammo(id, CSW_HEGRENADE, 2)
- cs_set_user_bpammo(id, CSW_SMOKEGRENADE, 2)
- }
- case 5:
- {
- if(cs_get_user_team(id) == CS_TEAM_CT)
- fm_strip_user_weapons(id)
- fm_give_item(id, "weapon_awp")
- fm_give_item(id, "weapon_deagle")
- fm_give_item(id, "weapon_hegrenade")
- fm_give_item(id, "weapon_smokegrenade")
- fm_give_item(id, "weapon_knife")
- cs_set_user_bpammo(id, CSW_AWP, 255)
- cs_set_user_bpammo(id, CSW_DEAGLE, 255)
- cs_set_user_bpammo(id, CSW_HEGRENADE, 2)
- cs_set_user_bpammo(id, CSW_SMOKEGRENADE, 2)
- }
- case 6:
- {
- if(cs_get_user_team(id) == CS_TEAM_CT)
- set_task(1.0, "KillOrGive", id)
- }
- }
- }
- public KillOrGive(id)
- {
- switch(random_num(0,9)) {
- case 0,1,2,3,4:
- {
- fm_strip_user_weapons(id)
- fm_give_item(id, "weapon_scout")
- fm_give_item(id, "weapon_deagle")
- fm_give_item(id, "weapon_hegrenade")
- fm_give_item(id, "weapon_smokegrenade")
- fm_give_item(id, "weapon_knife")
- cs_set_user_bpammo(id, CSW_SCOUT, 255)
- cs_set_user_bpammo(id, CSW_DEAGLE, 255)
- cs_set_user_bpammo(id, CSW_HEGRENADE, 2)
- cs_set_user_bpammo(id, CSW_SMOKEGRENADE, 2)
- set_bit(g_GoldenScout, id)
- Event_CurWeapon(id)
- }
- case 5,6,7,8,9:
- {
- user_kill(id)
- }
- }
- }
- public bit(id)
- {
- set_bit(g_bHasCellKeys, id)
- }
- public tazer(id)
- {
- set_bit(g_PlayerStunGun, id)
- Event_CurWeapon(id)
- }
- public StopDays(id)
- {
- if(get_user_flags(ADMIN_CVAR, id)) {
- actiondays = false
- zombieday = false
- Deathmatch = false
- knifematchday = false
- hns = false
- BoxDay = false
- RunAwayDay = false
- fd = false
- knifeday = false
- grenadeday = false
- nordeagleday = false
- ColorChat(0, "^4Days Stopped")
- } else {
- ColorChat(id, "You Have No Access To This Command")
- }
- }
- public Check(id)
- {
- new players[32], num, ct, t
- get_players(players, num)
- TeamCount(ct, t)
- if(cs_get_user_team(id) == CS_TEAM_T && is_user_alive(id) && t == 1 && ct > 0 && fire) {
- ColorChat(id, "You Got 500 Cash!")
- playerpoints[id] += 500
- user_kill(id)
- }
- }
- public FwdHamPlayerKiller(id)
- {
- new players[32], num, ct, t
- get_players(players, num)
- TeamCount(ct, t)
- if(t == 1 && ct > 0 && actiondays) {
- ColorChat(0, "Day Over T Can Do LR")
- actiondays = false
- zombieday = false
- Deathmatch = false
- knifematchday = false
- hns = false
- fd = false
- BoxDay = false
- RunAwayDay = false
- knifeday = false
- grenadeday = false
- nordeagleday = false
- ActionLastTeror()
- }
- else if(t == 1 && ct > 0 && fire) {
- client_cmd(0, "say /check")
- return PLUGIN_HANDLED;
- set_task(0.5, "EveryBodyDeadNow")
- }
- else if(Deathmatch || knifematchday && cs_get_user_team(id) == CS_TEAM_T)
- {
- static origin[3]
- get_user_origin(id, origin)
- message_begin(MSG_BROADCAST, SVC_TEMPENTITY)
- write_byte(TE_BEAMCYLINDER) // TE id
- write_coord(origin[0]) // x
- write_coord(origin[1]) // y
- write_coord(origin[2]-20) // z
- write_coord(origin[0]) // x axis
- write_coord(origin[1]) // y axis
- write_coord(origin[2]+200) // z axis
- write_short(beacon_sprite) // sprite
- write_byte(0) // startframe
- write_byte(1) // framerate
- write_byte(6) // life
- write_byte(1000) // width
- write_byte(1) // noise
- write_byte(random(250)) // red
- write_byte(random(250)) // green
- write_byte(random(250)) // blue
- write_byte(200) // brightness
- write_byte(0) // speed
- message_end()
- emit_sound(id, CHAN_ITEM, "weapons/explode3.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)
- set_task(4.0 ,"SpawnUserDM", id)
- } else {
- message_begin(MSG_ONE_UNRELIABLE, g_MsgScreenFade, _, id)
- write_short(12288) // Duration
- write_short(12288) // Hold time
- write_short(0x0001) // Fade type
- write_byte (0) // Red
- write_byte (0) // Green
- write_byte (0) // Blue
- write_byte (255) // Alpha
- message_end()
- set_pev(id, pev_iuser1, 0)
- }
- return HAM_IGNORED
- }
- public Fwd_DoorAttack(const door, const id, Float:damage, Float:direction[3], const tracehandle, const damagebits)
- {
- if(is_valid_ent(door))
- {
- if(get_bit(g_bHasCellKeys, id))
- {
- ExecuteHamB(Ham_Use, door, id, 0, 1, 1.0);
- entity_set_float(door, EV_FL_frame, 0.0);
- clear_bit(g_bHasCellKeys, id);
- }
- }
- return HAM_IGNORED;
- }
- public SpawnUserDM(id)
- {
- ExecuteHamB(Ham_CS_RoundRespawn, id)
- set_hudmessage(255, 0, 0, -1.0, 0.34, 0, 6.0, 12.0)
- show_hudmessage(id, "לעופ 'צטמ דד")
- }
- public Event_DeathMsg()
- {
- new Float:velo[3]
- new attacker = read_data(1)
- new victim = read_data(2)
- new headshot = read_data(3)
- if(is_user_connected(attacker) && is_user_connected(victim) && victim != attacker && cs_get_user_team(attacker) == CS_TEAM_T && cs_get_user_team(victim) == CS_TEAM_CT)
- {
- new szVName[33], szKName[33]
- get_user_name(victim, szVName, 32)
- get_user_name(attacker, szKName, 32)
- playerpoints[victim] -= 50
- if(playerpoints[victim] > 50)
- make_money(victim, velo)
- if(headshot) {
- playerpoints[attacker] += 150
- ColorChat(0, "^4%s^1(%i) ^4Killed^3 %s^1(%i) ^4With ^3HeadShot^4 and Gaind^3 150^4 Cash.", szKName, playerpoints[attacker], szVName, playerpoints[victim])
- } else {
- static weapon[20]
- read_data(4, weapon, sizeof(weapon) - 1)
- if(contain(weapon, "grenade") >= 0) {
- playerpoints[attacker] += 250
- ColorChat(0, "^4%s^1(%i) ^4Killed^3 %s^1(%i) ^4With ^3Grenade^4 and Gaind^3 250^4 Cash.", szKName, playerpoints[attacker], szVName, playerpoints[victim])
- } else {
- playerpoints[attacker] += 100
- ColorChat(0, "^4%s^1(%i) ^4Killed^3 %s^1(%i) ^4and Gaind^3 100^4 Cash.", szKName, playerpoints[attacker], szVName, playerpoints[victim])
- /*
- if(get_bit(g_Knife0, attacker)
- } else if(get_bit(g_Knife1, attacker)
- playerpoints[attacker] += 250
- ColorChat(0, "^4%s^1(%i) ^4Killed^3 %s^1(%i) ^4and Gaind^3 250^4 Cash.", szKName, playerpoints[attacker], szVName, playerpoints[victim])
- */
- }
- }
- ColorChat(victim, "^4You lost^3 50^4 Cash for^3 Suicide")
- SaveData(attacker)
- }
- if(is_user_connected(attacker) && is_user_connected(victim) && victim != attacker && cs_get_user_team(attacker) == CS_TEAM_T && BoxDay)
- set_user_health(attacker, 250)
- ColorChat(attacker, "^4You Get 250 HP For Kill %s, szVName")
- }
- 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, headshot, body, leg)
- 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(victim) != CS_TEAM_T && !actiondays)
- SetHamParamFloat(4, damage * 30.0)
- else if(RunAwayDay || get_bit(g_GoldenScout, attacker))
- if(get_user_weapon(attacker) == CSW_SCOUT)
- SetHamParamFloat(4, damage * 1000000.0)
- else if(fire)
- if(get_user_weapon(attacker) == CSW_M249)
- SetHamParamFloat(4, damage = 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)
- // ShowCashTimer(id)
- new szAuthID[ 35 ];
- get_user_authid( id, szAuthID, charsmax( szAuthID ) );
- 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)
- new szAuthID[ 35 ];
- get_user_authid( id, szAuthID, charsmax( szAuthID ) );
- remove_task(id)
- }
- public BlockBuy(id)
- {
- client_cmd(id, "say /shop");
- }
- public Crowbar(id)
- {
- if(get_user_flags(id) & ADMIN_CVAR) {
- set_bit(g_PlayerCrowbar, id)
- Event_CurWeapon(id)
- }
- }
- public UnCrowbar(id)
- {
- if(get_user_flags(id) & ADMIN_CVAR) {
- clear_bit(g_PlayerCrowbar, id)
- Event_CurWeapon(id)
- }
- }
- 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 Dildo(id)
- {
- if(get_user_flags(id) & ADMIN_CVAR) {
- set_bit(g_PlayerDildo, id)
- Event_CurWeapon(id)
- }
- }
- public UnDildo(id)
- {
- if(get_user_flags(id) & ADMIN_CVAR) {
- clear_bit(g_PlayerDildo, id)
- Event_CurWeapon(id)
- }
- }
- public StopDeathMatch()
- {
- Deathmatch = false
- knifematchday = false
- }
- public ClientCommandSay(id) {
- new szMessage[32]
- read_args(szMessage, charsmax(szMessage))
- remove_quotes(szMessage)
- if((szMessage[0] == '/' || '!'))
- {
- if(equali(szMessage, "/menu") || equali(szMessage, "!menu"))
- ActionChooseteam(id)
- if(equali(szMessage, "/check") || equali(szMessage, "!check"))
- Check(id)
- //else if(equali(szMessage, "/server") || equali(szMessage, "/servers"))
- // mainmenuserv(id)
- else if(equali(szMessage, "_vip"))
- Itstimetobarel(id)
- //else if(equali(szMessage, "/nextcash") || equali(szMessage, "!nextcash"))
- //ShowCashTimeLeft(id)
- else if(equali(szMessage, "/cd") || equali(szMessage, "!cd"))
- cdmenu(id)
- else if(equali(szMessage, "/stopcd") || equali(szMessage, "!stopcd"))
- stopcd(id)
- else if(equali(szMessage, "!c4") || equali(szMessage, "/c4"))
- Givec4(id)
- //else if(equali(szMessage, "/gamble") || equali(szMessage, "!gamble"))
- //Gamble(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, "345getget252345ergerg3434getgetg345gtrtgtg4eg") || equali(szMessage, "eroguehrgue87345837465erkjgnekjr394763"))
- 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"))
- ActionDays(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, "/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, "/mycash") || equali(szMessage, "/cash")) {
- 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 Cash 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^" ^"^" ^"%f^" ^"de^"", ip, zflag)
- 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<pnum; i++) {
- tempid = players[i]
- if(cs_get_user_team(tempid) != CS_TEAM_T)
- continue
- get_user_name(tempid, szName, 31)
- num_to_str(tempid, szTempid, 9)
- menu_additem(gmenu, szName, szTempid, 0)
- }
- menu_display(id, gmenu)
- } else
- ColorChat(id, "^4Only admin or VIP have access to this command")
- }
- public sub_menu(id, gmenu, item)
- {
- if(item == MENU_EXIT)
- return
- new data[6], iName[64]
- new _access, callback
- menu_item_getinfo(gmenu, item, _access, data,5, iName, 63, callback)
- new tempid = str_to_num(data)
- new szName[32], szName2[32]
- get_user_name(id, szName, 31)
- get_user_name(tempid, szName2, 31)
- fm_set_user_rendering(tempid, kRenderFxGlowShell, random_num(0, 255), random_num(0, 255), random_num(0, 255), kRenderNormal, 255)
- set_hudmessage(random_num(0, 255), random_num(0, 255), random_num(0, 255))
- show_hudmessage(0, "%s gave glow to %s^n [ Extreme Jail ]", szName, szName2)
- ColorChat(0, "^4%s^1 gave glow to^4 %s", szName, szName2)
- ColorChat(tempid, " %s^1 have You Glow", szName2)
- switch(random_num(0,1)) {
- case 0: cs_set_user_model(tempid, "vip")
- case 1: cs_set_user_model(tempid, "Ex-Woman")
- }
- }
- public ActionChooseteam(id){
- new teammenu = menu_create("\r[\w Extreme Jail \r]\y Helper Main Menu", "ActionChooseteam2");
- new cb = menu_makecallback("callbackm");
- menu_additem(teammenu, "\yGlobal Menu",.callback = cb);
- menu_additem(teammenu, "\yPrisoner Menu \r[ \dPRISONER ONLY \r]",.callback = cb);
- menu_additem(teammenu, "\yGuard Menu \r[ \dGUARD ONLY \r]",.callback = cb);
- menu_additem(teammenu, "\yAdmin Menu \r[ \dADMIN ONLY \r]",.callback = cb);
- menu_setprop(teammenu,MPROP_EXIT,MEXIT_ALL);
- menu_display(id, teammenu);
- return PLUGIN_HANDLED
- }
- public callbackm(id, teammenu, item){
- switch(item)
- {
- case 1: return (cs_get_user_team(id) == CS_TEAM_T ? ITEM_ENABLED:ITEM_DISABLED);
- case 2: return (cs_get_user_team(id) == CS_TEAM_CT ? ITEM_ENABLED:ITEM_DISABLED);
- case 3: return (is_user_admin(id) ? ITEM_ENABLED:ITEM_DISABLED);
- }
- return ITEM_ENABLED;
- }
- public ActionChooseteam2(id, teammenu, item){
- switch(item)
- {
- case 0: globalmenu(id);
- case 1: tmenu1(id);
- case 2: ctmenu1(id);
- case 3: adminmenu1(id);
- }
- menu_destroy(teammenu);
- }
- public globalmenu(id){
- new needmenu = menu_create("\r[\w Extreme Jail \r]\y Helper Main Menu", "showmenuhelp");
- menu_additem(needmenu, "Take A \yPiss");
- menu_additem(needmenu, "Take A \yShit");
- menu_additem(needmenu, "My Cash");
- menu_additem(needmenu, "\rExtreme\y Online");
- menu_additem(needmenu, "\rExtreme\y Clubs");
- menu_additem(needmenu, "\rMusic Menu");
- menu_setprop(needmenu,MPROP_EXIT,MEXIT_ALL);
- menu_display(id, needmenu);
- }
- public tmenu1(id){
- new tmenu = menu_create("\r[\w Extreme Jail \r]\y T Main Menu", "showmenut");
- menu_additem(tmenu, "Last Request");
- menu_additem(tmenu, "Shop");
- menu_setprop(tmenu,MPROP_EXIT,MEXIT_ALL);
- menu_display(id, tmenu);
- }
- public ctmenu1(id){
- new ctmenu = menu_create("\r[\w Extreme Jail \r]\y CT Main Menu", "showmenuct");
- menu_additem(ctmenu, "Open Cells");
- menu_additem(ctmenu, "Box");
- menu_additem(ctmenu, "CountDown");
- menu_additem(ctmenu, "Stop CountDown");
- menu_additem(ctmenu, "WantTeror");
- menu_setprop(ctmenu,MPROP_EXIT,MEXIT_ALL);
- menu_display(id, ctmenu)
- }
- public adminmenu1(id){
- new adminmenu = menu_create("\r[\w Extreme Jail \r]\y ADMIN Main Menu", "showmenuadmin");
- menu_additem(adminmenu, "Days");
- menu_additem(adminmenu, "First");
- menu_additem(adminmenu, "Stop First");
- menu_additem(adminmenu, "Crowbar [ FREE ]");
- menu_additem(adminmenu, "Give 500 Cash To Yourself");
- menu_additem(adminmenu, "Take 500 Cash From Yourself");
- menu_setprop(adminmenu,MPROP_EXIT,MEXIT_ALL);
- menu_display(id, adminmenu)
- }
- public showmenuhelp(id, needmenu, item){
- switch(item)
- {
- case 0: client_cmd(id, "piss");
- case 1: client_cmd(id, "shit");
- case 2: client_cmd(id, "say /cash");
- case 3: client_cmd(id, "say /admin");
- case 4: client_cmd(id, "say /server");
- case 5: client_cmd(id, "say /music");
- }
- menu_destroy(needmenu);
- }
- public showmenuct(id, ctmenu, item){
- switch(item)
- {
- case 0: client_cmd(id, "say /open");
- case 1: client_cmd(id, "say /box");
- case 2: client_cmd(id, "say /cd");
- case 3: client_cmd(id, "say /stopcd");
- case 4: client_cmd(id, "say /wantteror");
- }
- menu_destroy(ctmenu);
- }
- public showmenut(id, tmenu, item){
- switch(item)
- {
- case 0: client_cmd(id, "say /lr");
- case 1: client_cmd(id, "say /shop");
- }
- menu_destroy(tmenu);
- }
- public showmenuadmin(id, adminmenu, item){
- switch(item)
- {
- case 0: client_cmd(id, "say /days");
- case 1: client_cmd(id, "say /fw");
- case 2: client_cmd(id, "say /stopfw");
- case 3: client_cmd(id, "say /crowbar");
- case 4:
- {
- playerpoints[id] += 500
- ColorChat(id, "^4You Got \r500 ^4Cash. Your Cash : %d", playerpoints[id])
- }
- case 5:
- {
- playerpoints[id] -= 500
- ColorChat(id, "^4You Lose \r500 ^4Cash. Your Cash : %d", playerpoints[id])
- }
- }
- menu_destroy(adminmenu);
- }
- public ActionDays(id)
- {
- if(get_user_flags(id) & ADMIN_CVAR) {
- g_ShowMenu = menu_create("\r[\w Extreme Jail \r]\y Days Menu", "ShowMenu")
- new szNum[3]
- for (new i = 0 ; i < sizeof MessageDay ; i++) {
- num_to_str(i+1 , szNum , 2)
- menu_additem(g_ShowMenu , MessageDay[i], szNum)
- }
- menu_display(id, g_ShowMenu)
- }
- }
- public mainmenuserv(id)
- {
- new servmenu = menu_create( "\r[ \wExtreme\r ]\y Servers Redirect Menu", "showmenuserv")
- new szNum[3]
- for (new i = 0 ; i < sizeof MessageServ ; i++) {
- num_to_str(i , szNum , 2)
- menu_additem(servmenu , MessageServ[i], szNum)
- }
- menu_setprop(servmenu, MPROP_NUMBER_COLOR, "\y")
- menu_setprop(servmenu, MPROP_EXITNAME, "Exit Menu")
- menu_display(id, servmenu)
- }
- public showmenuserv(id, servmenu, item)
- {
- if(item == MENU_EXIT)
- return
- new szKey[3], iname[33], Dummy
- get_user_name(id, iname, 32)
- menu_item_getinfo(servmenu , item, Dummy, szKey, 2, "", 0, Dummy)
- new key = str_to_num(szKey)
- ColorChat(0, "^4%s^1 has been redirected to ^4%s", iname, MessageServ[key])
- client_cmd(id, "Connect %s", MessageIp[key])
- }
- public cdmenu(id)
- {
- if(!is_user_alive(id))
- ColorChat(id, " You have to be^3 alive^4 to start a^3 countdown")
- else if(task_exists(4444))
- ColorChat(id, " There is already a^3 countdown^4 on")
- else if(get_user_team(id) == 2) {
- new menu = menu_create("\r[\w Exteme \r]\y countdown", "menu_handler")
- new szNum[3], Formatex[15]
- for (new i = 0 ; i < sizeof MessageCDnum ; i++) {
- num_to_str(i+1 , szNum , 2)
- formatex(Formatex, 14, "\y%s \wSeconds", MessageCDnum[i])
- menu_additem(menu , Formatex, szNum)
- }
- menu_display(id, menu)
- } else
- ColorChat(id, "^4Only^3 Counter-terrorists^4 can start a^3 countdown")
- }
- public menu_handler(id, menu, item)
- {
- if(item == MENU_EXIT)
- return
- new Data[7], Name[64]
- new Access, Callback
- menu_item_getinfo(menu, item, Access, Data,5, Name, 63, Callback)
- new Key = str_to_num(Data)
- new name[33]
- get_user_name(id, name, 32)
- ColorChat(0, "Guard^4 %s ^1has started Countdown", name)
- switch(Key) {
- case 1: timer = 5
- case 2: timer = 10
- case 3: timer = 15
- case 4: timer = 20
- case 5: timer = 25
- case 6: timer = 30
- }
- ColorChat(0, "when^3 %d^1 is over save your^4 %s", timer, random_num(0,1) ? "ASS" : "RUN")
- countdown()
- set_task(1.0, "countdown",4444,_,_, "b")
- }
- public countdown()
- {
- new SecVoice[21]
- num_to_word(timer, SecVoice, 20)
- if(timer == 0) {
- set_hudmessage(255, 0, 0, -1.0, -1.0, 0, 6.0, 3.0)
- show_hudmessage(0, "Go go go")
- client_cmd(0, "spk ^"barney/letsgo^"")
- remove_task(4444)
- } else {
- if(timer <= 9)
- client_cmd(0, "spk ^"Extreme-Jail/%s^"", SecVoice)
- else if(random_num(0,1))
- client_cmd(0, "spk ^"vox/%s^"", SecVoice)
- else
- client_cmd(0, "spk ^"fvox/%s^"", SecVoice)
- set_hudmessage(0, 255, 0, -1.0, -1.0, 0, 0.5, 0.5)
- show_hudmessage(0, "%i", timer)
- timer--
- }
- }
- public stopcd(id)
- {
- new name[32]
- get_user_name(id, name, 31)
- if(!task_exists(4444) && cs_get_user_team(id) == CS_TEAM_CT) {
- ColorChat(id, "There Is No CountDown To Stop")
- }
- else if(get_user_team(id) == 2 && task_exists(4444)) {
- set_hudmessage(255, 0, 0, -1.0, -1.0, 0, 6.0, 3.0)
- show_hudmessage(0, "Go go go")
- client_cmd(0, "spk ^"barney/letsgo^"")
- remove_task(4444)
- ColorChat(0, "Guard %s Stop CountDown", name)
- } else {
- ColorChat(id, "Only Ct Can Stop CountDown")
- }
- }
- public fullupdate(id)
- {
- if(floodcounter[id] == 4) {
- new name[33]
- get_user_name(id, name, 32)
- server_cmd("kick ^"%s^" ^"Using spam command^"", name)
- }
- floodcounter[id]++
- }
- public Givec4(id)
- {
- if(is_user_alive(id) && cs_get_user_team(id) == CS_TEAM_CT) {
- if(!user_has_weapon(id, CSW_C4)) {
- fm_give_item(id, "weapon_c4")
- ColorChat(id, "You Have a c4^3, if you SPAM this Command you get ban!")
- }
- }
- }
- public GameDesc() {
- forward_return(FMV_STRING, gamename)
- return FMRES_SUPERCEDE
- }
- public client_PreThink(plr) {
- if(get_cvar_num("bh_enabled")) {
- new oldbuttons = get_user_oldbutton(plr)
- oldbuttons &= ~IN_JUMP
- entity_set_int(plr, EV_INT_oldbuttons, oldbuttons)
- }
- if(get_bit(g_PlayerBH, plr) && get_user_weapon(plr) == CSW_KNIFE && entity_get_int(plr, EV_INT_button) & 2)
- {
- new flags = entity_get_int(plr, EV_INT_flags)
- if(flags & FL_WATERJUMP || entity_get_int(plr, EV_INT_waterlevel) >= 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] <= 5000) formatex(_status[id], 16, "Ex Beginner")
- else if(playerpoints[id] <= 10000) formatex(_status[id], 16, "Ex Novice")
- else if(playerpoints[id] <= 20000) formatex(_status[id], 16, "Ex Distinguished")
- else if(playerpoints[id] <= 30000) formatex(_status[id], 16, "Ex Competent")
- else if(playerpoints[id] <= 40000) formatex(_status[id], 16, "Ex Master")
- else if(playerpoints[id] <= 50000) formatex(_status[id], 16, "Ex Winner")
- else if(playerpoints[id] <= 100000)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 Cash^n---- Note - New Price on Shop | Your Cash 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[קיירבליי'ג יקוח]", "sub_RulesMenu")
- new callback = menu_makecallback("MenuCallbackRules")
- format(Item, 63, "%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[םיקוחה תא החוד]^n^n", "2")
- menu_additem(menu, "\yםיקוח", "3")
- menu_additem(menu, "\yתודוקפ", "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 ^"!םיקוחה תא רשאל בייח התא^"", 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(weapon == CSW_SCOUT)
- {
- if(RunAwayDay || get_bit(g_GoldenScout, id)) {
- entity_set_string(id, EV_SZ_weaponmodel, "models/Extreme-Jail/p_Goldenscout.mdl")
- entity_set_string(id, EV_SZ_viewmodel, "models/Extreme-Jail/v_Goldenscout.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; i<pnum; i++)
- {
- tempid = players[i]
- if(cs_get_user_team(tempid) != CS_TEAM_T)
- continue
- get_user_name(tempid, szName, 31)
- num_to_str(tempid, szTempid, 9)
- menu_additem(getmenu, szName, szTempid)
- }
- menu_display(id, getmenu)
- } else
- ColorChat(id, "Prisinors can't switch with Guards. Only Guards can switch with prisonors")
- }
- public ActionGet(id, getmenu, item)
- {
- if(item == MENU_EXIT)
- return
- new data[6], iName[64]
- new _access, callback
- menu_item_getinfo(getmenu, item, _access, data,5, iName, 63, callback)
- new tempid = str_to_num(data)
- new szName[32], szName2[32]
- get_user_name(id, szName, 31)
- get_user_name(tempid, szName2, 31)
- ColorChat(0, "^4%s ^3switch CT with ^4%s", szName, szName2)
- cs_set_user_team(tempid, CS_TEAM_CT)
- cs_set_user_team(id, CS_TEAM_T)
- if(is_user_alive(id)) {
- user_kill(id)
- ExecuteHamB(Ham_CS_RoundRespawn, tempid)
- }
- }
- public ActionShopMenu(id)
- {
- if(is_user_connected(id)) {
- if(cs_get_user_team(id) == CS_TEAM_T)
- {
- new szShop[200]
- formatex(szShop, charsmax(szShop), "\r[\w BeatTheB Jail \r]\y JailBreak Shop Menu\d ^n\yNote\w - The maximum cash is 1000000. New price!^nYour Cash - %d \r%s", playerpoints[id], _status)
- new shopmenu = menu_create(szShop, "sub_ActionShopMenu")
- menu_additem(shopmenu, "\yHealths Menu", "1")
- menu_additem(shopmenu, "\yWeapons Menu", "2")
- menu_additem(shopmenu, "\yPowers Menu", "3")
- menu_additem(shopmenu, "\yVIP Menu", "4")
- menu_additem(shopmenu, "\yTeleport Menu", "5")
- menu_additem(shopmenu, "\yOther Menu", "6")
- menu_additem(shopmenu, "\rOffer Menu", "7")
- menu_additem(shopmenu, "\rPlayers Cash", "8")
- menu_additem(shopmenu, "Help^n", "9")
- menu_additem(shopmenu, "\yExit Shop", "0")
- menu_setprop(shopmenu, MPROP_NUMBER_COLOR, "\w")
- menu_setprop(shopmenu, MPROP_PERPAGE, 0)
- menu_display(id, shopmenu)
- } else
- ColorChat(id, "Only ^3Terrorist^4 can open the Shop. your cash: ^3%d ^4%s", playerpoints[id], _status)
- }
- return PLUGIN_HANDLED
- }
- public sub_ActionShopMenu(id, shopmenu, item)
- {
- new shopname[33]
- get_user_name(id, shopname, 31)
- new Data[7], Name[64], Access, Callback
- menu_item_getinfo(shopmenu, item, Access, Data,5, Name, 63, Callback)
- new Key = str_to_num(Data)
- switch(Key)
- {
- case 1:
- {
- new szHShop[200]
- formatex(szHShop, charsmax(szHShop), "\r[\w BeatTheB Jail \r]\y JailBreak Shop Menu\d ^n\yHealth Menu^nYour Cash - %d \r%s", playerpoints[id], _status)
- new shophmenu = menu_create(szHShop, "sub_ActionHealthMenu")
- menu_additem(shophmenu, "\y10 Health \r[\w 500 \r]", "1")
- menu_additem(shophmenu, "\y20 Health \r[\w 900 \r]", "2")
- menu_additem(shophmenu, "\y30 Health \r[\w 1300 \r]", "3")
- menu_additem(shophmenu, "\y40 Health \r[\w 1700 \r]", "4")
- menu_additem(shophmenu, "\y50 Health \r[\w 2000 \r]", "5")
- menu_setprop(shophmenu, MPROP_EXITNAME, "\yExit Shop")
- menu_setprop(shophmenu, MPROP_NUMBER_COLOR, "\w")
- menu_display(id, shophmenu)
- }
- case 2:
- {
- new szWShop[200]
- formatex(szWShop, charsmax(szWShop), "\r[\w BeatTheB Jail \r]\y JailBreak Shop Menu\d ^n\yWeapons Menu^nYour Cash - %d \r%s", playerpoints[id], _status)
- new shopwmenu = menu_create(szWShop, "sub_ActionWeaponsMenu")
- menu_additem(shopwmenu, "\yGlock\d 3 Bullets \r[\w 1500 \r]", "1")
- menu_additem(shopwmenu, "\yUsp\d 3 Bullets \r[\w 2000 \r]", "2")
- menu_additem(shopwmenu, "\yDeagle\d 2 Bullets \r[\w 2500 \r]", "3")
- menu_additem(shopwmenu, "\yAwp\d 1 Bullets \r[\w 3500 \r]", "4")
- menu_setprop(shopwmenu, MPROP_EXITNAME, "\yExit Shop")
- menu_setprop(shopwmenu, MPROP_NUMBER_COLOR, "\w")
- menu_display(id, shopwmenu)
- }
- case 3:
- {
- new szPShop[200]
- formatex(szPShop, charsmax(szPShop), "\r[\w BeatTheB Jail \r]\y JailBreak Shop Menu\d ^n\yPower Menu^nYour Cash - %d \r%s", playerpoints[id], _status)
- new shoppmenu = menu_create(szPShop, "sub_ActionPowerMenu")
- menu_additem(shoppmenu, "\yCamouflage\d - 30 Seconds \r[\w 2000 \r]", "1")
- menu_additem(shoppmenu, "\ySpeed\d - 20 Seconds \r[\w 1500 \r]", "2")
- menu_additem(shoppmenu, "\yGravity\d - 20 Seconds \r[\w 1500 \r]", "3")
- menu_additem(shoppmenu, "\yStealth\d - 5 Seconds \r[\w 1500 \r]", "4")
- menu_additem(shoppmenu, "\yGodmode\d - 10 Seconds \r[\w 4000 \r]", "5")
- menu_additem(shoppmenu, "\yNoclip\d - 10 Seconds \r[\w 4500 \r]", "6")
- menu_setprop(shoppmenu, MPROP_EXITNAME, "\yExit Shop")
- menu_setprop(shoppmenu, MPROP_NUMBER_COLOR, "\w")
- menu_display(id, shoppmenu)
- }
- case 4:
- {
- new szVShop[200]
- formatex(szVShop, charsmax(szVShop), "\r[\w BeatTheB Jail \r]\y JailBreak Shop Menu\d ^n\yVIP Menu^nYour Cash - %d \r%s", playerpoints[id], _status)
- new shopvmenu = menu_create(szVShop, "sub_ActionVIPMenu")
- menu_additem(shopvmenu, "\yDeagle\d - 2 Bullet \r[\w 2000 \r]", "1")
- menu_additem(shopvmenu, "\yAwp\d - 1 Bullet \r[\w 2500 \r]", "2")
- menu_additem(shopvmenu, "\yGodmode\d - 10 Seconds \r[\w 3500 \r]", "3")
- menu_additem(shopvmenu, "\yCamouflage\d - 30 Seconds \r[\w 1500\r]", "4")
- menu_additem(shopvmenu, "\yStealth\d - 5 Seconds \r[\w 1500 \r]", "5")
- menu_additem(shopvmenu, "\yVoice\d - 1 Round \r[\w 2000 \r]", "6")
- menu_setprop(shopvmenu, MPROP_EXITNAME, "\yExit Shop")
- menu_setprop(shopvmenu, MPROP_NUMBER_COLOR, "\w")
- menu_display(id, shopvmenu)
- }
- case 5:
- {
- new szTeleportShop[200]
- formatex(szTeleportShop, charsmax(szTeleportShop), "\r[\w BeatTheB Jail \r]\y JailBreak Shop Menu\d ^n\yTeleport Menu^nYour Cash - %d \r%s", playerpoints[id], _status)
- new shopteleportmenu = menu_create(szTeleportShop, "sub_ActionTeleportMenu")
- menu_additem(shopteleportmenu, "\yKZ TOP \r[\w 5000 \r]", "1")
- menu_additem(shopteleportmenu, "\rGuns Room \r[\w 8000 \r]", "2")
- menu_additem(shopteleportmenu, "\yFootball\r[\w 4000 \r]", "3")
- menu_setprop(shopteleportmenu, MPROP_EXITNAME, "\yExit Shop")
- menu_setprop(shopteleportmenu, MPROP_NUMBER_COLOR, "\w")
- menu_display(id, shopteleportmenu)
- }
- case 6:
- {
- new szOShop[200]
- formatex(szOShop, charsmax(szOShop), "\r[\w BeatTheB Jail \r]\y JailBreak Shop Menu\d ^n\yOther Menu^nYour Cash - %d \r%s", playerpoints[id], _status)
- new shopomenu = menu_create(szOShop, "sub_ActionOtherMenu")
- menu_additem(shopomenu, "\yChange Team \r[\w 15000 \r]", "1")
- menu_additem(shopomenu, "\yVIP Model\d Once Round \r[\w 500 \r]", "2")
- menu_additem(shopomenu, "\yAdmin Model\d Once Round \r[\w 1000 \r]", "3")
- menu_additem(shopomenu, "\yFreeday\d Once Round \r[\w 3000 \r]", "4")
- menu_setprop(shopomenu, MPROP_EXITNAME, "\yExit Shop")
- menu_setprop(shopomenu, MPROP_NUMBER_COLOR, "\w")
- menu_display(id, shopomenu)
- }
- case 7:
- {
- new szOfferShop[200]
- formatex(szOfferShop, charsmax(szOfferShop), "\r[\w BeatTheB Jail \r]\y JailBreak Shop Menu\d ^n\yOffer Menu^nYour Cash - %d \r%s", playerpoints[id], _status)
- new shopoffermenu = menu_create(szOfferShop, "sub_ActionOfferMenu")
- menu_additem(shopoffermenu, "\ySmall Pack \r[\w 7500 \r]", "1")
- menu_additem(shopoffermenu, "\yNormall Pack \r[\w 15000 \r]", "2")
- menu_additem(shopoffermenu, "\yBig Pack \r[\w 22500 \r]", "3")
- menu_additem(shopoffermenu, "\rGiant Pack \r[\w 30000 \r]", "4")
- menu_setprop(shopoffermenu, MPROP_EXITNAME, "\yExit Shop")
- menu_setprop(shopoffermenu, MPROP_NUMBER_COLOR, "\w")
- menu_display(id, shopoffermenu)
- }
- case 8: PlayerPointsMenu(id)
- case 9:
- {
- new motd[3500]
- add(motd, 3499, "<html><head><title>JailBreak Shop</title>^n<style type=^"text/css^">^npre { font-family:Verdana,Tahoma; color:#FFB000; }^nbody { background:#000000; margin-left:8px; margin-top:0px; }^n</style></head>^n<body scroll=^"none^">^n<pre>^n^n")
- add(motd, 3499, "<b><center>^nJailBreak Shop [Version: 1.0]^n(Help Motd)^nby BeatTheB-Jail</center></b>^n<hr>^nInfo:^n(For Terrorist)^nKill CT - 300 Cash^nKill CT On HeadShot - 600 Cash^n(For Counter Terrorist)^nSurviving - 500 Cash^n")
- add(motd, 3499, "Suicide - 2^n^nWhat's new (in version 0.6):^nYou get a few cash 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, "/cash, /cash - Message : My Cash^n^n^nPlease Report on My Skype All Bugs Or have of ideas- barel123133 <hr>^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] < 500) {
- emit_sound(id, CHAN_BODY, "Extreme-Jail/shop_needpoints.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)
- ColorChat(id, "^1You need more^4 %d Cash^1 for this!", playerpoints[id] - 500)
- } else {
- fm_give_item(id, "weapon_smokegrenade")
- ColorChat(0, "^4%s ^1Buy ^3^"Smoke Grenade^"", shopname)
- playerpoints[id] -= 500
- }
- }
- case 2:
- {
- if(playerpoints[id] < 1000) {
- emit_sound(id, CHAN_BODY, "Extreme-Jail/shop_needpoints.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)
- ColorChat(id, "^1You need more^4 %d Cash^1 for this!", playerpoints[id] - 1000)
- } else {
- fm_give_item(id, "weapon_flashbang")
- ColorChat(0, "^4%s ^1Buy ^3^"Flash Grenade^"", shopname)
- playerpoints[id] -= 1000
- }
- }
- case 3:
- {
- if(playerpoints[id] < 1500) {
- emit_sound(id, CHAN_BODY, "Extreme-Jail/shop_needpoints.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)
- ColorChat(id, "^1You need more^4 %d Cash^1 for this!", playerpoints[id] - 1500)
- } else {
- fm_give_item(id, "weapon_hegrenade")
- ColorChat(0, "^4%s ^1Buy ^3^"HE Grenade^"", shopname)
- playerpoints[id] -= 1500
- }
- }
- 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 Cash^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] -= 2000
- }
- }
- }
- 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] < 500) {
- emit_sound(id, CHAN_BODY, "Extreme-Jail/shop_needpoints.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)
- ColorChat(id, "^1You need more^4 %d Cash^1 for this!", playerpoints[id] - 500)
- } 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] -= 500
- }
- }
- case 2:
- {
- if(playerpoints[id] < 900) {
- emit_sound(id, CHAN_BODY, "Extreme-Jail/shop_needpoints.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)
- ColorChat(id, "^1You need more^4 %d Cash^1 for this!", playerpoints[id] - 900)
- } 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] -= 900
- }
- }
- case 3:
- {
- if(playerpoints[id] < 1300) {
- emit_sound(id, CHAN_BODY, "Extreme-Jail/shop_needpoints.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)
- ColorChat(id, "^1You need more^4 %d Cash^1 for this!", playerpoints[id] - 1300)
- } 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] -= 1300
- }
- }
- case 4:
- {
- if(playerpoints[id] < 1700) {
- emit_sound(id, CHAN_BODY, "Extreme-Jail/shop_needpoints.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)
- ColorChat(id, "^1You need more^4 %d Cash^1 for this!", playerpoints[id] - 1700)
- } 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] -= 1700
- }
- }
- case 5:
- {
- if(playerpoints[id] < 2000) {
- emit_sound(id, CHAN_BODY, "Extreme-Jail/shop_needpoints.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)
- ColorChat(id, "^1You need more^4 %d Cash^1 for this!", playerpoints[id] - 2000)
- } 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] -= 2000
- }
- }
- }
- 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] < 1500) {
- emit_sound(id, CHAN_BODY, "Extreme-Jail/shop_needpoints.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)
- ColorChat(id, "^1You need more^4 %d Cash^1 for this!", playerpoints[id] - 1500)
- } 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] -= 1500
- }
- }
- case 2:
- {
- if(playerpoints[id] < 2000) {
- emit_sound(id, CHAN_BODY, "Extreme-Jail/shop_needpoints.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)
- ColorChat(id, "^1You need more^4 %d Cash^1 for this!", playerpoints[id] - 2000)
- } 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] -= 2000
- }
- }
- case 3:
- {
- if(playerpoints[id] < 2500) {
- emit_sound(id, CHAN_BODY, "Extreme-Jail/shop_needpoints.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)
- ColorChat(id, "^1You need more^4 %d Cash^1 for this!", playerpoints[id] - 2500)
- } 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] -= 2500
- }
- }
- case 4:
- {
- if(playerpoints[id] < 3500) {
- emit_sound(id, CHAN_BODY, "Extreme-Jail/shop_needpoints.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)
- ColorChat(id, "^1You need more^4 %d Cash^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] -= 3500
- }
- }
- }
- 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] < 2000) {
- emit_sound(id, CHAN_BODY, "Extreme-Jail/shop_needpoints.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)
- ColorChat(id, "^1You need more^4 %d Cash^1 for this!", playerpoints[id] - 2000)
- } 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] -= 2000
- }
- }
- case 2:
- {
- if(playerpoints[id] < 1500) {
- emit_sound(id, CHAN_BODY, "Extreme-Jail/shop_needpoints.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)
- ColorChat(id, "^1You need more^4 %d Cash^1 for this!", playerpoints[id] - 1500)
- } 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] -= 1500
- }
- }
- case 3:
- {
- if(playerpoints[id] < 1500) {
- emit_sound(id, CHAN_BODY, "Extreme-Jail/shop_needpoints.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)
- ColorChat(id, "^1You need more^4 %d Cash^1 for this!", playerpoints[id] - 1500)
- } 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] -= 1500
- }
- }
- case 4:
- {
- if(playerpoints[id] < 1500) {
- emit_sound(id, CHAN_BODY, "Extreme-Jail/shop_needpoints.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)
- ColorChat(id, "^1You need more^4 %d Cash^1 for this!", playerpoints[id] - 1500)
- } 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] -= 1500
- }
- }
- case 5:
- {
- if(playerpoints[id] < 4000) {
- emit_sound(id, CHAN_BODY, "Extreme-Jail/shop_needpoints.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)
- ColorChat(id, "^1You need more^4 %d Cash^1 for this!", playerpoints[id] - 4000)
- } 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] -= 4000
- }
- }
- case 6:
- {
- if(playerpoints[id] < 4500) {
- emit_sound(id, CHAN_BODY, "Extreme-Jail/shop_needpoints.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)
- ColorChat(id, "^1You need more^4 %d Cash^1 for this!", playerpoints[id] - 4500)
- } 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] -= 4500
- }
- }
- }
- 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] < 2000) {
- emit_sound(id, CHAN_BODY, "Extreme-Jail/shop_needpoints.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)
- ColorChat(id, "^1You need more^4 %d Cash^1 for this!", playerpoints[id] - 2000)
- } 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] -= 2000
- }
- }
- case 2:
- {
- if(playerpoints[id] < 2500) {
- emit_sound(id, CHAN_BODY, "Extreme-Jail/shop_needpoints.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)
- ColorChat(id, "^1You need more^4 %d Cash^1 for this!", playerpoints[id] - 2500)
- } 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] -= 2500
- }
- }
- case 3:
- {
- if(playerpoints[id] < 3500) {
- emit_sound(id, CHAN_BODY, "Extreme-Jail/shop_needpoints.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)
- ColorChat(id, "^1You need more^4 %d Cash^1 for this!", playerpoints[id] - 3500)
- } 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] -= 3500
- }
- }
- case 4:
- {
- if(playerpoints[id] < 1500) {
- emit_sound(id, CHAN_BODY, "Extreme-Jail/shop_needpoints.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)
- ColorChat(id, "^1You need more^4 %d Cash^1 for this!", playerpoints[id] - 1500)
- } 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] -= 1500
- }
- }
- case 5:
- {
- if(playerpoints[id] < 1500) {
- emit_sound(id, CHAN_BODY, "Extreme-Jail/shop_needpoints.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)
- ColorChat(id, "^1You need more^4 %d Cash^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] -= 1500
- }
- }
- case 6:
- {
- if(playerpoints[id] < 2000) {
- emit_sound(id, CHAN_BODY, "Extreme-Jail/shop_needpoints.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)
- ColorChat(id, "^1You need more^4 %d Cash^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] -= 2000
- }
- }
- }
- }
- else
- ColorChat(id, "^4You have no access to this")
- ActionShopMenu(id)
- }
- public sub_ActionTeleportMenu(id, shopteleportmenu, 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(shopteleportmenu, item, Access, Data,5, Name, 63, Callback)
- new Key = str_to_num(Data)
- switch(Key)
- {
- case 1:
- {
- if(playerpoints[id] < 5000) {
- emit_sound(id, CHAN_BODY, "Extreme-Jail/shop_needpoints.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)
- ColorChat(id, "^1You need more^4 %d Cash^1 for this!", playerpoints[id] - 5000)
- } else {
- new mapname[33]
- get_mapname(mapname, charsmax(mapname))
- if(equal(mapname, "jail_xmf")) {
- new origin[3] = {1468, -91, 428}
- set_user_origin(id, origin)
- ColorChat(0, "^4%s ^1Buy ^3^"KZ TOP Teleport^"", shopname)
- playerpoints[id] -= 5000
- }
- else if(equal(mapname, "jail_pyramid")) {
- new origin[3] = {-1859, -1632, 397}
- set_user_origin(id, origin)
- ColorChat(0, "^4%s ^1Buy ^3^"KZ TOP Teleport^"", shopname)
- playerpoints[id] -= 5000
- } else
- return;
- }
- }
- case 2:
- {
- if(playerpoints[id] < 8000) {
- emit_sound(id, CHAN_BODY, "Extreme-Jail/shop_needpoints.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)
- ColorChat(id, "^1You need more^4 %d Cash^1 for this!", playerpoints[id] - 8000)
- } else {
- new mapname[33]
- get_mapname(mapname, charsmax(mapname))
- if(equal(mapname, "jail_xmf")) {
- new origin[3] = {473, 47, 52}
- set_user_origin(id, origin)
- ColorChat(0, "^4%s ^1Buy ^3^"Guns Room Teleport^"", shopname)
- playerpoints[id] -= 5000
- }
- else if(equal(mapname, "jail_pyramid")) {
- new origin[3] = {1089, -1249, 135}
- set_user_origin(id, origin)
- ColorChat(0, "^4%s ^1Buy ^3^"Guns Room Teleport^"", shopname)
- playerpoints[id] -= 5000
- } else
- return;
- }
- }
- case 3:
- {
- if(playerpoints[id] < 4000) {
- emit_sound(id, CHAN_BODY, "Extreme-Jail/shop_needpoints.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)
- ColorChat(id, "^1You need more^4 %d Cash^1 for this!", playerpoints[id] - 4000)
- } else {
- new mapname[33]
- get_mapname(mapname, charsmax(mapname))
- if(equal(mapname, "jail_xmf")) {
- new origin[3] = {-614, 280, 164}
- set_user_origin(id, origin)
- ColorChat(0, "^4%s ^1Buy ^3^"Football Teleport^"", shopname)
- playerpoints[id] -= 4000
- }
- else if(equal(mapname, "jail_pyramid")) {
- new origin[3] = {-1576, 379, -151}
- set_user_origin(id, origin)
- ColorChat(0, "^4%s ^1Buy ^3^"Football Teleport^"", shopname)
- playerpoints[id] -= 5000
- } else
- return;
- }
- }
- }
- 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] < 15000) {
- emit_sound(id, CHAN_BODY, "Extreme-Jail/shop_needpoints.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)
- ColorChat(id, "^1You need more^4 %d Cash^1 for this!", playerpoints[id] - 15000)
- } 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] -= 15000
- }
- else
- ColorChat(id, "This option dont work because some admin is online.")
- }
- }
- case 2:
- {
- if(playerpoints[id] < 500) {
- emit_sound(id, CHAN_BODY, "Extreme-Jail/shop_needpoints.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)
- ColorChat(id, "^1You need more^4 %d Cash^1 for this!", playerpoints[id] - 500)
- } else {
- cs_set_user_model(id, "vip")
- ColorChat(0, "^4%s ^1Buy ^3^"VIP Model^" ^1Once Round", shopname)
- playerpoints[id] -= 500
- }
- }
- case 3:
- {
- if(playerpoints[id] < 1000) {
- emit_sound(id, CHAN_BODY, "Extreme-Jail/shop_needpoints.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)
- ColorChat(id, "^1You need more^4 %d Cash^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] -= 1000
- }
- }
- case 4:
- {
- if(playerpoints[id] < 3000) {
- emit_sound(id, CHAN_BODY, "Extreme-Jail/shop_needpoints.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)
- ColorChat(id, "^1You need more^4 %d Cash^1 for this!", playerpoints[id] - 3000)
- } 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] -= 3000
- }
- }
- }
- ActionShopMenu(id)
- }
- public sub_ActionOfferMenu(id, shopoffermenu, 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(shopoffermenu, item, Access, Data,5, Name, 63, Callback)
- new Key = str_to_num(Data)
- switch (Key)
- {
- case 1:
- {
- if(playerpoints[id] < 7500) {
- emit_sound(id, CHAN_BODY, "Extreme-Jail/shop_needpoints.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)
- ColorChat(id, "^1You need more^4 %d Cash^1 for this!", playerpoints[id] - 7500)
- } else {
- fm_set_user_godmode(id, 1)
- set_task(5.0, "RemoveGodmode", id)
- fm_set_user_health(id, 500)
- ColorChat(0, "^4%s ^1Buy ^3^"Small Pack^"", shopname)
- playerpoints[id] -= 7500
- }
- }
- case 2:
- {
- if(playerpoints[id] < 15000) {
- emit_sound(id, CHAN_BODY, "Extreme-Jail/shop_needpoints.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)
- ColorChat(id, "^1You need more^4 %d Cash^1 for this!", playerpoints[id] - 15000)
- } else {
- fm_set_user_godmode(id, 1)
- set_task(6.0, "RemoveGodmode", id)
- fm_set_user_health(id, 1000)
- fm_give_item(id, "weapon_m4a1")
- cs_set_weapon_ammo(find_ent_by_owner(1, "weapon_m4a1", id), 1)
- fm_give_item(id, "weapon_deagle")
- cs_set_weapon_ammo(find_ent_by_owner(1, "weapon_deagle", id), 1)
- ColorChat(0, "^4%s ^1Buy ^3^"Normal Pack^"", shopname)
- playerpoints[id] -= 15000
- }
- }
- case 3:
- {
- if(playerpoints[id] < 22500) {
- emit_sound(id, CHAN_BODY, "Extreme-Jail/shop_needpoints.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)
- ColorChat(id, "^1You need more^4 %d Cash^1 for this!", playerpoints[id] - 22500)
- } else {
- fm_set_user_godmode(id, 1)
- set_task(7.0, "RemoveGodmode", id)
- fm_set_user_health(id, 1500)
- fm_give_item(id, "weapon_awp")
- cs_set_weapon_ammo(find_ent_by_owner(1, "weapon_awp", id), 1)
- fm_give_item(id, "weapon_m4a1")
- cs_set_weapon_ammo(find_ent_by_owner(1, "weapon_m4a1", id), 1)
- fm_give_item(id, "weapon_deagle")
- cs_set_weapon_ammo(find_ent_by_owner(1, "weapon_deagle", id), 1)
- ColorChat(0, "^4%s ^1Buy ^3^"Big Pack^"", shopname)
- playerpoints[id] -= 22500
- }
- }
- case 4:
- {
- if(playerpoints[id] < 30000) {
- emit_sound(id, CHAN_BODY, "Extreme-Jail/shop_needpoints.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)
- ColorChat(id, "^1You need more^4 %d Cash^1 for this!", playerpoints[id] - 30000)
- } else {
- fm_set_user_godmode(id, 1)
- set_task(7.0, "RemoveGodmode", id)
- fm_set_user_health(id, 2000)
- fm_give_item(id, "weapon_awp")
- cs_set_weapon_ammo(find_ent_by_owner(1, "weapon_awp", id), 1)
- fm_give_item(id, "weapon_m4a1")
- cs_set_weapon_ammo(find_ent_by_owner(1, "weapon_m4a1", id), 2)
- fm_give_item(id, "weapon_deagle")
- cs_set_weapon_ammo(find_ent_by_owner(1, "weapon_deagle", id), 2)
- ColorChat(0, "^4%s ^1Buy ^3^"Giant Pack^"", shopname)
- playerpoints[id] -= 30000
- }
- }
- }
- ActionShopMenu(id)
- }
- public PlayerPointsMenu(id)
- {
- new shopppmenu = menu_create("\r[\w BeatTheB Jail \r]\y JailBreak Shop Menu\d ^n\yPlayers Cash", "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] <= 75000) formatex(_status[id], 20, "Ex Beginner")
- else if(playerpoints[i] <= 150000) formatex(_status[id], 20, "Ex Novice")
- else if(playerpoints[i] <= 225000) formatex(_status[id], 20, "Ex Distinguished")
- else if(playerpoints[i] <= 300000) formatex(_status[id], 20, "Ex Competent")
- else if(playerpoints[i] <= 375000) formatex(_status[id], 20, "Ex Master")
- else if(playerpoints[i] <= 450000) formatex(_status[id], 20, "Ex Winner")
- else if(playerpoints[i] <= 500000) formatex(_status[id], 20, "Ex Killer")
- else if(playerpoints[i] <= 1000000 || playerpoints[i] >= 1000000) 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] <= 75000) formatex(_status[tempid], 16, "Ex' Beginner")
- else if(playerpoints[tempid] <= 150000) formatex(_status[tempid], 16, "Ex' Novice")
- else if(playerpoints[tempid] <= 225000) formatex(_status[tempid], 16, "Ex' Distinguished")
- else if(playerpoints[tempid] <= 300000) formatex(_status[tempid], 16, "Ex' Competent")
- else if(playerpoints[tempid] <= 375000) formatex(_status[tempid], 16, "Ex' Master")
- else if(playerpoints[tempid] <= 450000) formatex(_status[tempid], 16, "Ex' Winner")
- else if(playerpoints[tempid] <= 500000) formatex(_status[tempid], 16, "Ex' Killer")
- else formatex(_status[tempid], 16, "Ex' Millyoner")
- ColorChat(client, "^4 ^3%s^4 has :^3 %i Cash", name, playerpoints[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 plugin_natives()
- {
- register_native("jb_get_user_points", "_get_user_points");
- register_native("jb_set_user_points", "_set_user_points");
- }
- public _get_user_points( plugin, params )
- {
- return playerpoints[ get_param( 1 ) ];
- }
- public _set_user_points( plugin, params )
- {
- new client = get_param( 1 );
- playerpoints[ client ] = max( 0, get_param( 2 ) );
- }
- 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 = 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)
- fd = true
- ActionFree()
- }
- case 5:
- {
- ColorChat(0, "^4%s^1 started^4 NightCrawler Day !", adname)
- ActionNightCrawler()
- nightcrawler = true
- }
- case 6:
- {
- ColorChat(0, "^4%s^1 started^4 RunAway Day !", adname)
- ActionRunAwayDay()
- RunAwayDay = true
- }
- case 7:
- {
- ColorChat(0, "^4%s^1 started^4 Box Day !", adname)
- ActionBoxDay()
- BoxDay = true
- }
- case 8:
- {
- ColorChat(0, "^4%s^1 started^4 Spartan Day !", adname)
- Actionspartanday()
- }
- case 9: ShowMusicMenu(id)
- case 10:
- {
- ColorChat(0, "^4%s^1 started^4 War Day !", adname)
- ActionWarday()
- }
- case 11:
- {
- ColorChat(0, "^4%s^1 started^4 Deathmatch !", adname)
- Deathmatch = true
- ActionDeathmatch()
- }
- case 12:
- {
- ColorChat(0, "^4%s^1 started^4 KnifeDM !", adname)
- knifematchday = true
- ActionKnifeDM()
- }
- case 13:
- {
- ColorChat(0, "^4%s^1 started^4 Birth Day !", adname)
- ActionBirthDay()
- set_task(5.0, "GetRandomPlayer")
- }
- case 14:
- {
- ColorChat(0, "^4%s^1 started^4 Knife Day !", adname)
- ActionKnifeDay()
- knifeday = true
- }
- case 15:
- {
- ColorChat(0, "^4%s^1 started^4 Grenade Day !", adname)
- ActionGrenadeDay()
- grenadeday = true
- }
- case 16:
- {
- ColorChat(0, "^4%s^1 started^4 Deagle Day !", adname)
- ActionNorDealgeDay()
- nordeagleday = true
- }
- case 17:
- {
- ColorChat(0, "^4%s^1 started^4 Jump Day !", adname)
- ActionJumpDay()
- }
- case 18:
- {
- ColorChat(0, "^4%s^1 started^4 Rambo Day !", adname)
- ActionRamboDay()
- }
- case 19:
- {
- ColorChat(0, "^4%s^1 started^4 Fire Day !", adname)
- ActionFireDay()
- fire = true
- }
- case 20:
- {
- 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 21:
- {
- 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 22:
- {
- 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 != 9 && Key != 20 && Key != 21 && Key != 22)
- 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 = 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)
- 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 RunAway Day !", adname)
- ActionRunAwayDay()
- RunAwayDay = true
- }
- case 7:
- {
- ColorChat(0, "^4%s^1 started^4 Box Day !", adname)
- ActionBoxDay()
- BoxDay = true
- }
- case 8:
- {
- ColorChat(0, "^4%s^1 started^4 Spartan Day !", adname)
- Actionspartanday()
- }
- case 9:
- {
- ColorChat(0, "^4%s^1 started^4 War Day !", adname)
- ActionWarday()
- }
- case 10:
- {
- ColorChat(0, "^4%s^1 started^4 Deathmatch !", adname)
- Deathmatch = true
- ActionDeathmatch()
- }
- case 11:
- {
- ColorChat(0, "^4%s^1 started^4 Birth Day !", adname)
- ActionBirthDay()
- set_task(5.0, "GetRandomPlayer")
- }
- case 12:
- {
- ColorChat(0, "^4%s^1 started^4 Knife Day !", adname)
- ActionKnifeDay()
- knifeday = true
- }
- case 13:
- {
- ColorChat(0, "^4%s^1 started^4 Grenade Day !", adname)
- ActionGrenadeDay()
- grenadeday = true
- }
- case 14:
- {
- ColorChat(0, "^4%s^1 started^4 Deagle Day !", adname)
- ActionNorDealgeDay()
- nordeagleday = true
- }
- case 15:
- {
- ColorChat(0, "^4%s^1 started^4 Jump Day !", adname)
- ActionJumpDay()
- }
- case 16:
- {
- ColorChat(0, "^4%s^1 started^4 Rambo Day !", adname)
- ActionRamboDay()
- }
- case 17:
- {
- ColorChat(0, "^4%s^1 started^4 Fire Day !", adname)
- ActionFireDay()
- fire = true
- }
- case 18:
- {
- 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 ShowMusicMenu(id)
- {
- if(is_user_admin(id) || cs_get_user_team(id) == CS_TEAM_CT) {
- 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<pnum; i++)
- menu_display(players[i], Customized)
- } else
- menu_display(id, Customized)
- }
- public MusicCustomized(id, Customized, item)
- {
- if(item == MENU_EXIT)
- return
- new szKey[3], adname[33], Dummy
- get_user_name(id, adname, 32)
- menu_item_getinfo(Customized, item, Dummy, szKey, 2, "", 0, Dummy)
- new key = str_to_num(szKey)
- if(key == 0) ShowMusicMenu(0)
- else if(key == sizeof SongsName-1) {
- client_cmd(0, "mp3 stop;stopsound")
- ColorChat(0, "^4%s ^1stoped the music !", adname)
- } else {
- client_cmd(id, "mp3 play ^"sound/Extreme-Jail/%s.mp3^"", SongsData[key-1])
- ColorChat(id, "You started^3 ^"^1 %s^3 ^"^1 song !", SongsNameC[key])
- }
- }
- public OptionMenu(id, g_OptionMenu, 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_OptionMenu, item, Access, Data,5, Name, 63, Callback)
- new Key = str_to_num(Data)
- switch(Key)
- {
- case 1:
- {
- ColorChat(0, "^4%s Enable^4 ''^1 No Zoom^4 ''^1 !", adname)
- EnableHamForward(ForwardSecAttackAwp)
- EnableHamForward(ForwardSecAttackScout)
- }
- case 2:
- {
- ColorChat(0, "^4%s Disable^4 ''^1 No Zoom^4 ''^1 !", adname)
- DisableHamForward(ForwardSecAttackAwp)
- DisableHamForward(ForwardSecAttackScout)
- }
- case 3:
- {
- ColorChat(0, "^4%s started^4 ''^1 count down 30 sec^4 ''^1 !", adname)
- timer = 30
- ColorChat(0, "when^3 %d^1 is over save your^4 %s", timer, random_num(0,1) ? "ASS" : "RUN")
- countdown()
- set_task(1.0, "countdown",4444,_,_, "b")
- }
- case 4:
- {
- ColorChat(0, "^4%s started^4 ''^1 count down 60 sec^4 ''^1 !", adname)
- timer = 60
- ColorChat(0, "when^3 %d^1 is over save your^4 %s", timer, random_num(0,1) ? "ASS" : "RUN")
- countdown()
- set_task(1.0, "countdown",4444,_,_, "b")
- }
- case 5:
- {
- remove_task(4444)
- }
- case 6:
- {
- if(!g_iSprayMessages) {
- g_iSprayMessages = true
- ColorChat(0, "^4%s ^3Enable^4 spray messages for everyone to see.", adname)
- } else if(g_iSprayMessages) {
- g_iSprayMessages = false
- ColorChat(0, "^4%s ^3Disable^4 spray messages for everyone to see.", adname)
- }
- }
- }
- menu_destroy(g_OptionMenu)
- }
- public Forward_PreThink( id )
- {
- if(!nightcrawler )
- return FMRES_IGNORED;
- else if( cs_get_user_team(id) == CS_TEAM_T)
- return FMRES_IGNORED;
- new button = fm_get_user_button( id );
- if( button & IN_USE )
- {
- static Float:origin[3];
- pev( id, pev_origin, origin );
- if( get_distance_f( origin, g_fWallOrigin[id] ) > 10.0 )
- return FMRES_IGNORED;
- if( fm_get_entity_flags( id ) & FL_ONGROUND )
- return FMRES_IGNORED;
- if( button & IN_FORWARD )
- {
- static Float:velocity[3];
- velocity_by_aim( id, 240, velocity );
- fm_set_user_velocity( id, velocity );
- }
- else if( button & IN_BACK )
- {
- static Float:velocity[3];
- velocity_by_aim( id, -240, velocity );
- fm_set_user_velocity( id, velocity );
- }
- }
- return FMRES_IGNORED;
- }
- public EveryBodyDeadNow()
- {
- 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:
- {
- user_kill(i)
- }
- case CS_TEAM_CT:
- {
- user_kill(i)
- }
- }
- }
- }
- ActionLastTeror()
- {
- 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_strip_user_weapons(i)
- fm_set_user_health(i, 100)
- fm_set_user_godmode(i, 0)
- fm_give_item(i, "weapon_knife")
- }
- case CS_TEAM_CT:
- {
- fm_strip_user_weapons(i)
- fm_set_user_health(i, 100)
- fm_set_user_godmode(i, 0)
- fm_set_user_noclip(i, 0)
- set_task(0.1, "WeaponMenu", i)
- }
- }
- }
- }
- public ShowClassMenu(id)
- {
- if(IsPlayer(id) && is_user_alive(id) && cs_get_user_team(id) == CS_TEAM_CT)
- {
- new ChooseClass = menu_create("\r[\w Extreme Jail \r]\y Choose Your Class", "sub_Class_Choosed")
- menu_additem(ChooseClass, "Jumper Zombie [ + Jump ]", "1")
- menu_additem(ChooseClass, "Faster Zombie [ + Speed ]", "2")
- menu_additem(ChooseClass, "Tanker Zombie [ + HP ]", "3")
- menu_display(id, ChooseClass)
- }
- return PLUGIN_HANDLED
- }
- public sub_Class_Choosed(id, ChooseClass, item)
- {
- new data[6], iName[64]
- new access, callback
- menu_item_getinfo(ChooseClass, item, access, data, 6, iName, 63, callback)
- new key = str_to_num(data)
- switch(key)
- {
- case 1:
- {
- fm_set_user_gravity(id, 400.0 / 800.0)
- }
- case 2:
- {
- fm_set_user_maxspeed(id, 450.0)
- }
- case 3:
- {
- fm_set_user_health(id, get_user_health(id) + 5000)
- }
- case 0:
- {
- menu_display(id, ChooseClass)
- }
- }
- }
- ActionZombie()
- {
- rar = 60
- set_task(1.0, "ShowTimer")
- set_task(0.1, "AutoOpen")
- set_task(0.5, "ShowBlind",0,_,_, "b")
- set_hudmessage(0, 255, 0, 0.08, -1.0, 1, 6.0, 18.0)
- show_hudmessage(0, "It is Zombie Day !!^ncount down 60 seconds!")
- 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_strip_user_weapons(i)
- fm_set_user_health(i, 100)
- fm_set_user_godmode(i, 1)
- }
- case CS_TEAM_CT:
- {
- ExecuteHamB( Ham_CS_RoundRespawn, i )
- fm_strip_user_weapons(i)
- fm_set_user_health(i, 30000000000000000)
- set_task(3.0, "Zombie")
- fm_set_user_godmode(i, 1)
- set_pev(i, pev_flags, pev( i, pev_flags) | FL_FROZEN )
- }
- }
- }
- }
- ActionHns()
- {
- rar = 60
- set_task(1.0, "ShowTimer")
- set_task(0.1, "AutoOpen")
- 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_set_user_health(i, 100)
- fm_strip_user_weapons(i)
- fm_give_item(i,"weapon_knife")
- fm_set_user_godmode(i, 1)
- }
- case CS_TEAM_CT:
- {
- ExecuteHamB( Ham_CS_RoundRespawn, i )
- fm_strip_user_weapons(i)
- fm_give_item(i,"weapon_knife")
- set_task(3.0, "HideNsike")
- fm_set_user_godmode(i, 1)
- set_task(0.5, "ShowBlind",_,_,_, "b")
- fm_set_user_health(i, 30000000000000000)
- set_pev(i, pev_flags, pev( i, pev_flags) | FL_FROZEN )
- }
- }
- }
- set_hudmessage(0, 255, 0, 0.08, -1.0, 1, 6.0, 18.0)
- show_hudmessage(0, "It is Hide'N'Seek day !!^nRules:^n CT- Seekers T- Hiders^n CT team can only STABS !^n Hiders have only 60 seconds to find a place to hide^n When the time is over the Seekers must kill the Hiders with a^n KNIFE !")
- }
- ActionShark()
- {
- set_task(0.1, "AutoOpen")
- new players[ 32 ], num, ct, t;
- get_players( players, num );
- TeamCount( ct, t );
- 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_strip_user_weapons(i)
- fm_give_item(i,"weapon_m4a1")
- fm_give_item(i,"weapon_deagle")
- cs_set_user_bpammo(i, CSW_M4A1, 250)
- cs_set_user_bpammo(i, CSW_DEAGLE, 250)
- }
- case CS_TEAM_CT:
- {
- fm_set_user_health(i, t * 100)
- fm_strip_user_weapons(i)
- fm_give_item(i,"weapon_knife")
- fm_set_user_noclip(i, 1)
- }
- }
- }
- set_hudmessage(0, 255, 0, 0.08, -1.0, 1, 6.0, 18.0)
- show_hudmessage(0, "It is Shark Day !!^nJust kill each other !")
- }
- ActionFree()
- {
- rar = 60
- set_task(1.0, "ShowTimer")
- set_task(0.1, "AutoOpen")
- 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_set_user_health(i, 100)
- fm_set_user_godmode(i, 1)
- }
- case CS_TEAM_CT:
- {
- fm_strip_user_weapons(i)
- fm_give_item(i,"weapon_m4a1")
- fm_give_item(i,"weapon_deagle")
- fm_give_item(i, "weapon_smokegrenade")
- fm_set_user_godmode(i, 1)
- cs_set_user_bpammo(i, CSW_SMOKEGRENADE, 4)
- cs_set_user_bpammo(i, CSW_M4A1, 120)
- cs_set_user_bpammo(i, CSW_DEAGLE, 70)
- fm_set_user_health(i, 100)
- }
- }
- }
- set_hudmessage(0, 255, 0, 0.08, -1.0, 1, 6.0, 18.0)
- show_hudmessage(0, "Its a free day !!^nRules:^n all the terrorist allow to play in the map + get weapos.^n the CT Not Do Anything^n Every Body Have Godmode ! When Time Is Over The Round Is Over Automatically")
- }
- ActionNightCrawler()
- {
- set_task(0.1, "AutoOpen")
- new players[ 32 ], num, ct, t;
- get_players( players, num );
- TeamCount( ct, t );
- 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_strip_user_weapons(i)
- fm_give_item(i, "weapon_m4a1")
- fm_give_item(i, "weapon_deagle")
- cs_set_user_bpammo(i, CSW_M4A1, 999)
- cs_set_user_bpammo(i, CSW_DEAGLE, 999)
- }
- case CS_TEAM_CT:
- {
- fm_strip_user_weapons(i)
- fm_give_item(i, "weapon_knife")
- fm_set_user_rendering(i, kRenderFxGlowShell, 0, 0, 0, kRenderTransAlpha, 0)
- fm_set_user_health(i, t * 70)
- }
- }
- }
- set_hudmessage(0, 255, 0, 0.08, -1.0, 1, 6.0, 18.0)
- show_hudmessage(0, "It is NightCrawler Day !!^nJust Kill The CT. !")
- }
- ActionBoxDay()
- {
- set_task(0.1, "AutoOpen")
- 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_strip_user_weapons(i)
- fm_give_item(i, "weapon_knife")
- fm_set_user_health(i, 250)
- }
- case CS_TEAM_CT:
- {
- fm_strip_user_weapons(i)
- fm_set_user_godmode(i, 1)
- }
- }
- }
- set_hudmessage(0, 255, 0, 0.08, -1.0, 1, 6.0, 18.0)
- show_hudmessage(0, "It is Box Day !!^n T Need To Kill His Friends ^n CT With Godmode. !")
- server_cmd("mp_friendlyfire 1")
- }
- ActionRunAwayDay()
- {
- rar = 20
- set_task(1.0, "ShowTimer")
- set_task(0.1, "AutoOpen")
- 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_strip_user_weapons(i)
- fm_set_user_godmode(i, 1)
- fm_set_user_health(i, 50000000)
- }
- case CS_TEAM_CT:
- {
- fm_strip_user_weapons(i)
- fm_give_item(i, "weapon_scout")
- cs_set_user_bpammo(i, CSW_SCOUT, 999)
- fm_set_user_godmode(i, 1)
- set_task(0.5, "ShowBlind",_,_,_, "b")
- set_pev(i, pev_flags, pev( i, pev_flags) | FL_FROZEN )
- }
- }
- }
- set_hudmessage(0, 255, 0, 0.08, -1.0, 1, 6.0, 18.0)
- show_hudmessage(0, "It is RunAway Day !!^n T Need To Hide ^n CT Need To Kill Teror. !")
- server_cmd("mp_friendlyfire 1")
- }
- Actionspartanday()
- {
- set_task(0.1, "AutoOpen")
- new players[ 32 ], num, ct, t;
- get_players( players, num );
- TeamCount( ct, t );
- 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_strip_user_weapons(i)
- fm_set_user_health(i, 300)
- fm_give_item(i, "weapon_shield")
- fm_give_item(i, "weapon_deagle")
- cs_set_user_bpammo(i, CSW_DEAGLE, 999)
- }
- case CS_TEAM_CT:
- {
- fm_set_user_health(i, t * 300)
- fm_strip_user_weapons(i)
- fm_give_item(i, "weapon_deagle")
- fm_give_item(i, "weapon_m4a1")
- cs_set_user_bpammo(i, CSW_DEAGLE, 999)
- cs_set_user_bpammo(i, CSW_M4A1, 9999)
- }
- }
- }
- set_hudmessage(0, 255, 0, 0.08, -1.0, 1, 6.0, 18.0)
- show_hudmessage(0, "It is Spartan Day !!^nT - With 300 HP^nJust kill The CT.!")
- }
- ActionWarday()
- {
- set_task(0.1, "AutoOpen")
- new players[ 32 ], num, ct, t;
- get_players( players, num );
- TeamCount( ct, t );
- for(new i = 0; i < g_max_clients; i++)
- {
- if(IsPlayer(i) && is_user_alive(i))
- {
- fm_strip_user_weapons(i)
- switch(cs_get_user_team(i))
- {
- case CS_TEAM_CT:
- {
- fm_give_item(i, "weapon_m4a1")
- fm_give_item(i, "weapon_hegrenade")
- cs_set_user_bpammo(i, CSW_M4A1, 999)
- cs_set_user_bpammo(i, CSW_HEGRENADE, 999)
- fm_set_user_health(i, t * 120)
- }
- case CS_TEAM_T: fm_give_item(i, "weapon_ak47") && cs_set_user_bpammo(i, CSW_AK47, 999)
- }
- fm_give_item(i, "weapon_deagle") && cs_set_user_bpammo(i, CSW_DEAGLE, 999)
- fm_set_user_health(i, 100)
- fm_give_item(i, "weapon_knife")
- }
- }
- set_hudmessage(0, 255, 0, 0.08, -1.0, 1, 6.0, 18.0)
- show_hudmessage(0, "It is War Day !!^nEveryall - Have Guns^nJust kill The CT.!")
- }
- ActionDeathmatch()
- {
- set_task(0.1, "AutoOpen")
- for(new i = 0; i < g_max_clients; i++)
- {
- if(IsPlayer(i) && is_user_alive(i))
- {
- fm_strip_user_weapons(i)
- if(cs_get_user_team(i) == CS_TEAM_CT)
- fm_set_user_godmode(i, 1)
- fm_set_user_health(i, 100)
- fm_give_item(i, "weapon_knife")
- }
- }
- set_hudmessage(0, 255, 0, 0.08, -1.0, 1, 6.0, 18.0)
- show_hudmessage(0, "It is Deathmatch !!^nT - Just freekill.!^nCT - no kill !")
- server_cmd("mp_friendlyfire 1")
- }
- ActionKnifeDM()
- {
- set_task(0.1, "AutoOpen")
- for(new i = 0; i < g_max_clients; i++)
- {
- if(IsPlayer(i) && is_user_alive(i))
- {
- fm_strip_user_weapons(i)
- if(cs_get_user_team(i) == CS_TEAM_CT)
- fm_set_user_godmode(i, 1)
- fm_set_user_health(i, 100)
- fm_give_item(i, "weapon_knife")
- }
- }
- set_hudmessage(0, 255, 0, 0.08, -1.0, 1, 6.0, 18.0)
- show_hudmessage(0, "It is KnifeDM !!^nT - Just freekill.!^nCT - no kill !^nT Cant Have Weapons!!!!")
- server_cmd("mp_friendlyfire 1")
- }
- ActionBirthDay()
- {
- set_task(0.1, "AutoOpen")
- 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_CT: fm_set_user_godmode(i, 1) && fm_set_user_rendering(i, kRenderFxGlowShell, 0, 0, 250, kRenderNormal, 20)
- case CS_TEAM_T: fm_strip_user_weapons(i) && fm_set_user_rendering(i, kRenderFxGlowShell, 250, 0, 0, kRenderNormal, 20)
- }
- fm_set_user_health(i, 100)
- fm_give_item(i, "weapon_knife")
- }
- }
- set_hudmessage(0, 255, 0, 0.08, -1.0, 1, 6.0, 18.0)
- show_hudmessage(0, "It is Birth Day !!^nIn 5 seconds automatically chooses^nprisoner who had a birthday.!")
- }
- ActionKnifeDay()
- {
- set_task(0.1, "AutoOpen")
- new players[ 32 ], num, ct, t;
- get_players( players, num );
- TeamCount( ct, t );
- for(new i = 0; i < g_max_clients; i++)
- {
- if(IsPlayer(i) && is_user_alive(i))
- {
- fm_strip_user_weapons(i)
- switch(cs_get_user_team(i))
- {
- case CS_TEAM_CT: fm_set_user_health(i, t * 200)
- case CS_TEAM_T: fm_set_user_health(i, 200)
- }
- fm_give_item(i, "weapon_knife")
- }
- }
- set_hudmessage(0, 255, 0, 0.08, -1.0, 1, 6.0, 18.0)
- show_hudmessage(0, "It is Knife Day !!^nCT - with 2000 HP^nT - with 200 HP^nJust Knife only.!")
- }
- ActionGrenadeDay()
- {
- set_task(0.1, "AutoOpen")
- new players[ 32 ], num, ct, t;
- get_players( players, num );
- TeamCount( ct, t );
- for(new i = 0; i < g_max_clients; i++)
- {
- if(IsPlayer(i) && is_user_alive(i))
- {
- fm_strip_user_weapons(i)
- switch(cs_get_user_team(i))
- {
- case CS_TEAM_CT: fm_give_item(i, "weapon_hegrenade") && cs_set_user_bpammo(i, CSW_HEGRENADE, 999) && fm_set_user_health(i, t * 250)
- case CS_TEAM_T: fm_give_item(i, "weapon_hegrenade") && cs_set_user_bpammo(i, CSW_HEGRENADE, 999) && fm_set_user_health(i, 250)
- }
- }
- }
- set_hudmessage(0, 255, 0, 0.08, -1.0, 1, 6.0, 18.0)
- show_hudmessage(0, "It is Grenade Day !!^nT - with 250 HP^n CT - with %i HP^n Come war!!!!!!.. :D", t * 250)
- }
- ActionNorDealgeDay()
- {
- set_task(0.1, "AutoOpen")
- new players[ 32 ], num, ct, t;
- get_players( players, num );
- TeamCount( ct, t );
- for(new i = 0; i < g_max_clients; i++)
- {
- if(IsPlayer(i) && is_user_alive(i))
- {
- fm_strip_user_weapons(i)
- switch(cs_get_user_team(i))
- {
- case CS_TEAM_CT: fm_give_item(i, "weapon_deagle") && cs_set_user_bpammo(i, CSW_DEAGLE, 999) && fm_set_user_health(i, t * 250)
- case CS_TEAM_T: fm_give_item(i, "weapon_deagle") && cs_set_user_bpammo(i, CSW_DEAGLE, 999) && fm_set_user_health(i, 250)
- }
- }
- }
- set_hudmessage(0, 255, 0, 0.08, -1.0, 1, 6.0, 18.0)
- show_hudmessage(0, "It is Deagle Day !!^nT - with 250 HP^nFire Now.!")
- }
- ActionRamboDay()
- {
- set_task(0.1, "AutoOpen")
- new players[ 32 ], num, ct, t;
- get_players( players, num );
- TeamCount( ct, t );
- for(new i = 0; i < g_max_clients; i++)
- {
- if(IsPlayer(i) && is_user_alive(i))
- {
- fm_strip_user_weapons(i)
- switch(cs_get_user_team(i))
- {
- case CS_TEAM_CT: fm_give_item(i, "weapon_m249") && cs_set_user_bpammo(i, CSW_M249, 999) && fm_set_user_health(i, t * 110)
- case CS_TEAM_T: fm_give_item(i, "weapon_m249") && cs_set_user_bpammo(i, CSW_M249, 999) && fm_set_user_health(i, 100)
- }
- }
- }
- set_hudmessage(0, 255, 0, 0.08, -1.0, 1, 6.0, 18.0)
- show_hudmessage(0, "It is Rambo Day !!^nT - with 100 HP^nFire Now.!")
- }
- ActionFireDay()
- {
- server_cmd("amx_fire @ct")
- set_task(0.1, "AutoOpen")
- new players[ 32 ], num, ct, t;
- get_players( players, num );
- TeamCount( ct, t );
- for(new i = 0; i < g_max_clients; i++)
- {
- if(IsPlayer(i) && is_user_alive(i))
- {
- fm_strip_user_weapons(i)
- switch(cs_get_user_team(i))
- {
- case CS_TEAM_CT: fm_strip_user_weapons(i) && fm_set_user_health(i, t * 250)
- case CS_TEAM_T: fm_strip_user_weapons(i) && fm_set_user_health(i, 100)
- }
- }
- }
- set_hudmessage(0, 255, 0, 0.08, -1.0, 1, 6.0, 18.0)
- show_hudmessage(0, "It is Fire Day !!^nCT Touch The T^nFire Now.!")
- }
- ActionJumpDay()
- {
- set_task(0.1, "AutoOpen")
- 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_CT: fm_set_user_godmode(i, 1)
- case CS_TEAM_T: fm_set_user_health(i, 100) && fm_strip_user_weapons(i)
- }
- }
- }
- set_hudmessage(0, 255, 0, 0.08, -1.0, 1, 6.0, 18.0)
- show_hudmessage(0, "It is Jump Day !!^nCT - with Godmode^nT - with 100 HP^nJump Jump Jump Jump Jump !! :D")
- }
- public ActionRandomDay()
- {
- actiondays = true
- switch(random_num(1,14))
- {
- case 1:
- {
- ColorChat(0, "start^4 Zombie day !^1 (By Random Day)")
- ActionZombie()
- zombieday = true
- }
- case 2:
- {
- ColorChat(0, "start^4 hide'n'seek !^1 (By Random Day)")
- hns = true
- ActionHns()
- }
- case 3:
- {
- ColorChat(0, "start^4 Shark day !^1 (By Random Day)")
- ActionShark()
- }
- case 4:
- {
- ColorChat(0, "start^4 Free day !^1 (By Random Day)")
- fd = true
- ActionFree()
- }
- case 5:
- {
- ColorChat(0, "start^4 NightCrawler Day !^1 (By Random Day)")
- ActionNightCrawler()
- nightcrawler = true
- }
- case 6:
- {
- ColorChat(0, "start^4 RunAway Day !^1 (By Random Day)")
- ActionRunAwayDay()
- RunAwayDay = true
- }
- case 7:
- {
- ColorChat(0, "start^4 Box Day !^1 (By Random Day)")
- ActionBoxDay()
- BoxDay = true
- }
- case 8:
- {
- ColorChat(0, "start^4 Spartan Day !^1 (By Random Day)")
- Actionspartanday()
- }
- case 9:
- {
- ColorChat(0, "start^4 War Day !^1 (By Random Day)")
- ActionWarday()
- }
- case 10:
- {
- ColorChat(0, "start^4 Birth Day !^1 (By Random Day)")
- ActionBirthDay()
- set_task(5.0, "GetRandomPlayer")
- }
- case 11:
- {
- ColorChat(0, "start^4 Knife Day !^1 (By Random Day)")
- ActionKnifeDay()
- knifeday = true
- }
- case 12:
- {
- ColorChat(0, "start^4 Grenade Day !^1 (By Random Day)")
- ActionGrenadeDay()
- grenadeday = true
- }
- case 13:
- {
- ColorChat(0, "start^4 Deagle Day !^1 (By Random Day)")
- ActionNorDealgeDay()
- nordeagleday = true
- }
- case 14:
- {
- ColorChat(0, "start^4 Rambo Day !^1 (By Random Day)")
- ActionRamboDay()
- }
- case 15:
- {
- ColorChat(0, "start^4 Fire Day !^1 (By Random Day)")
- ActionFireDay()
- fire = true
- }
- }
- }
- public fdexec(id)
- {
- if(cs_get_user_team(id) == CS_TEAM_CT || is_user_admin(id) || get_vip[id]) {
- if(is_user_alive(id)) {
- new rname[32]
- get_user_name(id, rname, 33)
- ColorChat(0, "^4%s ^1started Random Players freeday", rname)
- set_task(5.0, "GetRandomPlayer")
- }
- }
- }
- public GetRandomPlayer()
- {
- new vPlayers[32], vPlayerNum, vName[32]
- get_players(vPlayers, vPlayerNum, "ac")
- 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 || !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(id)
- --cashtimer[ id ]
- }
- public ShowCashTimer(id)
- {
- if(cashtimer[ id ] = 0)
- {
- playerpoints[ id ] + 2500
- cashtimer[id] = 30
- set_task(60.0, "ShowCashTimer", id)
- } else {
- _ShowTimer(id)
- set_task(60.0, "ShowCashTimer", id)
- }
- public ShowCashTimeLeft(id)
- {
- ColorChat(id, "^3 You Have More ^4%d ^3minutes To Get 2500 Cash", cashtimer[ id ])
- }
- */
- public ShowTimer(id)
- {
- rar--
- if(rar <= 0) {
- if(hns) {
- 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")
- ShowTimerHns()
- set_task(5.0, "removetask")
- } else if(fd) {
- client_cmd(0, "spk ^"%s^"", bellmusic)
- set_hudmessage(255, 0, 0, -1.0, 0.69, 2, 6.0, 18.0)
- show_hudmessage(0, "FreeDay is Over!^nRestart!")
- server_cmd("sv_restart 1")
- remove_task
- } 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! Ct Go To Kill The Terorist")
- remove_task
- } else if(RunAwayDay)
- ShowTimerRA()
- set_hudmessage(255, 0, 0, -1.0, 0.69, 2, 6.0, 18.0)
- show_hudmessage(0, "The Time is Over! Ct Go To Kill The Terorist")
- remove_task
- } if(rar >= 0 && fd) {
- set_hudmessage(0, 255, 0, 0.0, 0.4, 0, 0.5, 0.5)
- show_hudmessage(0, "TimeLeft To Freeday: %d", rar)
- set_task(1.0, "ShowTimer")
- } else if(rar >= 0 && zombieday) {
- set_hudmessage(0, 255, 0, 0.0, 0.4, 0, 0.5, 0.5)
- show_hudmessage(0, "TimeLeft To ZombieDay: %d", rar)
- set_task(1.0, "ShowTimer")
- } else if(rar >= 0 && hns) {
- set_hudmessage(0, 255, 0, 0.0, 0.4, 0, 0.5, 0.5)
- show_hudmessage(0, "TimeLeft To Hns: %d", rar)
- set_task(1.0, "ShowTimer")
- } else if(rar >= 0 && RunAwayDay) {
- set_hudmessage(0, 255, 0, 0.0, 0.4, 0, 0.5, 0.5)
- show_hudmessage(0, "TimeLeft To RunAwayDay: %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)
- }
- }
- public removetask()
- {
- remove_task
- }
- ShowTimerRA()
- {
- 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_set_user_godmode(i, 0)
- }
- case CS_TEAM_CT:
- {
- fm_set_user_godmode(i, 1)
- set_pev( i, pev_flags, pev( i, pev_flags ) & ~ FL_FROZEN);
- }
- }
- }
- }
- 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_set_user_godmode(i, 0)
- 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, 25000000000000000000000) && cs_set_user_bpammo(i, CSW_M3, 250000000000000000000000000) && cs_set_user_bpammo(i, CSW_M4A1, 25000000000000000000000000)
- cs_set_user_bpammo(i, CSW_ELITE, 250000000000000000000000000000000) && cs_set_user_bpammo(i, CSW_ELITE, 25000000000000000) && cs_set_user_bpammo(i, CSW_XM1014, 25000000000000000000000000)
- cs_set_user_bpammo(i, CSW_TMP, 25000000000000000000000000) && cs_set_user_bpammo(i, CSW_MAC10, 25000000000000000) && cs_set_user_bpammo(i, CSW_MP5NAVY, 25000000000000000000000000)
- cs_set_user_bpammo(i, CSW_P228, 250000000000000000000000000000000000) && cs_set_user_bpammo(i, CSW_AUG, 25000000000000000000000000) && cs_set_user_bpammo(i, CSW_SCOUT, 25000000000000000000000000)
- cs_set_user_bpammo(i, CSW_SG550, 2500000000000000000000000) && cs_set_user_bpammo(i, CSW_AWP, 25000000000000000000000000000000) && cs_set_user_bpammo(i, CSW_G3SG1, 25000000000000000000000000)
- cs_set_user_bpammo(i, CSW_P90, 25000000000000000000000000000) && cs_set_user_bpammo(i, CSW_UMP45, 25000000000000000000000) && cs_set_user_bpammo(i, CSW_FAMAS, 25000000000000000000000000)
- cs_set_user_bpammo(i, CSW_GALIL, 2500000000000000000000000000000) && cs_set_user_bpammo(i, CSW_AK47, 250000000000000000000000000) && cs_set_user_bpammo(i, CSW_SG552, 25000000000000000000000000)
- cs_set_user_bpammo(i, CSW_USP, 25000000000000000000000000000000000) && cs_set_user_bpammo(i, CSW_DEAGLE, 2500000000000000000000) && cs_set_user_bpammo(i, CSW_GLOCK18, 25000000000000000000000000) && cs_set_user_bpammo(i, CSW_M249, 25000000000000000000000000)
- }
- case CS_TEAM_CT:
- {
- fm_strip_user_weapons(i)
- fm_give_item(i,"weapon_knife")
- fm_set_user_godmode(i, 0)
- fm_set_user_health(i, 30000)
- set_pev( i, pev_flags, pev( i, pev_flags ) & ~ FL_FROZEN);
- set_task(1.0, "ShowClassMenu", i)
- }
- }
- }
- }
- ShowTimerHns()
- {
- 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_strip_user_weapons(i)
- fm_set_user_godmode(i, 0)
- }
- case CS_TEAM_CT:
- {
- set_task(0.1, "HideNsike",_,_,_, "b")
- fm_strip_user_weapons(i)
- fm_give_item(i, "weapon_knife")
- fm_set_user_health(i, 100)
- fm_set_user_godmode(i, 1)
- set_pev( i, pev_flags, pev( i, pev_flags ) & ~ FL_FROZEN);
- }
- }
- }
- }
- public OnSecondaryAttack()
- return HAM_SUPERCEDE
- public HideNsike()
- {
- 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:
- {
- }
- case CS_TEAM_CT:
- {
- fm_give_item(i, "weapon_knife")
- fm_set_user_godmode(i, 1)
- }
- }
- }
- }
- public Zombie()
- {
- 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:
- {
- }
- case CS_TEAM_CT:
- {
- fm_give_item(i, "weapon_knife")
- fm_set_user_godmode(i, 1)
- }
- }
- }
- }
- 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 && get_user_weapon(id) != CSW_HEGRENADE) {
- fm_strip_user_weapons(id)
- fm_give_item(id, "weapon_hegrenade")
- cs_set_user_bpammo(id, CSW_HEGRENADE, 999)
- engclient_cmd(id, "weapon_hegrenade")
- }
- else if(BoxDay && cs_get_user_team(id) == CS_TEAM_CT) {
- fm_strip_user_weapons(id)
- }
- else if(BoxDay && cs_get_user_team(id) == CS_TEAM_T) {
- fm_strip_user_weapons(id)
- fm_give_item(id, "weapon_knife")
- engclient_cmd(id, "weapon_knife")
- }
- else if(nordeagleday && get_user_weapon(id) != CSW_DEAGLE) {
- fm_strip_user_weapons(id)
- fm_give_item(id, "weapon_deagle")
- cs_set_user_bpammo(id, CSW_DEAGLE, 999)
- engclient_cmd(id, "weapon_deagle")
- }
- else if(knifematchday)
- engclient_cmd(id, "weapon_knife")
- else if(zombieday && get_user_weapon(id) != CSW_KNIFE && cs_get_user_team(id) == CS_TEAM_CT) {
- fm_strip_user_weapons(id)
- fm_give_item(id, "weapon_knife")
- engclient_cmd(id, "weapon_knife")
- }
- else if(hns && cs_get_user_team(id) == CS_TEAM_CT && get_user_weapon(id) != CSW_KNIFE)
- engclient_cmd(id, "weapon_knife")
- else if(zombieday && get_user_weapon(id) != CSW_KNIFE && cs_get_user_team(id) == CS_TEAM_CT) {
- fm_strip_user_weapons(id)
- fm_give_item(id, "weapon_knife")
- engclient_cmd(id, "weapon_knife")
- }
- else if(RunAwayDay && cs_get_user_team(id) == CS_TEAM_T)
- fm_strip_user_weapons(id)
- else if(RunAwayDay && cs_get_user_team(id) == CS_TEAM_CT && get_user_weapon(id) != CSW_SCOUT) {
- fm_strip_user_weapons(id)
- fm_give_item(id, "weapon_scout")
- cs_set_user_bpammo(id, CSW_SCOUT, 999)
- engclient_cmd(id, "weapon_scout")
- }
- else if(fire && cs_get_user_team(id) == CS_TEAM_CT) {
- fm_strip_user_weapons(id)
- }
- else if(fire && cs_get_user_team(id) == CS_TEAM_T && get_user_weapon(id) != CSW_M249) {
- fm_strip_user_weapons(id)
- }
- }
- public GetPlayerDisco()
- {
- new players[32], num
- get_players(players,num,"ah")
- for(new i=0;i<num;i++)
- {
- new num1 = random_num(0,255)
- new num2 = random_num(0,255)
- new num3 = random_num(0,255)
- new alpha = random_num(40,65)
- message_begin(MSG_ONE,get_user_msgid("ScreenFade"),{0,0,0},players[i])
- write_short(~0)
- write_short(~0)
- write_short(1<<12)
- write_byte(num1)
- write_byte(num2)
- write_byte(num3)
- write_byte(alpha)
- message_end()
- }
- }
- public ShowBlind(id)
- {
- if(cs_get_user_team(id) == CS_TEAM_CT) {
- ShowRealBlind()
- }
- }
- public ShowRealBlind()
- {
- new players[32], pnum, tempid
- get_players(players, pnum)
- for(new i; i<pnum; i++)
- {
- tempid = players[i]
- message_begin(MSG_ONE, get_user_msgid("ScreenFade"), {0,0,0}, tempid)
- write_short(4096*1) // Duration
- write_short(4096*1) // Hold time
- write_short(4096) // Fade type
- write_byte(0) // Red
- write_byte(0) // Green
- write_byte(0) // Blue
- write_byte(255) // Alpha
- message_end()
- }
- }
- public ShowSpecialHook()
- {
- new players[32], pnum, tempid
- get_players(players, pnum)
- for(new i; i<pnum; i++)
- {
- tempid = players[i]
- message_begin(MSG_ONE, get_user_msgid("ScreenFade"), {0,0,0}, tempid)
- write_short(4096*1) // Duration
- write_short(4096*1) // Hold time
- write_short(4096) // Fade type
- write_byte(0) // Red
- write_byte(0) // Green
- write_byte(0) // Blue
- write_byte(255) // Alpha
- message_end()
- }
- }
- public GiveVIP(id)
- {
- if(get_user_flags(id) & ADMIN_RCON) {
- new givevipmenu = menu_create("\r[\w BeatTheB Jail \r]\y Give VIP Menu", "ActionGiveVIP")
- new players[32], pnum, tempid
- new szName[32], szTempid[10]
- get_players(players, pnum)
- for(new i; i<pnum; i++)
- {
- tempid = players[i]
- get_user_name(tempid, szName, 31)
- num_to_str(tempid, szTempid, 9)
- menu_additem(givevipmenu, szName, szTempid)
- }
- menu_display(id, givevipmenu)
- } else
- ColorChat(id, "^4You have no access to this")
- }
- public ActionGiveVIP(id, givevipmenu, item)
- {
- new data[6], iName[64]
- new _access, callback
- menu_item_getinfo(givevipmenu, item, _access, data,5, iName, 63, callback)
- new tempid = str_to_num(data)
- new szName[32], szName2[32]
- get_user_name(id, szName, 31)
- get_user_name(tempid, szName2, 31)
- if(get_vip[tempid] || is_user_admin(tempid))
- ColorChat(0, "^4%s ar Already VIP", szName2)
- else {
- ColorChat(0, "^4%s ^3Give VIP to ^4%s", szName, szName2)
- get_vip[tempid] = true
- }
- menu_destroy(givevipmenu)
- }
- /* ---------------------------------------------------
- * --------------- SEND POINTS SYSTEM ----------------*/
- public MainMenuSend(id)
- {
- if(send_delay[id] != 0)
- console_print(id, "Ex SEND: Please wait ^4%d^1 Seconds to SEND", send_delay[id])
- else {
- new target[32], amount[21]
- read_argv(1, target, 31)
- read_argv(2, amount, 20)
- new player = cmd_target(id, target, 8)
- 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)
- if(equal(target, "") || equal(amount, ""))
- console_print(id, "Ex SEND: Use ^"send NAME POINTS^" to send. Example: ^"send yosi 15^"")
- else if(id == player)
- console_print(id, "Ex SEND: You can not send yourself a point")
- else if(!player)
- console_print(id, "Ex SEND: Player Not Found !")
- else if(!is_str_num(amount))
- console_print(id, "Ex SEND: you most to write only numbers")
- else if(playerpoints[id] < pointnum)
- console_print(id, "Ex SEND: you dont have enough points")
- else if(pointnum > 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<pnum; i++)
- {
- tempid = players[i]
- if(!is_user_connected(tempid) || get_user_flags(tempid) & ADMIN_MENU || get_bit(g_PlayerVoice, tempid))
- continue
- get_user_name(tempid, szName, 31)
- num_to_str(tempid, szTempid, 9)
- menu_additem(speach_give, szName, szTempid)
- }
- menu_display(id, speach_give)
- }
- case 2:
- {
- new speach_remove = menu_create("\r[\w BeatTheB Jail \r]\y Remove access to Speach Menu", "ActionRemoveSpeach")
- new players[32], pnum, tempid, szName[32], szTempid[10]
- get_players(players, pnum)
- for(new i; i<pnum; i++)
- {
- tempid = players[i]
- if(!is_user_connected(tempid) || get_user_flags(tempid) & ADMIN_MENU || !(get_bit(g_PlayerVoice, tempid)))
- continue
- get_user_name(tempid, szName, 31)
- num_to_str(tempid, szTempid, 9)
- menu_additem(speach_remove, szName, szTempid)
- }
- menu_display(id, speach_remove)
- }
- case 3:
- {
- new name[33]
- get_user_name(id, name, 32)
- mutect = false
- ColorChat(0, "^3%s ^4Give Speach Access to all^3 CT Team", name)
- }
- case 4:
- {
- new name[33]
- get_user_name(id, name, 32)
- mutect = true
- ColorChat(0, "^3%s ^4Remove Speach Access to all^3 CT Team", name)
- }
- }
- menu_destroy(speachmenu)
- }
- public ActionGiveSpeach(id, speach_give, item)
- {
- if(item == MENU_EXIT) {
- AccessSpeachMenu(id)
- return
- }
- new data[6], iName[64]
- new _access, callback
- menu_item_getinfo(speach_give, item, _access, data,5, iName, 63, callback)
- new tempid = str_to_num(data)
- new szName[32], szName2[32]
- get_user_name(id, szName, 31)
- get_user_name(tempid, szName2, 31)
- set_bit(g_PlayerVoice, tempid)
- ColorChat(0, "^3%s ^4Give Speach Access to ^3%s", szName, szName2)
- menu_destroy(speach_give)
- }
- public ActionRemoveSpeach(id, speach_remove, item)
- {
- if(item == MENU_EXIT) {
- AccessSpeachMenu(id)
- return
- }
- new data[6], iName[64]
- new _access, callback
- menu_item_getinfo(speach_remove, item, _access, data,5, iName, 63, callback)
- new tempid = str_to_num(data)
- new szName[32], szName2[32]
- get_user_name(id, szName, 31)
- get_user_name(tempid, szName2, 31)
- clear_bit(g_PlayerVoice, tempid)
- ColorChat(0, "^3%s ^4Remove Speach Access to ^3%s", szName, szName2)
- menu_destroy(speach_remove)
- }
- 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(playerpoints[id] < 50)
- return PLUGIN_CONTINUE
- playerpoints[id] -= 50
- 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)
- }
- else if(actiondays) {
- EventCurWeapon2(id)
- }
- }
- return nordeagleday ? PLUGIN_HANDLED : PLUGIN_CONTINUE
- }
- public EventSpray( )
- {
- new iPlayer = read_data(2), iOrigin[3]
- iOrigin[0] = read_data(3)
- iOrigin[1] = read_data(4)
- iOrigin[2] = read_data(5)
- new Float:vecOrigin[3]
- IVecFVec(iOrigin, vecOrigin)
- new Float:vecDirection[3]
- velocity_by_aim(iPlayer, 5, vecDirection)
- new Float:vecStop[3]
- xs_vec_add(vecOrigin, vecDirection, vecStop)
- xs_vec_mul_scalar(vecDirection, -1.0, vecDirection)
- new Float:vecStart[3]
- xs_vec_add( vecOrigin, vecDirection, vecStart)
- engfunc(EngFunc_TraceLine, vecStart, vecStop, IGNORE_MONSTERS, -1, 0)
- get_tr2(0, TR_vecPlaneNormal, vecDirection)
- vecDirection[2] = 0.0
- xs_vec_normalize( vecDirection, vecDirection)
- xs_vec_mul_scalar( vecDirection, 5.0, vecDirection)
- xs_vec_add(vecOrigin, vecDirection, vecStart)
- xs_vec_copy(vecStart, vecStop)
- vecStop[2] -= 9999.0
- engfunc(EngFunc_TraceLine, vecStart, vecStop, IGNORE_MONSTERS, -1, 0)
- get_tr2(0, TR_vecEndPos, vecStop)
- new szName[32]
- get_user_name(iPlayer, szName, charsmax( szName))
- if(g_iSprayMessages)
- ColorChat(0, "^4%s sprayed^4 %.1f units^1 above the^3 ground", szName, (vecStart[2] - vecStop[2]))
- else
- ColorChat(iPlayer, "You have sprayed^4 %.1f units^1 above the^3 ground", (vecStart[2] - vecStop[2]))
- }
- public ShowFiveSeconds(id)
- {
- new SecVoice[21], name[33]
- num_to_word(timer, SecVoice, 20)
- client_cmd(0, "spk ^"vox/%s seconds^"", SecVoice)
- get_user_name(id, name, 32)
- set_hudmessage(0, 255, 0, -1.0, 0.42, 0, 0.5, 0.5)
- if(Show_Choose > 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]=50
- 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()
- }
- }
- }
- public CmdSayMsg( client )
- {
- new szMsg[ 10 ];
- read_argv( 1, szMsg, charsmax( szMsg ) );
- new szCmd[ 10 ], szArg[ 6 ];
- parse( szMsg, szCmd, charsmax( szCmd ), szArg, charsmax( szArg ) );
- if( equali( szCmd, "/gamble" ) )
- {
- if( equali( szArg, "" ) )
- {
- client_print( client, print_chat, "You must type amount to gamble !" );
- return 1;
- }
- if( !is_str_num( szArg ) )
- {
- client_print( client, print_chat, "You can't use symbols, please type a new value." );
- return 1;
- }
- new num = str_to_num( szArg );
- if( num < 200 )
- {
- client_print( client, print_chat, "You must gamble at least on 200 cash !" );
- return 1;
- }
- if( playerpoints[ client ] < num )
- {
- client_print( client, print_chat, "You have no enough cash." );
- return 1;
- }
- make_gamble( client, num );
- }
- return 0;
- }
- /* ---------------------------------------------------
- * ------------------ STOCK --------------------------*/
- stock make_gamble( client, num )
- {
- new name[ 32 ], bool:IsWinner;
- get_user_name( client, name, charsmax( name ) );
- switch( random( 9 ) )
- {
- case 0,1,2,3,4:
- {
- IsWinner = true;
- }
- }
- client_print( 0, print_chat, "%s, just gambled on %i cash and %s! [ 50 % ]", name, num, IsWinner? "won":"lost" );
- if( IsWinner )
- {
- playerpoints[ client ] += ( num*2 );
- return 1;
- }
- playerpoints[ client ] -= num;
- return 1;
- }
- stock SaveData(index)
- {
- if(playerpoints[index] <= 1000000) {
- gVault = nvault_open("JailBreak-Wows_shop")
- if(gVault == INVALID_HANDLE)
- set_fail_state("[ BeatTheB Jail ] nValut ERROR: =-> Invalid-Handle")
- new gID[33]
- get_user_authid(index, gID, 32)
- formatex(vKey, charsmax(vKey), "%sPOINTS", gID)
- 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 gID[33]
- get_user_authid(index, gID, 32)
- formatex(vKey, charsmax(vKey), "%sPOINTS", gID)
- formatex(vData, charsmax(vData), "1000000")
- 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 gID[33]
- get_user_authid(index, gID, 32)
- formatex(vKey, charsmax(vKey), "%sPOINTS", gID)
- playerpoints[index] = nvault_get(gVault, vKey)
- nvault_close(gVault)
- }
- /*
- public savebits(id)
- {
- new steamID[35];
- get_user_authid( id , steamID , charsmax( steamID ) );
- new data[64];
- formatex(data, charsmax(data), "%d %d %d %d %d %d %d %d %d",
- !!get_bit(g_Knife1, id),
- !!get_bit(g_Knife2, id),
- !!get_bit(g_Knife3, id),
- !!get_bit(g_Knife4, id),
- !!get_bit(g_Knife5, id),
- !!get_bit(g_Knife6, id),
- !!get_bit(g_Knife7, id),
- !!get_bit(g_Knife8, id),
- !!get_bit(g_Knife9, id)
- );
- nvault_set(bitvault, steamID, data);
- }
- public loadbits(id)
- {
- new steamID[35];
- get_user_authid( id , steamID , charsmax( steamID ) );
- new data[64];
- new bits[27][2];
- new timestamp;
- if(nvault_lookup(bitvault, steamID, data, charsmax(data), timestamp))
- {
- parse(data,
- bits[0], charsmax(bits[]),
- bits[1], charsmax(bits[]),
- bits[2], charsmax(bits[]),
- bits[3], charsmax(bits[]),
- bits[4], charsmax(bits[]),
- bits[5], charsmax(bits[]),
- bits[6], charsmax(bits[]),
- bits[7], charsmax(bits[]),
- bits[8], charsmax(bits[]),
- bits[9], charsmax(bits[]),
- );
- if(bits[0][0] == '1') set_bit(g_Knife0, id);
- if(bits[1][0] == '1') set_bit(g_Knife1, id);
- if(bits[2][0] == '1') set_bit(g_Knife2, id);
- if(bits[3][0] == '1') set_bit(g_Knife3, id);
- if(bits[4][0] == '1') set_bit(g_Knife4, id);
- if(bits[5][0] == '1') set_bit(g_Knife5, id);
- if(bits[6][0] == '1') set_bit(g_Knife6, id);
- if(bits[7][0] == '1') set_bit(g_Knife7, id);
- if(bits[8][0] == '1') set_bit(g_Knife8, id);
- if(bits[9][0] == '1') set_bit(g_Knife9, id);
- }
- }
- */
- 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, "mp3 play sound/Extreme-Jail/JB_Connecting.mp3" )
- 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 ליי'ג ^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()
- }
- }
- stock bool:check_points(index,amount)
- return playerpoints[index] >= amount ? true:false;
- print_message(id, msg[]) {
- message_begin(MSG_ONE, g_iMsgSayText, {0,0,0}, id)
- write_byte(id)
- write_string(msg)
- message_end()
- }
- public TeamCount(&ct, &t)
- {
- for(new id=1; id <= g_max_clients; id++) {
- if(!is_user_connected(id) || !is_user_alive(id))
- continue
- if(cs_get_user_team(id) == CS_TEAM_T)
- t++
- else if(cs_get_user_team(id) == CS_TEAM_CT)
- ct++
- }
- }
- /* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
- *{\\ rtf1\\ fbidis\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil\\ fcharset0 Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ ltrpar\\ lang14337\\ f0\\ fs16 \n\\ par }
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement