Raised This Month: $12 Target: $400
 3% 

Jailbreak 2.plugins .


Post New Thread Closed Thread   
 
Thread Tools Display Modes
Author Message
chriss
Member
Join Date: Dec 2009
Location: Estonia
Old 03-27-2010 , 04:56   Jailbreak 2.plugins .
#1

I need jailbreak 2 plugins .
One ise like /lr with shot for shot , granade , and more.
The other plugin what i need is Jailbreak Days.
When the round starts for CT coming Vote
"What day to you prefer?"
Zombie Day [Terrorist got 2000 hp]
Cage Day [Text "All To The CAGE and listen orders"]
Free Day [Text "Its Freeday no gunroom"]
Spartan Day [All Terrorist have Deagle + Shield]
War Day [All Got m3-s]
Other Day[Text "Its other day , listen simon]
Knife Day[CT have 1000hp + all knifes]

EXAMPLE
"What day to you prefer?"
Zombie Day[1 votes]
Cage Day[0 votes]
Free Day[0 votes]
Spartan Day[2 votes]
War Day[0 votes]
Other Day[0 votes]
Knife Day[0 votes]

ITS GONNA BE SPARTAN DAY !
Terrorists will get Deagle + shield!

If that plugin Exict then gimme link ?

Sorry for bad english i need help please ..
chriss is offline
Send a message via MSN to chriss Send a message via Skype™ to chriss
ServO
Senior Member
Join Date: Nov 2009
Location: Are you asking me out?
Old 03-27-2010 , 05:07   Re: Jailbreak 2.plugins .
#2

I don't think it made. But i like your idea, with voteing

If someone making this plugin. I would 100% used it ;D
__________________
Zombie Dominance

To Do:
- Learn AMXx Script...
ServO is offline
chriss
Member
Join Date: Dec 2009
Location: Estonia
Old 03-27-2010 , 06:08   Re: Jailbreak 2.plugins .
#3

yep no help
chriss is offline
Send a message via MSN to chriss Send a message via Skype™ to chriss
Toastt
BANNED
Join Date: Nov 2009
Old 03-27-2010 , 11:01   Re: Jailbreak 2.plugins .
#4

but there would be no need for /lr cause most the days everyone would die...
Toastt is offline
chriss
Member
Join Date: Dec 2009
Location: Estonia
Old 03-27-2010 , 14:30   Re: Jailbreak 2.plugins .
#5

Quote:
Originally Posted by Toastt View Post
but there would be no need for /lr cause most the days everyone would die...
Not ... last man always can /lr .
__________________
Hey
chriss is offline
Send a message via MSN to chriss Send a message via Skype™ to chriss
sl4y
Junior Member
Join Date: Dec 2009
Old 03-30-2010 , 14:20   Re: Jailbreak 2.plugins .
#6

i uploaded for you
snip

Last edited by YamiKaitou; 03-30-2010 at 23:14.
sl4y is offline
chriss
Member
Join Date: Dec 2009
Location: Estonia
Old 03-30-2010 , 14:25   Re: Jailbreak 2.plugins .
#7

Can't download ??
__________________
Hey
chriss is offline
Send a message via MSN to chriss Send a message via Skype™ to chriss
chriss
Member
Join Date: Dec 2009
Location: Estonia
Old 03-30-2010 , 14:27   Re: Jailbreak 2.plugins .
#8

And i have only right now this plugin ,but this don't help much!
I need like showing and counting votes who win ..
Can anybody change this code??



Code:
/*
*    -----------------
*     Coded in 2010, 
*     Shuttle_Wave
*     -----------------
*     
*    .:: Description ::.
*     
*     JailBreak Day Plugin
*
*
*    .:: Contacts ::.
*
*    Email: [email protected]
*
*    Steam: shuttle_wave or lengjonathon
* 
*/

#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <fun>
#include <hamsandwich>

// Define the Plugin Version
new const VERSION[] = "1.0";

// PREFIX
new const PREFIX[] = "[ JailBreak ]";

const CountSeconds = 60;

new g_iCountTime;

public plugin_init()
{
    register_plugin("JailBreak Day", VERSION, "Shuttle_Wave");

    RegisterHam(Ham_Spawn, "player", "fwdSpawnPlayer", 1);
    register_logevent( "LEV_RoundEnd", 2, "1=Round_End" )
}

public LEV_RoundEnd()
{
    remove_task()
}

public fwdSpawnPlayer(id)
{
    
    if (cs_get_user_team(id) == CS_TEAM_CT)
    {
        JBDay(id)
    }
}

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)
{
    new menu = menu_create("\yJailBreak Game Day:^n\rby Shuttle_Wave", "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 PLUGIN_HANDLED;
    }

    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(id)
        }
        case 2:
        {
            SpartanDay(id)
        }
        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(id)
        }
        case 6:
        {
            WarDay(id)
        }
        case 7:
        {
            HideDay(id)
        }
    }
        
    menu_destroy(menu);
    return PLUGIN_HANDLED;
}

