Raised This Month: $ Target: $400
 0% 

Force Field Grenade to Server Normal


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
leonard19941
Veteran Member
Join Date: Jun 2011
Old 04-11-2012 , 18:52   Force Field Grenade to Server Normal
Reply With Quote #1

[ZP] Extra Item : Force Field Grenade [v2.1] [Update 09-12-11]

Make the bubble is for a normal server ( not using the zombie plague ), and add the following:


Commands:

say /bubble - Buy a bubble grenade (when override is off)


CVARS:

bubble_on <0/1> - Enable/Disable Bubble Nades
bubble_affect <1/2/3> - Which nades should be bubbles (1-HE // 2-FB // 3-SG)
bubble_team <0/1/2/3> - Determines which team can buy/use bubble nades (0-both teams // 1-Terrorists only // 2-CTs only)
bubble_override <0/1> - If enabled, grenades will automatically become bubble without players having to buy them
bubble_price <3000> - Money needed to buy a bubble (when override is off)
__________________

Last edited by leonard19941; 07-03-2012 at 20:23.
leonard19941 is offline
Old 04-27-2012, 12:36
leonard19941
This message has been deleted by leonard19941.
leonard19941
Veteran Member
Join Date: Jun 2011
Old 04-29-2012 , 15:55   Re: Force Field Grenade to Server Normal
Reply With Quote #2

Bump 1.0.
__________________

Last edited by leonard19941; 07-03-2012 at 20:23.
leonard19941 is offline
avril-lavigne
Banned
Join Date: Apr 2009
Old 04-29-2012 , 18:27   Re: Force Field Grenade to Server Normal
Reply With Quote #3

post models and all other crap too
__________________
VDS in Europe 1 gb/s unmetered.Any configurations.
I accept Paypal, Moneybookers,etc
avril-lavigne is offline
leonard19941
Veteran Member
Join Date: Jun 2011
Old 05-04-2012 , 01:06   Re: Force Field Grenade to Server Normal
Reply With Quote #4

Quote:
Originally Posted by avril-lavigne View Post
post models and all other crap too

This is the post origin of this plugin:

Force Field Grenade (Bubble)
__________________
leonard19941 is offline
leonard19941
Veteran Member
Join Date: Jun 2011
Old 05-16-2012 , 16:47   Re: Force Field Grenade to Server Normal
Reply With Quote #5

Please, is very importan for me, please .
__________________

Last edited by leonard19941; 07-03-2012 at 20:24.
leonard19941 is offline
padilha007
Senior Member
Join Date: Jul 2008
Old 05-16-2012 , 17:44   Re: Force Field Grenade to Server Normal
Reply With Quote #6

fast try:

Obs: i'll not update this plugin

PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <engine>
#include <cstrike>
#include <fun>
#include <hamsandwich>
#include <fakemeta_util>

#define ValidTouch(%1) ( is_user_alive(%1) && is_user_connected(%1) )

/*=============================[Plugin Customization]=============================*/

#define CAMPO_TASK
#define RANDOM_COLOR

new const NADE_TYPE_CAMPO 3679

new const p_bubble[] = "models/zr_leohas/bubble/p_bubble.mdl"
new const v_bubble[] = "models/zr_leohas/bubble/v_bubble.mdl"
new const w_bubble[] = "models/zr_leohas/bubble/w_bubble.mdl"
new const bubble_shield[] = "models/zr_leohas/bubble/bubble_shield.mdl"
new const sprite_grenade_trail[] = "sprites/zr_leohas/bubble/laserbeam.spr"
new const bubble[] = "campo_grenade_forze"

new g_iMsgSayText;

new 
cvar_flaregrenadesg_trailSprcvar_push;

new 
bool:g_bomb[33]

const 
item_cost 15
/*=============================[End Customization]=============================*/

public plugin_init()
{
    
register_plugin("Force Field Grenade""v2.1""lucas_7_94"); // Thanks To Users in credits too!
    
    
RegisterHam(Ham_Think"grenade""fw_ThinkGrenade")
    
RegisterHam(Ham_Killed"player""fw_PlayerKilled")
    
    
RegisterHam(Ham_Item_Deploy"weapon_smokegrenade""BubbleDeploy"1)
    
    
cvar_flaregrenades get_cvar_pointer("zp_flare_grenades")
    
    
register_event("HLTV""RoundStart""a""1=0""2=0")
    
    
register_clcmd"say /force""zp_extra_item_selected");
    
    
register_forward(FM_Touch"fw_Touch")
    
register_forward(FM_SetModel"fw_SetModel")
    
    
// Push cvar, (Only float's numbers)
    
cvar_push register_cvar("zp_forze_push""7.5")
    
    
g_iMsgSayText get_user_msgid("SayText");
}

public 
RoundStart()
    
arraysetg_bombfalse33 );

