AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Zombie Plague Mod (https://forums.alliedmods.net/forumdisplay.php?f=126)
-   -   Subplugin Submission [ZP] Extra Item : Thunder Carabine v1.5 (https://forums.alliedmods.net/showthread.php?t=105342)

lucas_7_94 10-03-2009 16:52

[ZP] Extra Item : Thunder Carabine v1.5
 
2 Attachment(s)
[ZP] Extra Item : Thunder Carabine
For Humans.

Version v1.5

Description:
When you purchase this item, you will get a m4a1 carbine with a skin Surprising and damage increased.
When you kill a Zombie / Nemesis, a thunder will fall over the victim and he will be wiped out =D

Cvars:

Code:


zp_thunder = Turn on/off the effect of thunder
zp_thunder_damage = Application of Damage, Default "2.0"
zp_thunder_says = enable / disable says for kill.
zp_thunder_sounds = enable / disable sounds of annihilation
zp_thunder_logs = enable / disable logs ,
zp_thunder_buy_started = Prevention of buying at the start of round

ScreenShot:

http://img200.**************/img200/5...0316180293.png




Bugs or errors:
  • 1 After the round, If you go back to Select the M4A1, the plugin is bug and eliminate the ray continues to fall, if you can help me ,send me a PM
Acknowledgments:

Alan_el_more
Asd'
meTaLiCroSS
anakin_cstrike

Changelogs :
Code:

v1.0 = Creation of the plugin
v1.5 = Added new cvars to enable / disable. There is still a bug fix [Arranged for the vercion 2.0 =)]

Any suggestions or bugs please post


Now only one thing left to say!
Enjoy!

Asd' 10-03-2009 17:05

Re: [ZP] Extra Item : Thunder Carabine v1.0
 
PHP Code:

public fw_TakeDamage(victiminflictorattackerFloat:damagedamage_type)
{
    if (
g_HasThunderCarabine[attacker])    
    {
        new 
weapon get_user_weapon(attacker)
        
        switch (
weapon)
        {
            case 
CSW_M4A1damage *= 2.0
        
}
        
SetHamParamFloat(4damage)
    } 
    
    return 
HAM_IGNORED;


-------->

PHP Code:

public fw_TakeDamage(victiminflictorattackerFloat:damagedamage_type)
{
    if (
g_HasThunderCarabine[attacker])    
    {
        if (
get_user_weapon(attacker) == CSW_M4A1)
        {
            
SetHamParamFloat(4damage 2.0)
        }
    } 
    return 
HAM_IGNORED;



meTaLiCroSS 10-03-2009 17:10

Re: [ZP] Extra Item : Thunder Carabine v1.0
 
@Asd'

PHP Code:

public fw_TakeDamage(victiminflictorattackerFloat:damagedamage_type)
{
    if (
g_HasThunderCarabine[attacker])    
    {
        if (
get_user_weapon(attacker) == CSW_M4A1)
        {
            
SetHamParamFloat(4damage 2.0)
        }
    } 
    return 
HAM_IGNORED;


--->

PHP Code:

public fw_TakeDamage(victiminflictorattackerFloat:damagedamage_type)
{
    if (!
is_user_connected(attacker))
        return 
HAM_IGNORED

    
if (g_HasThunderCarabine[attacker])    
    {
        if (
get_user_weapon(attacker) == CSW_M4A1)
        {
            
SetHamParamFloat(4damage 2.0)
        }
    } 
    return 
HAM_IGNORED;


EDIT: internet sucks

Javivi 10-03-2009 17:12

Re: [ZP] Extra Item : Thunder Carabine v1.0
 
I think you should change the description for this:

Description:
When you purchase this item, you will get a m4a1 carbine with a new skin and increased damage.


When you kill a Zombie / Nemesis, a thunder will fall over the victim and he will be wiped out =D


And Acknowledgments: for Credits:
=================================

GOOD JOB LUCAS!

Raddish 10-03-2009 17:14

Re: [ZP] Extra Item : Thunder Carabine v1.0
 
AWESOME PLUGIN; GJ!

lucas_7_94 10-03-2009 17:16

Re: [ZP] Extra Item : Thunder Carabine v1.0
 
Quote:

Originally Posted by Asd' (Post 951398)
PHP Code:

public fw_TakeDamage(victiminflictorattackerFloat:damagedamage_type)
{
    if (
g_HasThunderCarabine[attacker])    
    {
        new 
weapon get_user_weapon(attacker)
 
        switch (
weapon)
        {
            case 
CSW_M4A1damage *= 2.0
        
}
        
SetHamParamFloat(4damage)
    } 
 
    return 
HAM_IGNORED;


-------->

PHP Code:

public fw_TakeDamage(victiminflictorattackerFloat:damagedamage_type)
{
    if (
g_HasThunderCarabine[attacker])    
    {
        if (
get_user_weapon(attacker) == CSW_M4A1)
        {
            
SetHamParamFloat(4damage 2.0)
        }
    } 
    return 
HAM_IGNORED;



Quote:

Originally Posted by Javivi (Post 951398)
I think you should change the description for this:

Description:
When you purchase this item, you will get a m4a1 carbine with a new skin and increased damage.


When you kill a Zombie / Nemesis, a thunder will fall over the victim and he will be wiped out =D


And Acknowledgments: for Credits:
=================================

Thanks You

Done!.

meTaLiCroSS 10-03-2009 17:56

Re: [ZP] Extra Item : Thunder Carabine v1.0
 
PHP Code:

Color(player"^04[Zombie Plague]^x01 You've got the Thunder Carabine"

Why "[Zombie Plague]" ? Must be "[ZP]"

PHP Code:

strip_user_weapons(player

Why you Strips all the weapons?

---

Use Ham_Killed

---

PHP Code:

    static killer,victimkname[32]
    
killer read_data(1);
    
victim read_data(2);
    
get_user_name(killer,kname,31); 

Why you get the Attacker name?

---

Credits to anakin_cstrike, because, the thunder effect is from Anakin

lucas_7_94 10-03-2009 18:13

Re: [ZP] Extra Item : Thunder Carabine v1.0
 
Quote:

Originally Posted by meTaLiCroSS (Post 951461)
PHP Code:

Color(player"^04[Zombie Plague]^x01 You've got the Thunder Carabine"

Why "[Zombie Plague]" ? Must be "[ZP]"

because don't Like The Tag "[ZP"] D:.

Quote:

Originally Posted by meTaLiCroSS (Post 951461)
PHP Code:

strip_user_weapons(player

Why you Strips all the weapons?

because the player would achieve 2 primary and 1 secondary weapon.

Quote:

Originally Posted by meTaLiCroSS (Post 951461)
PHP Code:

    static killer,victimkname[32]
    
killer read_data(1);
    
victim read_data(2);
    
get_user_name(killer,kname,31); 

Why you get the Attacker name?

Because I had thought to put a hud

Quote:

Originally Posted by meTaLiCroSS (Post 951461)
Credits to anakin_cstrike, because, the thunder effect is from Anakin

Oh yes, I forgot eh, is that many people helped me and I forgot the key person

And .... Done!

PsYChOPaTiQuE 10-03-2009 18:57

Re: [ZP] Extra Item : Thunder Carabine v1.0
 
GJ!
lucas, could you give me your the code of your HUD please?
vida:
clase:
ammo packs:

thank you

lucas_7_94 10-03-2009 19:03

Re: [ZP] Extra Item : Thunder Carabine v1.0
 
Quote:

Originally Posted by PsYChOPaTiQuE (Post 951542)
GJ!
lucas, could you give me your the code of your HUD please?
vida:
clase:
ammo packs:

thank you

Oh Sure.

I send you by pm.


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

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