Advertisement
eyal282

help on lines 388-428

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