public 
plugin_precache()
{
    
engfunc(EngFunc_PrecacheModelp_bubble)
    
engfunc(EngFunc_PrecacheModelv_bubble)
    
engfunc(EngFunc_PrecacheModelw_bubble)
    
engfunc(EngFunc_PrecacheModelbubble_shield)
    
    
g_trailSpr engfunc(EngFunc_PrecacheModelsprite_grenade_trail)
}

public 
BubbleDeployshield )
{
    if( 
pev_validshield ) != )
        return 
HAM_IGNORED;
    
    new 
id get_pdata_cbaseshield41);
    
    if( 
g_bombid ] ) {
        
set_pevidpev_weaponmodel2p_bubble );
    }
    
    
set_pevidpev_viewmodel2v_bubble );
    
    return 
HAM_IGNORED;
}

public 
client_disconnect(id
    
arraysetg_bombfalse33 );

public 
zp_extra_item_selected(player)
{
    if(
g_bomb[player]) {
        
ChatColor(player"!g[ Bubble ] !yYou already have a force field.")
    }
    else if ( 
cs_get_user_money(player) >= 2000 )
    {
        
arraysetg_bombtrueplayer );
        
        
give_item(player,"weapon_smokegrenade")
        
        
cs_set_user_money(playercs_get_user_money(player) - 2000);
        
        
ChatColor(player"!g[ Bubble ] !yYou Bought a force field!. This, lasts very little!")
    }
}

public 
fw_PlayerKilled(victimattackershouldgibarraysetg_bombfalse33 );

public 
fw_ThinkGrenade(entity)
{
    if(!
pev_valid(entity))
        return 
HAM_IGNORED
    
    
static Float:dmgtime   
    pev
(entitypev_dmgtimedmgtime)
    
    if (
dmgtime get_gametime())
        return 
HAM_IGNORED   
    
    
if(pev(entitypev_flTimeStepSound) == NADE_TYPE_CAMPO)
        
CreateEntity(entity)
    
    return 
HAM_SUPERCEDE
}

