AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Zombie Plague Mod (https://forums.alliedmods.net/forumdisplay.php?f=126)
-   -   Subplugin Submission [ZP] Extra : M60 Machine Gun (https://forums.alliedmods.net/showthread.php?t=158384)

Fr0Zeen 06-04-2011 01:31

[ZP] Extra : M60 Machine Gun
 
2 Attachment(s)
[ZP] Extra : M60 Machine Gun
v1.0

Description :
M60 machine gun are a revolution of m249 machine gun that use 5.56 bullets. it different with m249 it has 135 damage per shot. revolution weapon get zombie die faster.

Features :

** Have its own model
** have 135 damage per shot
** Fix The Bug of grenades

Credits :

** MetaliCross - For his sawnoff shotgun damage code
** MerCyleZZ - For his zombie plague includes
** jc980 - For his Skull CSO model

Any bugs or errors just reply


Have FuN !!!


Dolph_Ziggler 06-04-2011 08:13

Re: [ZP] Extra : M60 Machine Gun
 
nice plugin :)

GuTo 06-04-2011 10:55

Re: [ZP] Extra : M60 Machine Gun
 
niceee

Razziiel 06-04-2011 11:52

Re: [ZP] Extra : M60 Machine Gun
 
REALLY BAD CODE

here u got it fixed

PHP Code:

#include <amxmodx>
#include <fakemeta>
#include <fun>
#include <hamsandwich>
#include <zombieplague>

// Defines

#define PLUGIN "[ZP] M60 Para Machinegun"
#define VERSION "1.0"
#define AUTHOR "Fr0zeen"

// Item ID

new cvar_damage

new g_m60[33] , g_hasm60[33]
new 
g_itemid


new const g_item_name[] = "Machine M60" // Item Name
new const g_item_cost 430 // Item Cost
new const g_item_team ZP_TEAM_HUMAN // Item Team

new const M60_M249[] = "models/zombie_plague/v_m60_adc.mdl" // Edit Section 

#define is_valid_player(%1) (1 <= %1 <= 32) // Check player

public plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR)

    
g_itemid zp_register_extra_item(g_item_nameg_item_costg_item_team//

    
cvar_damage register_cvar("zp_m60_damage""85"
        
    
register_event("CurWeapon""Event_CurWeapon""be""1=1");
    
RegisterHam(Ham_TakeDamage"player""Fw_PlayerDamaged"1)
}

public 
plugin_precache()
    {
    
precache_model(M60_M249// Precache M249 Model
    
}
    
public 
zp_extra_item_selected(playeritemid)
{
    if (
itemid == g_itemid)
    {
        if (!
g_hasm60[player])
        {
            
// Strip first users weapon to give Awp
            
strip_user_weapons(player)

            
// Set the Player to m60
            
g_m60[player] = true
            g_hasm60
[player] = true

            
// Give Weapon m249
            
give_item(player"weapon_m249")
            
client_print(playerprint_chat"[ZP] You have Buy m60, have fun")
            return 
PLUGIN_HANDLED;
        }
    }
    return 
PLUGIN_HANDLED;
    
}

public 
Fw_PlayerDamaged(idinflictorattackerdamagedamagebits

    if ( 
is_valid_player(attacker) && get_user_weapon(attacker) == CSW_M249 && g_hasm60[attacker] ) 
    
SetHamParamFloat(4damage *= get_pcvar_float(cvar_damage))
}

public 
Event_CurWeapon(id)
{
    if (
get_user_weapon(id) == CSW_M249 && g_hasm60[id])
    
set_pev(idpev_viewmodel2M60_M249)


"nice plugin"
"niceee"

wtf?:nono:

Dolph_Ziggler 06-04-2011 15:50

Re: [ZP] Extra : M60 Machine Gun
 
:lol: item coast 430 ??? xD

Fr0Zeen 06-04-2011 21:00

Re: [ZP] Extra : M60 Machine Gun
 
im sure i write it cost 25 .... Hmmmm

Excalibur.007 06-13-2011 02:08

Re: [ZP] Extra : M60 Machine Gun
 
Damn. This sub-forum is full of similar stuff. We need more unique stuff.

tei1995 06-13-2011 02:46

Re: [ZP] Extra : M60 Machine Gun
 
damn!

.Dare Devil. 06-13-2011 15:29

Re: [ZP] Extra : M60 Machine Gun
 
this plugin is like some plugins code rip xD

olari9 08-25-2011 08:59

Re: [ZP] Extra : M60 Machine Gun
 
Quote:

Originally Posted by .Dare Devil. (Post 1487506)
this plugin is like some plugins code rip xD

Lolz, you are telling them that they are ripping but, what do you do then? M16 is 100% your made huh? I quess that it is pretty much golden ak.


All times are GMT -4. The time now is 16:20.

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