Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <amxmodx>
- #include <cstrike>
- #include <fakemeta_util>
- // Define the Plugin Version
- new const VERSION[] = "1.0";
- // PREFIX
- new const PREFIX[] = "[ JailBreak ]";
- const CountSeconds = 60;
- new g_iCountTime,g_MaxPlayers;
- public plugin_init(){
- register_plugin("JailBreak Day", VERSION, "Dyamons & CheezPuff [NorToN edit]");
- register_clcmd("say /menu","JBDay")
- register_clcmd("say /days","JBDay")
- register_logevent( "LEV_RoundEnd", 2, "1=Round_End" )
- g_MaxPlayers = get_maxplayers();
- }
- public LEV_RoundEnd()
- remove_task()
- public Count() {
- set_hudmessage( 0 , 255 , 0 , -1.0 , 0.28 , 2 , 1.1 , 1.1 , 0.01 , 0.01 );
- show_hudmessage( 0 , "Prisoners Have: %d seconds -Left to Hide" , g_iCountTime-- );
- }
- public JBDay(id){
- if(cs_get_user_team(id) != CS_TEAM_CT)
- return;
- new menu = menu_create("\yJailBreak Game Day:^n\rby Dyamons & CheezPuff", "menu_handler");
- menu_additem(menu, "\wZombie Day", "1", 0);
- menu_additem(menu, "\wSpartan Day", "2", 0);
- menu_additem(menu, "\wFree Day", "3", 0);
- menu_additem(menu, "\wCage Day", "4", 0);
- menu_additem(menu, "\wKnife Day", "5", 0);
- menu_additem(menu, "\wWar Day", "6", 0);
- menu_additem(menu, "\wHide Day", "7", 0);
- menu_setprop(menu, MPROP_EXIT, MEXIT_ALL);
- menu_display(id, menu, 0);
- }
- public menu_handler(id, menu, item){
- if( item == MENU_EXIT )
- {
- menu_destroy(menu);
- return;
- }
- new data[6], iName[64];
- new access, callback;
- menu_item_getinfo(menu, item, access, data,5, iName, 63, callback);
- new key = str_to_num(data);
- switch(key)
- {
- case 1: ZombieDay()
- case 2: SpartanDay()
- case 3: client_print( 0, print_chat, "%s Free Day! NO GUN ROOM!", PREFIX)
- case 4: client_print( 0, print_chat, "%s Cage Day! ALL TO CAGE!", PREFIX)
- case 5: KnifeDay()
- case 6: WarDay()
- case 7: HideDay()
- }
- menu_destroy(menu);
- }
- public ZombieDay(){
- for( new i = 1; i <= g_MaxPlayers; i++ )
- {
- if( !is_user_alive( i ) )
- continue;
- client_print( 0, print_chat, "%s Zombie Day has started", PREFIX)
- fm_strip_user_weapons( i )
- fm_give_item( i, "weapon_knife" )
- switch(cs_get_user_team(i))
- {
- case CS_TEAM_T:
- {
- fm_give_item(i, "weapon_m249")
- cs_set_weapon_ammo( CSW_M249, 100 )
- cs_set_user_bpammo( i, CSW_M249, 9999 )
- }
- case CS_TEAM_CT: fm_set_user_health(i, 32000);
- }
- }
- }
- public SpartanDay(){
- for( new i = 1; i <= g_MaxPlayers; i++ )
- {
- if( !is_user_alive( i ) )
- continue;
- client_print( 0, print_chat, "%s Spartan has started", PREFIX)
- switch(cs_get_user_team(i))
- {
- case CS_TEAM_T:
- {
- fm_strip_user_weapons( i )
- fm_give_item( i, "weapon_knife" )
- fm_give_item( i, "weapon_deagle")
- fm_give_item( i, "weapon_shield")
- cs_set_weapon_ammo( CSW_DEAGLE, 7 )
- cs_set_user_bpammo( i, CSW_DEAGLE, 35 )
- }
- }
- }
- }
- public KnifeDay(){
- for( new i = 1; i <= g_MaxPlayers; i++ )
- {
- if( !is_user_alive( i ) )
- continue;
- client_print( 0, print_chat, "%s Knife Day! FIGHT!!!", PREFIX)
- fm_strip_user_weapons( i )
- fm_give_item( i, "weapon_knife" )
- }
- }
- public WarDay(){
- for( new i = 1; i <= g_MaxPlayers; i++ )
- {
- if( !is_user_alive( i ) )
- continue;
- client_print( 0, print_chat, "%s War Day! FIGHT!!!", PREFIX)
- fm_strip_user_weapons( i)
- fm_give_item(i, "weapon_knife")
- fm_give_item(i, "weapon_m3")
- cs_set_weapon_ammo( CSW_M3, 8 )
- cs_set_user_bpammo( i, CSW_M3, 32 )
- }
- }
- public HideDay(){
- client_print( 0, print_chat, "%s Hide Day! HIDE!!!", PREFIX)
- g_iCountTime = CountSeconds;
- set_task( 1.0 , "Count" , _ , _ , _ , "a" , g_iCountTime );
- }
Advertisement
Add Comment
Please, Sign In to add comment