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

JB game | Suicide bomber


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
InteX01
Senior Member
Join Date: Jan 2017
Old 06-25-2017 , 18:58   JB game | Suicide bomber
Reply With Quote #1

Is this even possible to make ?
If so.. can somebody make it ?

Last edited by InteX01; 03-19-2018 at 06:33.
InteX01 is offline
TanKerr
Member
Join Date: Feb 2017
Location: Morocco
Old 06-26-2017 , 01:05   Re: JB game | Suicide bomber
Reply With Quote #2

have you make a search !?

You can edited from a plugin in New Plugin Submissions witch named ' VIRUS MOD ' in the first page !!
__________________

Last edited by TanKerr; 06-26-2017 at 01:06.
TanKerr is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 06-26-2017 , 07:57   Re: JB game | Suicide bomber
Reply With Quote #3

Quote:
Originally Posted by TanKerr View Post
have you make a search !?

You can edited from a plugin in New Plugin Submissions witch named ' VIRUS MOD ' in the first page !!
Oh no. It's another moroccan friend of Houssam.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
wicho
Veteran Member
Join Date: Feb 2012
Location: GuateAmala
Old 03-03-2018 , 03:04   Re: JB game | Suicide bomber
Reply With Quote #4

Sorry to revive but im interested in this too, someone know if this plugin are created? If not can someone can created pls? Thanks in advance
wicho is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 03-03-2018 , 10:34   Re: JB game | Suicide bomber
Reply With Quote #5

Quote:
Originally Posted by wicho View Post
Sorry to revive but im interested in this too, someone know if this plugin are created? If not can someone can created pls? Thanks in advance
https://forums.alliedmods.net/showthread.php?t=295463

Download the addons archive go to scripting search for jb_suicidebomb.sma
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !

Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
wicho
Veteran Member
Join Date: Feb 2012
Location: GuateAmala
Old 03-03-2018 , 12:14   Re: JB game | Suicide bomber
Reply With Quote #6

I check your code but it is not the same, what I want is to drop weapons and give knife to the players and choose a terrorist player at random and give him a glow (red glow for example) and he needs to slash another player to tansfer the glow. After 30 seconds the player who has the glow will explode and that player will die. The glow is basically like the c4. This is for zombie mode but it's fine if you use terrorist native. thx in advance..

Last edited by wicho; 03-03-2018 at 12:19.
wicho is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 03-03-2018 , 12:18   Re: JB game | Suicide bomber
Reply With Quote #7

Quote:
Originally Posted by wicho View Post
I check your code but it is not the same, what I want is to drop weapons and give knife to all the players and choose a player at random and give him a glow (red glow for example) and he needs to slash another player to tansferir the glow. After 30 seconds the player who has the glow will explode and that player will die. The glow is basically like the c4. This is for zombie mode but it's fine if you count it as a terrorist or ct.
Search then for...
jb_minigame_tickingbomb.sma
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !

Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
wicho
Veteran Member
Join Date: Feb 2012
Location: GuateAmala
Old 03-04-2018 , 01:32   Re: JB game | Suicide bomber
Reply With Quote #8

Cool, just one more thing could you add the ledglow effect (the red sprite that flashes) pls? .. thanks for your help

code:

PHP Code:
#include <amxmodx>
#include <jailbreak_core>
#include <fun>
#include <hamsandwich>
#include <fakemeta>
#include <jb_minigames_core>

#define PLUGIN "[JB] MINIGAMES: BOXING"
#define VERSION "1.0"
#define AUTHOR "Natsheh"

#define TASK_TICKINGBOMB 4876574321111

new HamHook:TakeDamagePreuser_has_tickingbomb[33], MINIGAME_INDEXThinkPostg_pcvar_one,
g_pcvar_two;

new const 
tickingbomb_classname[] = "tickingbomb";
new 
tickingbomb_model[64] = "models/jailbreak/w_bomb.mdl";
new 
sprites_eexplo;

