Raised This Month: $32 Target: $400
 8% 

[req] combokey\gun toss\spray contest...


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Repsol
Junior Member
Join Date: Jun 2020
Old 07-13-2020 , 03:20   [req] combokey\gun toss\spray contest...
Reply With Quote #1

hello,
I have 5 requests, I will be happy if you help me

#1. Combo Key = The loser dies
#2. Shot 4 Shot
#3. Gun Toss = The loser dies
#4. Spray Contest = The loser dies
#5. Typing Contest = The loser dies

Last edited by Repsol; 07-13-2020 at 03:26.
Repsol is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 07-13-2020 , 07:37   Re: [req] combokey\gun toss\spray contest...
Reply With Quote #2

And what are all of those? We can't read minds.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
Repsol
Junior Member
Join Date: Jun 2020
Old 07-13-2020 , 08:25   Re: [req] combokey\gun toss\spray contest...
Reply With Quote #3

Quote:
Originally Posted by OciXCrom View Post
And what are all of those? We can't read minds.
These plugins I want are like a mini-game
Which are in the last request "jailbreak mod" section

Image:







Last edited by Repsol; 07-13-2020 at 08:35.
Repsol is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 07-13-2020 , 09:30   Re: [req] combokey\gun toss\spray contest...
Reply With Quote #4

Do you care to explain how they work?
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
ZaX
Senior Member
Join Date: Jan 2015
Old 07-13-2020 , 09:39   Re: [req] combokey\gun toss\spray contest...
Reply With Quote #5

https://forums.alliedmods.net/showthread.php?t=295463
ZaX is offline
Repsol
Junior Member
Join Date: Jun 2020
Old 07-13-2020 , 10:13   Re: [req] combokey\gun toss\spray contest...
Reply With Quote #6

This has not been confirmed

Quote:
Originally Posted by OciXCrom View Post
Do you care to explain how they work?
Spray Contest = Whoever sprays higher wins
Gun Toss = Whoever throws the most wins
Shot 4 Shot (weapon deagle) = A shot for the TRR player then a shot for the CT player
Typing Contest = A word appears randomly. Whoever types faster wins
Combo Key = I do not know how to explain this, But I have a plugin that can only be used on jailbreak mod 2.5.5

Combo Key Plugin ( jailbreak 2.5.5 only ):
PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <fakemeta>
#include <fun>
#include <jailbreak_core>

#define PLUGIN "[JB] LR:COMBO KEY"
#define VERSION "1.0"
#define AUTHOR "Natsheh"

#define TASK_COMBOKEYS_HUD 8884958374672

new COMBO_KEY_DUELFW_FM_CMDSTART_POST;

enum(+=1)
{
    
KEY_USE 0,
    
KEY_ATTACK,
    
KEY_ATTACK2,
    
KEY_DUCK,
    
KEY_JUMP,
    
KEY_MLEFT,
    
KEY_MRIGHT,
    
KEY_RELOAD,
    
KEY_MFORWARD,
    
KEY_MBACKWARD,
    
    
MAX_KEYS
}

new const 
iComboKeys[] = {
    
IN_USE,
    
IN_ATTACK,
    
IN_ATTACK2,
    
IN_DUCK,
    
IN_JUMP,
    
IN_MOVELEFT,
    
IN_MOVERIGHT,
    
IN_RELOAD,
    
IN_FORWARD,
    
IN_BACK
}

new const 
szComboKeys[][] = {
    
"USE",
    
"SLASH",
    
"STAB",
    
"CROUCH",
    
"JUMP",
    
"MOVE LEFT",
    
"MOVE RIGHT",
    
"RELOAD",
    
"MOVE FORWARD",
    
"MOVE BACKWARD"
}

new 
g_user_progress[33], Array:tmp_arrayiLRPrisoneriLRGuardFloat:g_delay[33];

new const 
correct_snd[] = "buttons/blip2.wav";
new const 
incorrect_snd[] = "buttons/button10.wav";

public 
plugin_precache()
{
    
precache_sound(correct_snd);
    
precache_sound(incorrect_snd);
}

public 
plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
COMBO_KEY_DUEL register_jailbreak_lritem("Combo Key");
    
    
FW_FM_CMDSTART_POST = -1;
}