public ZombieDay(id)
{
    new iPlayers[32]
    new iNum
    new id

    get_players( iPlayers, iNum )

    for( new i = 0; i < iNum; i++ )
    {
        id = iPlayers[i]
        if( !is_user_alive( id ) )
        {
            continue;
        }
        
        client_print( 0, print_chat, "%s Zombie Day has started", PREFIX)
        
        strip_user_weapons( id )
        
        give_item( id, "weapon_knife" )
        
        if (cs_get_user_team(id) == CS_TEAM_CT)
        {
            give_item(id, "weapon_m249")
            cs_set_weapon_ammo( CSW_M249, 100 )
            cs_set_user_bpammo( id, CSW_M249, 200 )
            
        }
        
        if (cs_get_user_team(id) == CS_TEAM_T)
        {
            set_user_health(id, 2000);
        }
        
    }
}

public SpartanDay(id)
{
    new iPlayers[32]
    new iNum
    new id

    get_players( iPlayers, iNum )

    for( new i = 0; i < iNum; i++ )
    {
        id = iPlayers[i]
        if( !is_user_alive( id ) )
        {
            continue;
        }
        
        client_print( 0, print_chat, "%s Spartan has started", PREFIX)
        
        if (cs_get_user_team(id) == CS_TEAM_T)
        {
            strip_user_weapons( id )
            
            give_item( id, "weapon_knife" )
            give_item( id, "weapon_deagle")
            give_item( id, "weapon_shield")
            cs_set_weapon_ammo( CSW_DEAGLE, 7 )
            cs_set_user_bpammo( id, CSW_DEAGLE, 35 )
        }
    }
}

public KnifeDay(id)
{
    
    new iPlayers[32]
    new iNum
    new id

    get_players( iPlayers, iNum )

    for( new i = 0; i < iNum; i++ )
    {
        id = iPlayers[i]
        if( !is_user_alive( id ) )
        {
            continue;
        }
        
        client_print( 0, print_chat, "%s Knife Day! FIGHT!!!", PREFIX)
        
        strip_user_weapons( id )
        give_item( id, "weapon_knife" )
    }
}

public WarDay(id)
{
    new iPlayers[32]
    new iNum
    new id

    get_players( iPlayers, iNum )

    for( new i = 0; i < iNum; i++ )
    {
        id = iPlayers[i]
        if( !is_user_alive( id ) )
        {
            continue;
        }
        
        client_print( 0, print_chat, "%s War Day! FIGHT!!!", PREFIX)
        
        strip_user_weapons( id )
        give_item(id, "weapon_knife")
        give_item(id, "weapon_m3")
        cs_set_weapon_ammo( CSW_M3, 8 )
        cs_set_user_bpammo( id, CSW_M3, 32 )
    }
}

public HideDay(id)
{
    client_print( 0, print_chat, "%s Hide Day! HIDE!!!", PREFIX)

    g_iCountTime = CountSeconds;
    set_task( 1.0 , "Count" , _ , _ , _ , "a" , g_iCountTime );
}
chriss is offline
Send a message via MSN to chriss Send a message via Skype™ to chriss
Old 03-30-2010, 16:42
chriss
This message has been deleted by Exolent[jNr]. Reason: Don't bump until 2 weeks have passed since last post.
wrecked_
Veteran Member
Join Date: Jan 2010
Location: New York (GMT-5)
Old 03-30-2010 , 22:14   Re: Jailbreak 2.plugins .
#9

PHP Code:
#include <amxmodx>
#include <cstrike>
#include <fun>
#include <hamsandwich>

new const PLUGIN[] = "Days Votemenu"
new const VERSION[] = "1.0"
new const AUTHOR[] = "Wrecked"

new const prefix[] = "!g[Jailbreak]!y"

#define DAYS        7
#define VOTE_TIME    6.0
#define TASKID        1996
#define START_TASKID    1998

new iVotes[DAYS]

new const 
DAYSNAMES[DAYS][] =
{
    
"Zombie Day",
    
"Cage Day",
    
"Free Day",
    
"Spartan Day",
    
"War Day",
    
"Knife Day",
    
"Other Day"
}

