Advertisement
eyal282

Untitled

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