Raised This Month: $ Target: $400
 0% 

Subplugin Submission [ZP] Extra Item : Thunder Carabine v1.5


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Asd'
Senior Member
Join Date: Jun 2009
Location: Argentina
Old 10-03-2009 , 17:05   Re: [ZP] Extra Item : Thunder Carabine v1.0
Reply With Quote #1

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;

__________________
Asd' is offline
Send a message via MSN to Asd'
meTaLiCroSS
Gaze Upon My Hat
Join Date: Feb 2009
Location: Viņa del Mar, Chile
Old 10-03-2009 , 17:10   Re: [ZP] Extra Item : Thunder Carabine v1.0
Reply With Quote #2

@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
__________________
Quote:
Originally Posted by joropito View Post
You're right Metalicross

Last edited by meTaLiCroSS; 10-03-2009 at 17:13.
meTaLiCroSS is offline
lucas_7_94
Leche Loco
Join Date: Mar 2009
Location: Argentina
Old 10-03-2009 , 17:16   Re: [ZP] Extra Item : Thunder Carabine v1.0
Reply With Quote #3

Quote:
Originally Posted by Asd' View Post
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 View Post
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!.
__________________
ATWWMH - MiniDuels
Madness is like gravity, just need a little push.
lucas_7_94 is offline
Send a message via Skype™ to lucas_7_94
meTaLiCroSS
Gaze Upon My Hat
Join Date: Feb 2009
Location: Viņa del Mar, Chile
Old 10-03-2009 , 17:56   Re: [ZP] Extra Item : Thunder Carabine v1.0
Reply With Quote #4

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
__________________
Quote:
Originally Posted by joropito View Post
You're right Metalicross
meTaLiCroSS is offline
lucas_7_94
Leche Loco
Join Date: Mar 2009
Location: Argentina
Old 10-03-2009 , 18:13   Re: [ZP] Extra Item : Thunder Carabine v1.0
Reply With Quote #5

Quote:
Originally Posted by meTaLiCroSS View Post
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 View Post
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 View Post
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 View Post
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!

Last edited by lucas_7_94; 10-03-2009 at 18:27.
lucas_7_94 is offline
Send a message via Skype™ to lucas_7_94
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 16:27.


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