Raised This Month: $ Target: $400
 0% 

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


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Fun Stuff       
lucas_7_94
Leche Loco
Join Date: Mar 2009
Location: Argentina
Old 10-03-2009 , 16:52   [ZP] Extra Item : Thunder Carabine v1.5
Reply With Quote #1

[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!
Attached Files
File Type: zip Thunder carabine.zip (1.98 MB, 4762 views)
File Type: sma Get Plugin or Get Source (Thunder_Carabine.sma - 5756 views - 9.6 KB)
__________________
ATWWMH - MiniDuels
Madness is like gravity, just need a little push.

Last edited by lucas_7_94; 10-05-2009 at 23:07. Reason: Update v1.5 =D
lucas_7_94 is offline
Send a message via Skype™ to lucas_7_94
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 #2

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 #3

@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 #4

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 #5

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 #6

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
Javivi
AlliedModders Donor
Join Date: Dec 2008
Old 10-03-2009 , 17:12   Re: [ZP] Extra Item : Thunder Carabine v1.0
Reply With Quote #7

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!
__________________
Javivi is offline
Raddish
BANNED
Join Date: Jul 2008
Location: Argentina
Old 10-03-2009 , 17:14   Re: [ZP] Extra Item : Thunder Carabine v1.0
Reply With Quote #8

AWESOME PLUGIN; GJ!
Raddish is offline
PsYChOPaTiQuE
Veteran Member
Join Date: Jan 2009
Location: Paris
Old 10-03-2009 , 18:57   Re: [ZP] Extra Item : Thunder Carabine v1.0
Reply With Quote #9

GJ!
lucas, could you give me your the code of your HUD please?
vida:
clase:
ammo packs:

thank you
__________________
PsYChOPaTiQuE is offline
lucas_7_94
Leche Loco
Join Date: Mar 2009
Location: Argentina
Old 10-03-2009 , 19:03   Re: [ZP] Extra Item : Thunder Carabine v1.0
Reply With Quote #10

Quote:
Originally Posted by PsYChOPaTiQuE View Post
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.
__________________
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
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