new const 
sounds_keys[][] = {
    
"BOMB_LVL_1_SND",
    
"BOMB_LVL_2_SND",
    
"BOMB_LVL_3_SND",
    
"BOMB_LVL_4_SND",
    
"BOMB_LVL_5_SND"
}

new 
bomb_tick_sounds[][64] = {
    
"weapons/c4_beep1.wav",
    
"weapons/c4_beep2.wav",
    
"weapons/c4_beep3.wav",
    
"weapons/c4_beep4.wav",
    
"weapons/c4_beep5.wav"
}

public 
plugin_precache()
{
    
jb_ini_get_keyvalue("MINIGAMES_TICKINGBOMB""TICKINGBOMB_MDL"tickingbomb_modelcharsmax(tickingbomb_model))
    
precache_model(tickingbomb_model);
    
    new 
szValue[64];
    
copy(szValuecharsmax(szValue), "sprites/eexplo.spr");
    
jb_ini_get_keyvalue("MINIGAMES_TICKINGBOMB""BOMB_EXPLODE_SPR"szValuecharsmax(szValue))
    
sprites_eexplo precache_model(szValue);
    
    for(new 
isizeof bomb_tick_soundsi++)
    {
        
jb_ini_get_keyvalue("MINIGAMES_TICKINGBOMB"sounds_keys[i], bomb_tick_sounds[i], charsmax(bomb_tick_sounds[]));
        
precache_sound(bomb_tick_sounds[i]);
    }
}

public 
plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
MINIGAME_INDEX register_jb_minigame("Ticking Bomb""minigame_handling");
    
    
g_pcvar_one register_cvar("jb_minigame_tickingbomb_glow""0");
    
g_pcvar_two register_cvar("jb_minigame_tickingbomb_life""15");
    
    
TakeDamagePre RegisterHam(Ham_TakeDamage"player""fw_takedamage_player_pre");
    
DisableHamForward(TakeDamagePre);

}

new 
ALLIES[32], ENEMIES[32], ALLIES_NENEMIES_N;

public 
minigame_handling(modiAllies[32], iAnumiEnemies[32], iEnum)
{
    if( !
ThinkPost )
        
ThinkPost register_forward(FM_Think"fw_think_info_target_post"1);
    
    
EnableHamForward(TakeDamagePre);
    
    
copy(ALLIEScharsmax(ALLIES), iAllies)
    
ALLIES_N iAnum;
    
ENEMIES_N iEnum;
    
copy(ENEMIEScharsmax(ENEMIES), iEnemies)
    
    
set_task(3.0"give_tickingbomb"TASK_TICKINGBOMB)
    
cprint_chat(0_"^4~MINIGAMES~ ^3Ticking Bomb ^1Match will start in 3 Seconds, ^4Good luck!")
}

public 
jb_minigame_ended(const minigameID, const minigameMOD, const winner)
{
    if(
minigameID == MINIGAME_INDEX)
    {
        
unregister_forward(FM_ThinkThinkPost1);
        
ThinkPost 0;
        
DisableHamForward(TakeDamagePre);
        
        
remove_task(TASK_TICKINGBOMB);
        
        new 
ent;
        while( (
ent engfunc(EngFunc_FindEntityByStringent"classname"tickingbomb_classname)) > 0)
        {
            
engfunc(EngFunc_RemoveEntityent);
        }
        
        new 
players[32], pnum;
        
get_players(players,pnum"h")
        
        for(new 
ipnumi++)
        {
            
user_has_tickingbomb[players[i]] = 0;
        }
    }
}

public 
give_tickingbomb(TASK_ID)
{
    new 
randrandperson = ((rand random_num(0,1)) ? ALLIES:ENEMIES)[random(rand ALLIES_N:ENEMIES_N)];
    if(!
is_user_connected(randperson)) return;
    new 
szName[32];
    
get_user_name(randpersonszNamecharsmax(szName))
    
set_user_tickingbomb(randperson)
    
cprint_chat(0_"^4~MINIGAMES~ ^3Ticking Bomb ^4- ^3%s ^1has the bomb!"szName)
    
    
set_hudmessage(25500, -1.00.3516.06.00.010.05, -1)
    
show_hudmessage(randperson"!! You Have the Ticking Bomb !! ^n Pass it Quick!")
}

