Raised This Month: $12 Target: $400
 3% 

[ZP] Extra Item : Dual Navy


  
 
 
Thread Tools Display Modes
Author Message
Javivi
AlliedModders Donor
Join Date: Dec 2008
Old 11-21-2009 , 07:55   [ZP] Extra Item : Dual Navy
#1

Descripcion

Coges dos mp5, que hacen x2 de daño (se cambia por cvar, zp_dualnavy_mult XX.0).


Lo hice porque estaba aburrido y porque el otro extraitem que hay como este esta muy mal echo xD. Ademas le añadi el w model, disfrutenlo.


Changelog
1.0 - Reescrito completamente


Creditos
metalicross por la chainsaw (de ahí saque el damage x2).



Saludos
Attached Files
File Type: zip models.zip (680.5 KB, 604 views)
File Type: sma Get Plugin or Get Source (zp_dualnavy.sma - 1103 views - 3.3 KB)
__________________

Last edited by Javivi; 12-26-2009 at 14:06.
Javivi is offline
lucas_7_94
Leche Loco
Join Date: Mar 2009
Location: Argentina
Old 11-21-2009 , 08:03   Re: [ES][ZP] Extra Item : Dual Navy
#2

Por Empezar , buena idea.

Mejora esto :

PHP Code:
public PlayerKilled(id)

 
// If he have a dual navy, he lose it
 
if(g_HasDualNavy[id])
  
g_HasDualNavy[id] = false

Por:

PHP Code:
public PlayerKilled(victimattackershouldgib)

 
// If he have a dual navy, he lose it
 
if(g_HasDualNavy[attacker])
  
g_HasDualNavy[attacker] = false

__________________
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
alan_el_more
Veteran Member
Join Date: Jul 2008
Location: amxmodx-es.com
Old 11-21-2009 , 08:06   Re: [ES][ZP] Extra Item : Dual Navy
#3

Quote:
Originally Posted by Javivi View Post
Creditos
metalicross por la chainsaw (de hay saque el damage x2).
WTF?
hay -> ahí
__________________
alan_el_more is offline
Javivi
AlliedModders Donor
Join Date: Dec 2008
Old 11-21-2009 , 08:31   Re: [ES][ZP] Extra Item : Dual Navy
#4

Quote:
Originally Posted by lucas_7_94 View Post
Por Empezar , buena idea.

Mejora esto :

PHP Code:
public PlayerKilled(id)

 
// If he have a dual navy, he lose it
 
if(g_HasDualNavy[id])
  
g_HasDualNavy[id] = false

Por:

PHP Code:
public PlayerKilled(victimattackershouldgib)

 
// If he have a dual navy, he lose it
 
if(g_HasDualNavy[attacker])
  
g_HasDualNavy[attacker] = false

Porque ?

Así funciona bien creo o.o


Quote:
Originally Posted by alan_el_more View Post
WTF?
hay -> ahí
(K)
__________________
Javivi is offline
alan_el_more
Veteran Member
Join Date: Jul 2008
Location: amxmodx-es.com
Old 11-21-2009 , 08:38   Re: [ES][ZP] Extra Item : Dual Navy
#5

en todo caso seria asi
PHP Code:
public PlayerKilled(victimattackershouldgib)

    
// If he have a dual navy, he lose it
    
if(g_HasDualNavy[victim])
       
g_HasDualNavy[victim] = false

__________________
alan_el_more is offline
Javivi
AlliedModders Donor
Join Date: Dec 2008
Old 11-21-2009 , 09:57   Re: [ES][ZP] Extra Item : Dual Navy
#6

Tal y como esta ahora funciona bien (lo he probado ahora mismo haciendome un slay y reviviendome)
__________________
Javivi is offline
eXacT
Veteran Member
Join Date: Apr 2009
Location: Buenos Aires
Old 11-21-2009 , 09:58   Re: [ES][ZP] Extra Item : Dual Navy
#7

yo tmb tenia la idea de hacerla de nuevo por la misma razon por qe estaba mal echa, pero al final no me qedo bien y we, fezh me ayudo un poco, pero se nos cago
__________________

"There is no knowledge, that is not power"
eXacT is offline
Send a message via MSN to eXacT Send a message via Skype™ to eXacT
fezh
Veteran Member
Join Date: Dec 2008
Location: BANNED
Old 11-21-2009 , 10:09   Re: [ES][ZP] Extra Item : Dual Navy
#8

Podrías probar optimizar el plugin cacheando las CVars y usando bitsums en lugar de arrays.

PD: También podés cambiar esto:

PHP Code:
    if(victim == attacker || !attacker)
        return 
HAM_IGNORED
    
    
// Attacker is not a Player
    
if(!is_user_connected(attacker))
        return 
HAM_IGNORED 
PHP Code:
    new g_iMaxPlayers;

    
g_iMaxPlayers get_maxplayers();

    if (
victim == attacker || !attacker || !(<= attacker <= g_iMaxPlayers))
        return 
HAM_IGNORED
Y yo usaría Ham_Item_Deploy para todo lo que es models de armas.
__________________
"There is no knowledge, that is not power"

Last edited by fezh; 11-21-2009 at 10:12.
fezh is offline
Javivi
AlliedModders Donor
Join Date: Dec 2008
Old 11-21-2009 , 10:43   Re: [ES][ZP] Extra Item : Dual Navy
#9

Ok fezh, luego añado tu sugerencia.


1º No se que es eso de cachear las cvars ni para que sirve

2º Respecto a lo de los bitsums, no se como mierda creo uno xD
pero el que quiero utilizar es bitsum_HasDualNavy, ya lo tengo reemplazado en los ifs y demas, pero me dice que undefined simbol.


Y lo de ham_item_deploy, luego lo miro a ver, pero segun lo que lei mejor uso curweapon..

Gracias
__________________

Last edited by Javivi; 11-21-2009 at 11:24.
Javivi is offline
Alucard^
AMXX Moderator: Others
Join Date: Sep 2007
Location: Street
Old 11-21-2009 , 20:32   Re: [ES][ZP] Extra Item : Dual Navy
#10

Lo ideal si, seria asi como posteo alan_el_more. Pero al usar id tambien esta bien, ya que no importa si se llama victim, pepito, id o lo que sea, siempre y cuando se siga el orden, el nombre no importa, asi como las variables.

Sin embargo, seria mejor que lo pongas como te mostro alan_el_more, para mejor entendimiento del codigo de parte del lector.
__________________
Approved Plugins - Steam Profile

Public non-terminated projects:
All Admins Menu, HLTV parameters, Subnick,
Second Password (cool style), InfoZone,
Binary C4 plant/defuse, and more...

Private projects:
NoSpec (+menu), NV Surf Management,
PM Adanved System, KZ longjump2, and more...
Alucard^ is offline
Send a message via Skype™ to Alucard^
 


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 22:19.


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