public 
fw_SetModel(entity, const model[])
{
    static 
Float:dmgtime
    pev
(entitypev_dmgtimedmgtime)
    
    if (
dmgtime == 0.0)
        return 
FMRES_IGNORED;
    
    if (
equal(model[7], "w_sm"4))
    {        
        new 
owner pev(entitypev_owner)        
        
        if( 
is_user_alive(owner) && g_bomb[owner]) 
        {
            
set_pcvar_num(cvar_flaregrenades,0)            
            
            
fm_set_rendering(entitykRenderFxGlowShell000255255kRenderNormal16)
            
            
message_begin(MSG_BROADCASTSVC_TEMPENTITY)
            
write_byte(TE_BEAMFOLLOW// TE id
            
write_short(entity// entity
            
write_short(g_trailSpr// sprite
            
write_byte(10// life
            
write_byte(10// width
            
write_byte(000// r
            
write_byte(255// g
            
write_byte(255// b
            
write_byte(500// brightness
            
message_end()
            
            
set_pev(entitypev_flTimeStepSoundNADE_TYPE_CAMPO)
            
            
set_task(6.0"DeleteEntityGrenade" ,entity)
            
entity_set_model(entityw_bubble)
            return 
FMRES_SUPERCEDE
        
}
    }
    return 
FMRES_IGNORED
}

public 
DeleteEntityGrenade(entityremove_entity(entity)

public 
CreateEntity(id)
{
    
arraysetg_bombfalseid );
    
    
set_pcvar_num(cvar_flaregrenades,1)
    
    
// Create entity
    
new iEntity create_entity("info_target")
    
    if(!
is_valid_ent(iEntity))
        return 
PLUGIN_HANDLED
    
    
new FloatOrigin[3
    
entity_get_vector(idEV_VEC_originOrigin
    
    
entity_set_string(iEntityEV_SZ_classnamebubble)
    
    
entity_set_vector(iEntityEV_VEC_originOrigin)
    
entity_set_model(iEntitybubble_shield)
    
entity_set_int(iEntityEV_INT_solidSOLID_TRIGGER)
    
entity_set_size(iEntityFloat: {-100.0, -100.0, -100.0}, Float: {100.0100.0100.0})
    
entity_set_int(iEntityEV_INT_renderfxkRenderFxGlowShell)
    
entity_set_int(iEntityEV_INT_rendermodekRenderTransAlpha)
    
entity_set_float(iEntityEV_FL_renderamt50.0)
    
    
#if defined RANDOM_COLOR
    
if(is_valid_ent(iEntity))
    {
        new 
Float:vColor[3]
        
        for(new 
i3i++)
            
vColor[i] = random_float(0.0255.0)
        
        
entity_set_vector(iEntityEV_VEC_rendercolorvColor)
    }
    
#endif
    
    #if defined CAMPO_TASK
    
set_task(15.0"DeleteEntity"iEntity)
    
#endif
    
    
return PLUGIN_CONTINUE;
}

public 
zp_user_infected_post(infectedinfector
    if (
g_bomb[infected]) 
    
arraysetg_bombfalseinfected );

public 
fw_Touch(enttouched)
{
    if ( !
pev_valid(ent) )
        return 
FMRES_IGNORED;
    
    static 
bubbles[32];
    
pev(entpev_classnamebubbles31);
    
    if ( 
equali(bubblesbubble) )
    {    
        if( 
ValidTouch(touched) )
        {
            new 
Float:pos_ptr[3], Float:pos_ptd[3], Float:push_power get_pcvar_float(cvar_push)
            
            
pev(entpev_originpos_ptr)
            
pev(touchedpev_originpos_ptd)
            
            for(new 
03i++)
            {
                
pos_ptd[i] -= pos_ptr[i]
                
pos_ptd[i] *= push_power
            
}
            
set_pev(touchedpev_velocitypos_ptd)
            
set_pev(touchedpev_impulsepos_ptd)
        }
    }
    return 
PLUGIN_HANDLED
}

public 
remove_ent()
    
remove_entity_name(bubble)

public 
DeleteEntityentity )  // Thanks xPaw For The Code =D
    
if( is_valid_ententity ) ) 
    
remove_entityentity );

stock ChatColor(idinput[], any:...)
{
    new 
count 1players[32];
    static 
msg[191];
    
vformat(msg190input3);

    
replace_all(msg190"!y""^1"); // Default Color
    
replace_all(msg190"!g""^4"); // Green Color
    
replace_all(msg190"!team""^3"); // Team Color
    
    
if (idplayers[0] = id; else get_players(playerscount"ch");
    {
        for (new 
0counti++)
        {
            if (
is_user_connected(players[i]))
            {
                
message_begin(MSG_ONE_UNRELIABLEg_iMsgSayText_players[i]);
                
write_byte(players[i]);
                
write_string(msg);
                
message_end();
            }
        }
    }

__________________


Last edited by padilha007; 05-17-2012 at 01:47.
padilha007 is offline
leonard19941
Veteran Member
Join Date: Jun 2011
Old 05-16-2012 , 18:19   Re: Force Field Grenade to Server Normal
Reply With Quote #7

Thanks you padilha, but could add this:

Commands:

say /bubble - Buy a bubble grenade (when override is off)


CVARS:

bubble_on <0/1> - Enable/Disable Bubble Nades
bubble_affect <1/2/3> - Which nades should be bubbles (1-HE // 2-FB // 3-SG)
bubble_team <0/1/2/3> - Determines which team can buy/use bubble nades (0-both teams // 1-Terrorists only // 2-CTs only)
bubble_override <0/1> - If enabled, grenades will automatically become bubble without players having to buy them
bubble_price <3000> - Money needed to buy a bubble (when override is off)
__________________

Last edited by leonard19941; 07-03-2012 at 20:16.
leonard19941 is offline
padilha007
Senior Member
Join Date: Jul 2008
Old 05-17-2012 , 01:46   Re: Force Field Grenade to Server Normal
Reply With Quote #8

Check this:
http://forums.alliedmods.net/forumdisplay.php?f=11

and

http://forums.alliedmods.net/forumdisplay.php?f=83

PHP Code:
Obsi'll not update this plugin 
__________________


Last edited by padilha007; 05-17-2012 at 01:47.
padilha007 is offline
leonard19941
Veteran Member
Join Date: Jun 2011
Old 05-25-2012 , 11:01   Re: Force Field Grenade to Server Normal
Reply With Quote #9

Quote:
Originally Posted by padilha007 View Post
Check this:
http://forums.alliedmods.net/forumdisplay.php?f=11

and

http://forums.alliedmods.net/forumdisplay.php?f=83

PHP Code:
Obsi'll not update this plugin 
If you, but please help me other users, but thank you very much padilha007.
__________________
leonard19941 is offline
leonard19941
Veteran Member
Join Date: Jun 2011
Old 06-24-2012 , 09:30   Re: Force Field Grenade to Server Normal
Reply With Quote #10

Quote:
Originally Posted by leonard19941 View Post
Thanks you padilha, but could add this:

Commands:

say /bubble - Buy a bubble grenade (when override is off)


CVARS:

bubble_on <0/1> - Enable/Disable Bubble Nades
bubble_affect <1/2/3> - Which nades should be bubbles (1-HE // 2-FB // 3-SG)
bubble_team <0/1/2/3> - Determines which team can buy/use bubble nades (0-both teams // 1-Terrorists only // 2-CTs only)
bubble_override <0/1> - If enabled, grenades will automatically become bubble without players having to buy them
bubble_price <3000> - Money needed to buy a bubble (when override is off)
Bump 1.1.
__________________

Last edited by leonard19941; 07-03-2012 at 20:24.
leonard19941 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 22:41.


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