new 
iVoteAmount

new bool:b_DayChosen

new bool:b_NoWep

new menu

public plugin_init()
{
    
register_pluginPLUGINVERSIONAUTHOR // :avast:
    
    
register_event"HLTV""EVENT_NewRound""a""1=0""2=0" // new round, no freezetime
    
    
RegisterHamHam_Spawn"player""HAM_Spawn_Post")
    
RegisterHamHam_PlayerAddItem"player""HAM_Add_Item_Pre")
    
    
set_task7.0"EVENT_NewRound"START_TASKID // since HLTV isn't called on mapstart
}

public 
HAM_Add_Item_PreidiEnt )
{
    if( 
cs_get_user_teamid ) == CS_TEAM_T && b_NoWep && b_DayChosen )
    {
        return 
HAM_SUPERCEDE;
    }
    
    return 
HAM_IGNORED;
}

public 
HAM_Spawn_Postid )
{
    if( !
is_user_aliveid ) || !b_DayChosen )
        return 
HAM_IGNORED;
        
    new 
bigger 0
    
    
for( new 1DAYSi++ ) // thanks seta
    
{
        if( 
iVotes[i] > iVotes[bigger] )
        {
            
bigger i
        
}
    }
    
    
EXEC_DayActionidbigger )
    
    return 
HAM_IGNORED;
}

public 
EVENT_NewRound()
{
    
b_DayChosen false
    b_NoWep 
false
    remove_task
TASKID )
    
remove_taskSTART_TASKID )
    
    for( new 
0sizeofiVotes ); i++ )
    {
        
iVotes[i] = 0
    
}
    
    
menu menu_create"What day will today be?""MENU_Handler" )
    
    for( new 
0DAYSz++ )
    {
        new 
menuitem[64]
        new 
number[10]
        
formatexmenuitem63"%s"DAYSNAMES[z] )
        
formatexnumber9"%d")
        
        
menu_additemmenumenuitemnumber)
    }
    
    
menu_setpropmenuMPROP_EXITMEXIT_ALL )
    
    new 
iPlayers[32]
    new 
iNum
    
    get_players
iPlayersiNum )
    
    new 
id
    
    
for( new 0iNumi++ )
    {
        
id iPlayers[i]
        
        if( 
cs_get_user_teamid ) == CS_TEAM_CT )
        {
            
menu_displayidmenu)
            
            
iVoteAmount++
        }
    }
    
    
UPDATE_Hud()
    
    
set_taskVOTE_TIME"TASK_GetDay"TASKID )
}

public 
MENU_Handleridmenuitem )
{
    if( 
item == MENU_EXIT )
    {
        
menu_destroymenu )
        
        return 
PLUGIN_HANDLED;
    }
    
    new 
name[64]
    new 
data[6]
    new 
access
    
new callback
    
    menu_item_getinfo
menuitemaccessdata5name63callback )
    
    new 
choice str_to_numdata )
    
    
iVotes[choice-1]++
    
iVoteAmount--
    
    
menu_destroymenu )
    
    
UPDATE_Hud()
    
    return 
PLUGIN_HANDLED;
}

public 
TASK_GetDay()
{
    new 
bigger 0;
    
    for( new 
1DAYSi++ ) // thanks Seta
    
{
        if( 
iVotes[i] > iVotes[bigger] )
        {
            
bigger i
        
}
    }
    
    
EXEC_DayAction0bigger )
}

EXEC_DayActionplriValue )
{
    
b_DayChosen true
    
    
new iPlayers[32]
    
    new 
iNum 1
    
    
if( plr )
    {
        
iPlayers[0] = plr
    
}
    else
    {
        
get_playersiPlayersiNum )
    }
    
    new 
id
    
    
switch( iValue )
    {
        case 
1// zombie
        
{
            for( new 
0iNumi++ )
            {
                
id iPlayers[i]
                
                if( 
cs_get_user_teamid ) == CS_TEAM_T && is_user_aliveid ) )
                {
                    
set_user_healthid2000 )
                }
            }
            
        
b_NoWep true
            ChatColor
plr plr 0"%s Today is a!g zombie day!y! All terrorists get!g 2000!y HP!"prefix )
        }
        
        case 
2// cage
        
{
            
ChatColorplr plr 0"%s Everyone get to the!g cage!y and listen to orders! It's a!g cage day!"prefix )
        
b_NoWep false
        
}
        
        case 
3// free
        