public 
jb_lr_duel_started(prisonerguardduelid)
{
    if(
duelid == COMBO_KEY_DUEL)
    {
        if(
FW_FM_CMDSTART_POST == -1)
        {
            
FW_FM_CMDSTART_POST register_forward(FM_CmdStart"fw_CmdStart_post"1);
        }
        
        
iLRGuard guard;
        
iLRPrisoner prisoner;
        
        
strip_user_weapons(guard)
        
strip_user_weapons(prisoner)
        
give_item(guard"weapon_knife");
        
give_item(prisoner"weapon_knife");
        
        
jb_block_user_weapons(guardtrue, ~(1<<CSW_KNIFE))
        
jb_block_user_weapons(prisonertrue, ~(1<<CSW_KNIFE))
        
        if(!
_:tmp_array)
        {
            
tmp_array ArrayCreate(1,1);
        }
        
        for(new 
iMAX_KEYSi++)
        {
            
ArrayPushCell(tmp_arrayi);
        }
        
        new 
szString[96];
        const 
maxcombokeys 7;
        for(new 
imaxloop = (ArraySize(tmp_array)-maxcombokeys); maxloopi++)
        {
            
ArrayDeleteItem(tmp_arrayrandom(ArraySize(tmp_array)));
        }
        
        
ArraySort(tmp_array"arraysorting_keys");
        
        for(new 
imaxloop ArraySize(tmp_array); maxloopi++)
        {
            
add(szStringcharsmax(szString), szComboKeys[ArrayGetCell(tmp_array,i)])
            
add(szStringcharsmax(szString), "|");
        }
        
        if(
szString[0] != 0)
            
szString[strlen(szString)-1] = 0;
        
        
set_task(1.0"show_combokeys_hud"guard+TASK_COMBOKEYS_HUDszStringcharsmax(szString), "b");
        
set_task(1.0"show_combokeys_hud"prisoner+TASK_COMBOKEYS_HUDszStringcharsmax(szString), "b");
    }
}

public 
arraysorting_keys(Array:array, item1item2, const data[], data_size)
{
    if(
random_num(0,1) == 0) return -1;
    
    return 
1;
}

public 
show_combokeys_hud(const szString[], taskid)
{
    new 
id taskid TASK_COMBOKEYS_HUD;
    
    
set_hudmessage(255255255, -1.00.3026.00.990.050.2, -1);
    
show_hudmessage(idszString);
}

public 
jb_lr_duel_ended(prisonerguardduelid)
{
    if(
duelid == COMBO_KEY_DUEL)
    {
        if(
FW_FM_CMDSTART_POST != -1)
        {
            
unregister_forward(FM_CmdStartFW_FM_CMDSTART_POST1);
            
FW_FM_CMDSTART_POST = -1;
        }
        
        
iLRGuard 0;
        
iLRPrisoner 0;
        
        if(
_:tmp_array 0)
        {
            
ArrayDestroy(tmp_array);
            
tmp_array any:0;
        }
        
        
remove_task(guard+TASK_COMBOKEYS_HUD);
        
remove_task(prisoner+TASK_COMBOKEYS_HUD);
        
        
jb_block_user_weapons(guardfalse);
        
jb_block_user_weapons(prisonerfalse);
        
        
g_user_progress[guard] = 0;
        
g_user_progress[prisoner] = 0;
    }
}

public 
fw_CmdStart_post(iduc_handleseed)
{
    if(
iLRGuard != id && iLRPrisoner != id)
    {
        return;
    }
    
    if(
g_delay[id] >= get_gametime())
    {
        return;
    }
    
    static 
iButtonsiButtons get_uc(uc_handleUC_Buttons);
    static 
iOldButtonsiOldButtons pev(idpev_oldbuttons);
    
    if(
iButtons == iComboKeys[ArrayGetCell(tmp_arrayg_user_progress[id])])
    {
        
g_delay[id] = get_gametime() + 0.1;
        
g_user_progress[id]++;
        
emit_sound(idCHAN_AUTOcorrect_sndVOL_NORMATTN_NORM0PITCH_NORM);
        
        if(
g_user_progress[id] == ArraySize(tmp_array))
        {
            
g_user_progress[id] = 0;
            
keycombo_end(id);
        }
    }
    else if( 
g_user_progress[id] > && iButtons && (iOldButtons != iComboKeys[ArrayGetCell(tmp_arrayg_user_progress[id]-1)]) )
    {
        
g_delay[id] = get_gametime() + 0.1;
        
g_user_progress[id] = 0;
        
emit_sound(idCHAN_AUTOincorrect_sndVOL_NORMATTN_NORM0PITCH_NORM);
    }
}