public 
fw_takedamage_player_pre(victiminflictorattackerFloat:damagedmgbits)
{
    if(
attacker != inflictor || !attacker || victim == attacker) return HAM_IGNORED;
    
    if((
jb_is_user_inminigame(victim) != MINIGAME_INDEX ||
        
jb_is_user_inminigame(attacker) != MINIGAME_INDEX))
            return 
HAM_IGNORED;
    
    if(
get_user_weapon(attacker) != CSW_KNIFE)
    {
        
set_pev(victimpev_punchangleFloat:{0.0,0.0,0.0});
        
SetHamParamFloat(40.0);
        return 
HAM_IGNORED;
    }
    
    new 
ent;
    if((
ent user_has_tickingbomb[attacker]) > && !user_has_tickingbomb[victim])
    {
        
set_pev(entpev_aimentvictim)
        
set_pev(entpev_ownerattacker)
        
user_has_tickingbomb[victim] = ent;
        
user_has_tickingbomb[attacker] = 0;
        
        
set_hudmessage(25500, -1.00.3516.06.00.010.05, -1)
        
show_hudmessage(victim"!! You Have the Ticking Bomb !! ^n Pass it Quick!")
    }
    
    
SetHamParamFloat(40.0)
    return 
HAM_SUPERCEDE;
}

public 
fw_think_info_target_post(const ent)
{
    if(!
pev_valid(ent)) return FMRES_IGNORED;
    
    static 
classname[32]
    
pev(entpev_classnameclassnamecharsmax(classname))
    
    if(!
equal(classnametickingbomb_classname)) return FMRES_IGNORED;
    
    static 
Float:fExpTimeFloat:fGTimeiTargetiOwner;
    
iOwner pev(entpev_owner);
    
iTarget pev(entpev_aiment);
    
    if(!
is_user_connected(iOwner)) iOwner iTarget;
    
    if(!
is_user_alive(iTarget))
    {
        
remove_user_tickingbomb(iTarget);
        
        if(
jb_is_minigame_active(MINIGAME_INDEX))
        {
            
set_task(3.0"give_tickingbomb"TASK_TICKINGBOMB)
            
cprint_chat(0_"^4~MINIGAMES~ ^3Ticking Bomb, ^1Giving a new ticking bomb to a random person in 3 Seconds, ^4Good luck!")
        }
        return 
FMRES_IGNORED;
    }
    
    
fGTime get_gametime();
    
pev(entpev_fuser4fExpTime)
    
    switch( 
floatround((fExpTime fGTime)) )
    {
        case 
25..999:
        {
            
emit_sound(entCHAN_ITEMbomb_tick_sounds[0], VOL_NORMATTN_NORM0PITCH_NORM);
            
set_pev(entpev_nextthinkfGTime 2.0);
        }
        case 
15..24:
        {
            
emit_sound(entCHAN_ITEMbomb_tick_sounds[1], VOL_NORMATTN_NORM0PITCH_NORM);
            
set_pev(entpev_nextthinkfGTime 1.6);
        }
        case 
10..14:
        {
            
emit_sound(entCHAN_ITEMbomb_tick_sounds[2], VOL_NORMATTN_NORM0PITCH_NORM);
            
set_pev(entpev_nextthinkfGTime 1.2);
        }
        case 
4..9:
        {
            
emit_sound(entCHAN_ITEMbomb_tick_sounds[3], VOL_NORMATTN_NORM0PITCH_NORM);
            
set_pev(entpev_nextthinkfGTime 0.8);
        }
        case 
0..3:
        {
            
emit_sound(entCHAN_ITEMbomb_tick_sounds[4], VOL_NORMATTN_NORM0PITCH_NORM);
            
set_pev(entpev_nextthinkfGTime 0.4);
        }
        default:
        {
            new 
Float:fOrigin[3];
            
pev(entpev_originfOrigin);
            
            
message_begin(MSG_ALLSVC_TEMPENTITY)
            
write_byte(TE_EXPLOSION)
            
engfunc(EngFunc_WriteCoordfOrigin[0])
            
engfunc(EngFunc_WriteCoordfOrigin[1])
            
engfunc(EngFunc_WriteCoordfOrigin[2])
            
write_short(sprites_eexplo)
            
write_byte(10)
            
write_byte(10)
            
write_byte(0)
            
message_end()
            
            
remove_user_tickingbomb(iTarget)
            
            new 
frags get_user_frags(iOwner);
            
ExecuteHamB(Ham_KillediTargetiOwner0);
            
set_user_frags(iOwnerfrags 1);
            
            for(new 
iplayerALLIES_Ni++)
            {
                
player ALLIES[i];
                if(
player == iTarget)
                {
                    
ALLIES_N --;
                    
ALLIES[i] = ALLIES[ALLIES_N];
                    break;
                }
            }
            
            for(new 
iplayerENEMIES_Ni++)
            {
                
player ENEMIES[i];
                if(
player == iTarget)
                {
                    
ENEMIES_N --;
                    
ENEMIES[i] = ENEMIES[ENEMIES_N];
                    break;
                }
            }
            
            if(!
jb_is_minigame_active(MINIGAME_INDEX)) return FMRES_IGNORED;
            
            
set_task(3.0"give_tickingbomb"TASK_TICKINGBOMB)
            
cprint_chat(0_"^4~MINIGAMES~ ^3Ticking Bomb, ^1Giving a new ticking bomb to a random person in 3 Seconds, ^4Good luck!")
        }
    }
    return 
FMRES_IGNORED;
}

