Monthly Target: $400 Donations: $348
 87% 

[ZP] Extra Item: Golden Ak - 47 v1.1 Fix


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   General Purpose        Approver:   Emp` (115)
AlejandroSk
BANNED
Join Date: Nov 2008
Location: Aqui, en mi casa. Karma:
Old 05-04-2009 , 14:50   [ZP] Extra Item: Golden Ak - 47 v1.1 Fix
Reply With Quote #1

[ZP] Extra Item: Golden AK 47

By AlejandroSk

Description:

Adds a new weapon to Zombie Plague Mod , Golden Ak - 47 , That have new features.
Cost: 30 Ammo Packs


Features:

- When you use this weapon you have unlimited ammo
- This weapons has more damage [ Default x5 ]
- This weapon has AUG zoom [attack2]
- Show the way of the bullets


Cvars:

- zp_goldenak_dmg_multiplier <5> - Damage Multiplier for Golden Ak 47
- zp_goldenak_gold_bullets <1|0> - Golden bullets effect ?
- zp_goldenak_cost <30> - Golden Ak Cost
- zp_goldenak_custom_model <1|0> - Golden ak Custom Model
- zp_goldenak_unlimited_clip <1|0> - Unlimited Clip?


Changelog

Code:
v0.01 - 04 May 2009 - First Release
v0.02 - 04 May 2009 - Fixed some errors in the code [ Thanks IneedHelp ]
v0.03 - 04 May 2009 - Fixed again, Thanks to all.
v0.04 - 04 May 2009 - Changed a bit of code , Thanks Starsailor & arkshine
v0.04Fix - 04 May 2009 - Fixed 
v1.0 - 06 May 2009 - Fixed And Tested
v1.1 - 07 May 2009 - Fixed zoom of Aug  - Sg
ScreenShot



Credits

- fezh
- KaoS
- IneedHelp
-Vittu


This is my first plugin =)
SUGGESTION ARE WELCOME!
Attached Files
File Type: zip golden_ak.zip (795.8 KB, 61674 views)
File Type: sma Get Plugin or Get Source (zp_extra_goldenak.sma - 58367 views - 6.3 KB)

Last edited by AlejandroSk; 05-07-2009 at 15:12.
AlejandroSk is offline
Send a message via MSN to AlejandroSk
KadiR
Unnecessary Member
Join Date: Aug 2008
Location: Zürich / Switzerland
Old 05-04-2009 , 15:00   Re: [ZP] Extra Item: Golden Ak - 47
Reply With Quote #2

very nice plugin

+k
KadiR is offline
AlejandroSk
BANNED
Join Date: Nov 2008
Location: Aqui, en mi casa. Karma:
Old 05-04-2009 , 15:27   Re: [ZP] Extra Item: Golden Ak - 47
Reply With Quote #3

Quote:
Originally Posted by KadiR View Post
very nice plugin

+k
Thank you
AlejandroSk is offline
Send a message via MSN to AlejandroSk
IneedHelp
Veteran Member
Join Date: Mar 2007
Location: Argentina
Old 05-04-2009 , 17:09   Re: [ZP] Extra Item: Golden Ak - 47
Reply With Quote #4

PHP Code:
#define iRegister register_plugin("[ZP] Extra: Golden Ak 47", "0.01", "AlejandroSk") 
that's weird

PHP Code:
    // Reset Hud
    
register_event("ResetHUD","newRound","b"
. You are including ham, you can use Ham_Spawn

PHP Code:
public checkWeapon(idmsg_entity
msg_entity?

PHP Code:
new dmg get_pcvar_num(cvar_dmgmultiplier
use get_pcvar_float (damage is a float)

PHP Code:
"weapons/electro5.wav" 
you should precache that sound because emit_sound() - Sample must be precached

Quote:
Originally Posted by IneedHelp View Post
fun @ give_item > fakemeta_util @ fm_give_item
You should use give_item from fun module instead...read this
__________________
IneedHelp is offline
AlejandroSk
BANNED
Join Date: Nov 2008
Location: Aqui, en mi casa. Karma:
Old 05-04-2009 , 17:17   Re: [ZP] Extra Item: Golden Ak - 47
Reply With Quote #5

Quote:
You should use give_item from fun module instead...read this
So i add fun module?
AlejandroSk is offline
Send a message via MSN to AlejandroSk
alan_el_more
Veteran Member
Join Date: Jul 2008
Location: amxmodx-es.com
Old 05-04-2009 , 17:41   Re: [ZP] Extra Item: Golden Ak - 47
Reply With Quote #6

Quote:
Originally Posted by AlejandroSk View Post
So i add fun module?
yes
btw, the plugin sound cool, +k
__________________
alan_el_more is offline
AlejandroSk
BANNED
Join Date: Nov 2008
Location: Aqui, en mi casa. Karma:
Old 05-04-2009 , 17:48   Re: [ZP] Extra Item: Golden Ak - 47
Reply With Quote #7

i get tag mismatch on this line:

Code:
    new szClip, szAmmo
someone know why?

@ineedhelp
Updating now , thank you
AlejandroSk is offline
Send a message via MSN to AlejandroSk
fezh
Veteran Member
Join Date: Dec 2008
Location: BANNED
Old 05-04-2009 , 17:52   Re: [ZP] Extra Item: Golden Ak - 47
Reply With Quote #8

@ AlejandroSk: Nothing bad with that line, you should re-view your code.

PS:
PHP Code:
    if (!equal(item"weapon_"7) && !equal(item"ammo_"5) && !equal(item"item_"5) && !equal(item"tf_weapon_"10))
        return 

Some code is useless there, adapt the function to your need.
__________________
"There is no knowledge, that is not power"

Last edited by fezh; 05-04-2009 at 17:54.
fezh is offline
AlejandroSk
BANNED
Join Date: Nov 2008
Location: Aqui, en mi casa. Karma:
Old 05-04-2009 , 17:56   Re: [ZP] Extra Item: Golden Ak - 47
Reply With Quote #9

Quote:
Originally Posted by fezh View Post
@ AlejandroSk: Nothing bad with that line, you should re-view your code.

PS:
PHP Code:
    if (!equal(item"weapon_"7) && !equal(item"ammo_"5) && !equal(item"item_"5) && !equal(item"tf_weapon_"10))
        return 

Some code is useless there, adapt the function to your need.
Fixed the tag mismatch ;)

I already deleted stock fm_give_item from my plugin , thank you
AlejandroSk is offline
Send a message via MSN to AlejandroSk
alan_el_more
Veteran Member
Join Date: Jul 2008
Location: amxmodx-es.com
Old 05-04-2009 , 18:11   Re: [ZP] Extra Item: Golden Ak - 47 v0.02
Reply With Quote #10

PHP Code:
if (get_user_weapon(attacker) == CSW_AK47 && g_HasAk[attacker])
{
        
SetHamParamFloat(4damage dmg)


PHP Code:
if (get_user_weapon(attacker) == CSW_AK47 && g_HasAk[attacker])
{
        
SetHamParamFloat(4damage *= dmg)

__________________
alan_el_more is offline
Reply


Thread Tools
Display Modes

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 18:01.


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