keycombo_end(winner)
{
    new 
szWinnerName[32];
    
get_user_name(winnerszWinnerNamecharsmax(szWinnerName));
    
    
set_hudmessage(225225225, -1.00.2526.05.00.050.2, -1);
    
show_hudmessage(0"%s has win the KeyCombo Duel!"szWinnerName);
    
    
cprint_chat(0_"!g%s !yhas win the !gKeyCombo !yDuel!t!"szWinnerName)
    
    if(
iLRPrisoner == winner)
    {
        
user_kill(iLRGuard);
        return;
    }
    if(
iLRGuard == winner)
    {
        
user_kill(iLRPrisoner);
    }

Typing Contest Plugin ( jailbreak 2.5.5 only ):
PHP Code:
#include < amxmodx >
#include < jailbreak_core >

const TASK_TYPING_CONTEST 192182;

new 
g_szWord128 ];
new 
bool:g_bGameStarted;
new 
LR_PrisonerLR_GuardDUEL_ID;

new const 
RANDOM_WORDS[][] = {
    
"I Love Newyork",
    
"How Fast can you type!?",
    
"Jailbreak Mod By Natsheh"
}

public 
plugin_init( ) {
    
register_plugin"[LR] Typing Const""0.1""master4life" );
    
    
DUEL_ID register_jailbreak_lritem("Typing Contest");
    
    
register_clcmd"say""CmdHook" );
}

public 
jb_lr_duel_ended(prisonerguardduelid)
{
    if(
DUEL_ID == duelid)
    {
        
g_bGameStarted false;
        
LR_Prisoner LR_Guard 0;
        
        
remove_taskTASK_TYPING_CONTEST );
    }
}

public 
jb_lr_duel_started(prisonerguardduelid)
{
    if(
DUEL_ID == duelid)
    {
        
remove_taskTASK_TYPING_CONTEST );
        
LR_Prisoner prisoner;
        
LR_Guard guard;
        
        new 
szPris[32], szGuar[32];
        
get_user_name(prisonerszPrischarsmax(szPris))
        
get_user_name(guardszGuarcharsmax(szGuar))
        
cprint_chat(0_"^4%s ^1has challenged ^3%s ^1in a ^4Typing Contest!"szPrisszGuar)
        
        
set_task3.0"ReadWord"TASK_TYPING_CONTEST );
    }
}

public 
ReadWord( )
{
    new const 
szFile[ ] = "addons/amxmodx/configs/jailbreak_words.txt";
    
    if(!
file_exists(szFile))
    {
        for(new 
isizeof RANDOM_WORDSi++)
        {
            
write_file(szFileRANDOM_WORDS[i]);
        }    
    }
    
    new 
iLines file_sizeszFiletrue );
    
read_fileszFilerandom_num0iLines ), g_szWordcharsmaxg_szWord ),iLines );
    
    
g_bGameStarted true;
    
    new 
szMessage196 ];
    
formatexszMessagecharsmaxszMessage ), "The Word is... ^n >> %s <<"g_szWord );        
    
cprint_chat0_"The Word is >> ^4%s^1."g_szWord );
    
    
UTIL_DirectorMessage(
        .
index       0
        .
message     szMessage,
        .
red         90,
        .
green       30,
        .
blue        0,
        .
x           = -1.0,
        .
y           0.30,
        .
effect      0,
        .
fxTime      5.0,
        .
holdTime    5.0,
        .
fadeInTime  0.5,
        .
fadeOutTime 0.3
    
);
}

public 
CmdHook( const id )
{
    if( 
g_bGameStarted )
    {
        if( 
id != LR_Guard && id != LR_Prisoner ) return;
        
        new 
szSaid196 ];
        
read_argsszSaidcharsmax(szSaid) );
        