remove_user_tickingbomb(const index)
{
    new 
ent;
    if(!(
ent user_has_tickingbomb[index])) return 0;
    
    
engfunc(EngFunc_RemoveEntityent);
    
user_has_tickingbomb[index] = 0;
    return 
1;
}

public 
client_disconnect(id)
{
    
remove_user_tickingbomb(id)
}

set_user_tickingbomb(const index)
{
    if(
user_has_tickingbomb[index] > 0) return 0;
    
    new 
ent engfunc(EngFunc_CreateNamedEntityengfunc(EngFunc_AllocString"info_target"));
    if(!
ent) return 0;
    
    
user_has_tickingbomb[index] = ent;
    
    new 
Float:fgametime get_gametime();
    
    
set_pev(entpev_classnametickingbomb_classname);
    
engfunc(EngFunc_SetModelenttickingbomb_model);
    
set_pev(entpev_solidSOLID_NOT);
    
set_pev(entpev_movetypeMOVETYPE_FOLLOW);
    
set_pev(entpev_aimentindex);
    
set_pev(entpev_ownerindex);
    
set_pev(entpev_fuser4, (fgametime floatclamp(get_pcvar_float(g_pcvar_two), 5.030.0)));
    
set_pev(entpev_nextthinkfgametime 0.5);

    
    if(
get_pcvar_num(g_pcvar_one) > 0)
    {
        
set_pev(entpev_renderfxkRenderFxGlowShell);
        
set_pev(entpev_rendercolorFloat:{255.0,0.0,0.0});
        
set_pev(entpev_renderamt255.0);
    }
    
    return 
ent;


Last edited by wicho; 03-18-2018 at 21:25.
wicho is offline
wicho
Veteran Member
Join Date: Feb 2012
Location: GuateAmala
Old 03-19-2018 , 11:08   Re: JB game | Suicide bomber
Reply With Quote #9

BUMP, someone?
wicho is offline
Reply



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 13:07.


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