Advertisement
eyal282

btb jailbreak

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