remove_quotesszSaid );
        
        
// string is empty
        
if(!szSaid[0]) return;
        
        if( 
equalig_szWordszSaid ) ) {
            
g_bGameStarted false;
            
            
FinishOverid == LR_Prisoner ?  LR_Guard LR_Prisoner id )
        } 
        else {
            
cprint_chat(id_"^3Your word is incorrect, ^4try again." );
        }
    }
}

public 
FinishOver( const iLooser, const iWinner )
{
    new 
szMessage96 ], szName][ 32 ];
    
    
get_user_nameiWinnerszName], charsmax(szName[]));
    
get_user_nameiLooserszName], charsmax(szName[]));
    
    
formatexszMessagecharsmaxszMessage ), "%s has won the typing Contest, ^n%s has lost!"szName], szName] );
    
cprint_chat0_" ^4%s ^1has won the typing ^3Contest, ^4%s^1 Dies."szName], szName] );
    
    
UTIL_DirectorMessage(
        .
index       0
        .
message     szMessage,
        .
red         90,
        .
green       30,
        .
blue        0,
        .
x           = -1.0,
        .
y           = -1.0,
        .
effect      0,
        .
fxTime      5.0,
        .
holdTime    5.0,
        .
fadeInTime  0.5,
        .
fadeOutTime 0.3
    
);
    
    
user_killiLooser );
}

stock UTIL_DirectorMessage( const index, const message[], const red 0, const green 160, const blue 0
                      const 
Float:= -1.0, const Float:0.65, const effect 2, const Float:fxTime 6.0
                      const 
Float:holdTime 3.0, const Float:fadeInTime 0.1, const Float:fadeOutTime 1.5 )
{
    
#define pack_color(%0,%1,%2) ( %2 + ( %1 << 8 ) + ( %0 << 16 ) )
    #define write_float(%0) write_long( _:%0 )
    
    
message_beginindex MSG_ONE MSG_BROADCASTSVC_DIRECTOR, .player index );
    {
        
write_bytestrlenmessage ) + 31 ); // size of write_*
        
write_byteDRC_CMD_MESSAGE );
        
write_byteeffect );
        
write_longpack_colorredgreenblue ) );
        
write_float);
        
write_float);
        
write_floatfadeInTime );
        
write_floatfadeOutTime );
        
write_floatholdTime );
        
write_floatfxTime );
        
write_stringmessage );
    }
    
message_end( );

Repsol is offline
ZaX
Senior Member
Join Date: Jan 2015
Old 07-13-2020 , 10:57   Re: [req] combokey\gun toss\spray contest...
Reply With Quote #7

What do you mean this has not been confirmed? You can use it, it has no issues and if you get any problems/issues post it on the plugins thread
ZaX is offline
Repsol
Junior Member
Join Date: Jun 2020
Old 07-13-2020 , 11:09   Re: [req] combokey\gun toss\spray contest...
Reply With Quote #8

Quote:
Originally Posted by ZaX View Post
What do you mean this has not been confirmed?
This mod is now in the {Unapproved / Old Plugins section
Plugins that won't be approved or are old / abandoned. } Is

Quote:
Originally Posted by ZaX View Post
You can use it
I've used this mod, but it's hard to play,
So I use another jailbreak mod
And I want to add those 5 requests
Repsol is offline
Repsol
Junior Member
Join Date: Jun 2020
Old 07-14-2020 , 09:27   Re: [req] combokey\gun toss\spray contest...
Reply With Quote #9

#1. Combo Key = Solved
#2. Shot 4 Shot
#3. Gun Toss = The loser dies
#4. Spray Contest = The loser dies
#5. Typing Contest = Solved

Last edited by Repsol; 07-14-2020 at 09:53.
Repsol is offline
alferd
Veteran Member
Join Date: Dec 2019
Location: Iran is Always Eternal
Old 07-16-2020 , 05:30   Re: [req] combokey\gun toss\spray contest...
Reply With Quote #10

Check The Private Message
__________________
Jailbreak AD 2.0

The greatest civilization of 🇮🇷IRAN🇮🇷
alferd is offline
Reply


Thread Tools
Display Modes

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 21:33.


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