Advertisement
eyal282

Untitled

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