{
            
ChatColorplr plr 0"%s Today is a!g free day!"prefix )
        
b_NoWep false
        
}
        
        case 
4// spartan
        
{
            for( new 
0iNumi++ )
            {
                
id iPlayers[i]
                
                if( 
cs_get_user_teamid ) == CS_TEAM_T && is_user_aliveid ) )
                {
                    
strip_user_weaponsid )
                    
                    
give_itemid"weapon_deagle" )
                    
cs_set_user_bpammoidCSW_DEAGLE35 )
                    
                    
give_itemid"weapon_shield" )
                }
            }
            
            
ChatColorplr plr 0"%s Today is a!g spartan day!y!"prefix )
        
b_NoWep true
        
}
        
        case 
5// war
        
{
            for( new 
0iNumi++ )
            {
                
id iPlayers[i]
        
        if( 
is_user_aliveid ) )
        {
            
strip_user_weaponsid )
                
            new 
iWep give_itemid"weapon_m3" )
                
            
cs_set_weapon_ammoiWep32 // 32, right?
        
}
            }
            
            
ChatColorplr plr 0"%s Today is a!g war day!y!"prefix )
        
b_NoWep true
        
}
        
        case 
6// knife
        
{
            for( new 
0iNumi++ )
            {
                
id iPlayers[i]
                
                if( 
is_user_aliveid ) )
        {
            
strip_user_weaponsid )
            
            if( 
cs_get_user_teamid ) == CS_TEAM_CT )
            {
                
give_itemid"weapon_knife" // requested by chris
                
set_user_healthid1000 )
            }
        }
            }
            
            
ChatColorplr plr 0"%s Today is a!g knife day!y!"prefix )
        
b_NoWep true
        
}
        
        case 
7// other
        
{
            
ChatColorplr plr 0"%s Today is an!g other day!y!"prefix )
        
b_NoWep false
        
}
    }
}

stock UPDATE_Hud()
{
    new 
message[256]
    new 
iLen
    
    iLen 
+= formatexmessagecharsmaxmessage ) - iLen"%s v%s by %s^n^n"PLUGINVERSIONAUTHOR )
    for( new 
0DAYSi++ )
    {    
        
iLen += formatexmessage[iLen], charsmaxmessage ) - iLen"%s [%d Vote%s]^n"DAYSNAMES[i], iVotes[i], ( iVotes[i] == ) ? "" "s" )
    }
    
iLen += formatexmessage[iLen], charsmaxmessage ) - iLen"^nRemaining Votes: %d"iVoteAmount )
    
    
set_hudmessage2552552550.560.0206.02.0 )
    
show_hudmessage0"%s"message )
}

stock ChatColorid, const input[], any:... )
{
    new 
count 1;
    new 
players[32];
    static 
msg[191];
    
vformat(msg190input3);
    
    
replace_all(msg190"!g""^4"); // Green Color
    
replace_all(msg190"!y""^1"); // Default Color
    
replace_all(msg190"!team""^3"); // Team Color
    
replace_all(msg190"!team2""^0"); // Team2 Color
    
    
if (id)
    
players[0] = id
    else
    
get_players(playerscount"ch");
    
    for (new 
0counti++)
    {
        if (
is_user_connected(players[i]))
        {
            
message_begin(MSG_ONE_UNRELIABLEget_user_msgid("SayText"), _players[i]);
            
write_byte(players[i]);
            
write_string(msg);
            
message_end();
        }
    }

__________________
[ Paid Requests ]
DO NOT PM ME ABOUT BLOCKMAKER
NO PRIVATE SUPPORT

Last edited by wrecked_; 03-31-2010 at 13:37.
wrecked_ is offline
chriss
Member
Join Date: Dec 2009
Location: Estonia
Old 03-31-2010 , 13:32   Re: Jailbreak 2.plugins .
#10

Something is buggy , when all ct have voted then its like 2 round working and then somebody don't vote and there is 2 votes ?? like nobody voted and there is like just 2 votes on spartan or zombie day ..
Even when we had 4 ct we didnt beat spartan day who have 2 vote at start but we had 4 votes for freeday .

*2 things ... can anybody do that Terrorist can't get another weapon on zombie day , knife day , spartan day , war day ..
*Can anybody add unlimited clip for ct in zombie day ??? like 5 ct and 16 t and we got totally owned
*U can add some days too if somebody can .

*Thanks wrecked ..

Sorry for my bad english..
__________________
Hey
chriss is offline
Send a message via MSN to chriss Send a message via Skype™ to chriss
Closed Thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 00:07.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode