Raised This Month: $ Target: $400
 0% 

[ZP] Addon: Biohazard Icon for ZP 4.3 with New Modes (assassin, snip, armageddon)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
fiendshard
Senior Member
Join Date: Dec 2009
Location: In Water
Old 05-06-2010 , 13:16   [ZP] Addon: Biohazard Icon for ZP 4.3 with New Modes (assassin, snip, armageddon)
Reply With Quote #1

Same as This one but with added different icons for new modes (olds are the same).

Screens:

Assassin:

[IMG]http://img707.**************/img707/3269/assicon.jpg[/IMG]

Sniper:

[img]http://img693.**************/img693/845/snipicon.jpg[/img]

Armageddon:

[img]http://img532.**************/img532/6946/armaicon.jpg[/img]

Credits goes to Zombie-Lurker for original one, I just merely added icons for missing modes
Attached Files
File Type: sma Get Plugin or Get Source (zp_biohazardiconnwm.sma - 4670 views - 2.6 KB)
__________________
fiendshard is offline
abdul-rehman
Veteran Member
Join Date: Jan 2010
Location: Khi, Pakistan
Old 05-06-2010 , 13:23   Re: [ZP] Addon: Biohazard Icon for ZP 4.3 with New Modes (assassin, snip, armageddon)
Reply With Quote #2

Cool mann it looks awsome

Can you give me the sniper's awp model PLZZ
__________________

My Plugins For ZP

Inactive due to College and Studies
abdul-rehman is offline
Send a message via Yahoo to abdul-rehman Send a message via Skype™ to abdul-rehman
fiendshard
Senior Member
Join Date: Dec 2009
Location: In Water
Old 05-06-2010 , 13:30   Re: [ZP] Addon: Biohazard Icon for ZP 4.3 with New Modes (assassin, snip, armageddon)
Reply With Quote #3

Quote:
Originally Posted by abdul-rehman View Post
Cool mann it looks awsome

Can you give me the sniper's awp model PLZZ
Thanks

Here you go, model from the screenshot: http://www.mediafire.com/?dnmzyyfdmcn
__________________
fiendshard is offline
abdul-rehman
Veteran Member
Join Date: Jan 2010
Location: Khi, Pakistan
Old 05-06-2010 , 13:32   Re: [ZP] Addon: Biohazard Icon for ZP 4.3 with New Modes (assassin, snip, armageddon)
Reply With Quote #4

Thnx
__________________

My Plugins For ZP

Inactive due to College and Studies
abdul-rehman is offline
Send a message via Yahoo to abdul-rehman Send a message via Skype™ to abdul-rehman
abdul-rehman
Veteran Member
Join Date: Jan 2010
Location: Khi, Pakistan
Old 05-06-2010 , 13:48   Re: [ZP] Addon: Biohazard Icon for ZP 4.3 with New Modes (assassin, snip, armageddon)
Reply With Quote #5

Here i optimized the plugin [Removed FakeMeta]:
PHP Code:
#include <amxmodx>
#include <zombieplaguenew1.3>
 
new iconstatus
 
public plugin_init()
{
 
register_plugin"[ZP] Biohazard Icon for New Modes""1.0" "Zombie Lurker + @bdul! + fiendshard" )
 
register_event("HLTV""event_round_start""a""1=0""2=0")
 
 
iconstatus get_user_msgid("StatusIcon")
}
 
public 
event_round_start()
{
 static 
id
 
for (id 1id <= get_maxplayers(); id++)
 {
  
set_task(0.1"display_the_icon"id__"b")
 }
}
 
public 
display_the_icon(id)
{
 if (
is_user_connected(id))
 {
  if (
zp_is_nemesis_round())
   
set_user_icon(id 255 0)
  else if (
zp_is_survivor_round())
   
set_user_icon(id 255)
  else if (
zp_is_swarm_round())
   
set_user_icon(id 255 255 0)
  else if (
zp_is_plague_round()) 
   
set_user_icon(id 255 0)
  else if (
zp_is_assassin_round()) 
   
set_user_icon(id 225 225)
  else if (
zp_is_sniper_round()) 
   
set_user_icon(id 255 127 0)
  else if (
zp_is_lnj_round()) 
   
set_user_icon(id 30 230 230)
  else if (
zp_has_round_started()) 
   
set_user_icon(id 255 0)
 
 }
}
 
stock set_user_icon(id mode red green blue)
{
 
message_begin(MSG_ONE,iconstatus,{0,0,0},id);
 
write_byte(mode);
 
write_string("dmg_bio");
 
write_byte(red);
 
write_byte(green);
 
write_byte(blue);
 
message_end();

Attached Files
File Type: sma Get Plugin or Get Source (zp_biohazard_icon_new_modes.sma - 1597 views - 1.3 KB)
__________________

My Plugins For ZP

Inactive due to College and Studies
abdul-rehman is offline
Send a message via Yahoo to abdul-rehman Send a message via Skype™ to abdul-rehman
NiHiLaNTh
Way Past Expiration
Join Date: May 2009
Location: Latvia
Old 05-06-2010 , 15:39   Re: [ZP] Addon: Biohazard Icon for ZP 4.3 with New Modes (assassin, snip, armageddon)
Reply With Quote #6

And here is mine version...
Code:
#include < amxmodx >
#include < zombieplaguenew1.3 >

new g_iCurrentGameMode, gmsgStatusIcon, g_MaxPlayers

public plugin_init ( )
{
    register_plugin ( "[ZP] BioHazard Icon", "1.0", "NiHiLaNTh" )
    register_event ( "HLTV", "EV_RoundStart", "a", "1=0", "2=0" )
    gmsgStatusIcon = get_user_msgid ( "StatusIcon" )
    g_MaxPlayers = get_maxplayers ( )
}

public zp_round_started ( GameMode, Player )
{
    g_iCurrentGameMode = GameMode
}

public EV_RoundStart ( )
{
    for ( new i =1; i < g_MaxPlayers; i++ )
    {
        set_task ( 0.1, "show_icon", i, _,_, "b" )
    }
}

public show_icon ( Player )
 {
    if ( !is_user_connected ( Player ) )
        return 
    
    if ( g_iCurrentGameMode == ( MODE_INFECTION | MODE_MULTI ) )
        return
    
    new iRed, iGreen, iBlue
    
    switch ( g_iCurrentGameMode )
    {
        case MODE_NEMESIS:
        {
            iRed = 255
            iGreen = 0
            iBlue = 0
        }
        case MODE_SURVIVOR:
        {
            iRed = 0
            iGreen = 0
            iBlue = 255
        }
        case MODE_SWARM:
        {
            iRed = 255
            iGreen  = 255
            iBlue = 0
        }
        case MODE_PLAGUE:
        {
            iRed = 255
            iGreen = 0
            iBlue = 0
        }
        case MODE_ASSASSIN:
        {
            iRed = 255
            iGreen = 5
            iBlue = 225
        }
        case MODE_SNIPER:
        {
            iRed = 255
            iGreen = 127
            iBlue = 0
        }
        case MODE_LNJ:
        {
            iRed = 30
            iGreen = 230
            iBlue = 230
        }
    }
    
    ShowIcon ( Player, iRed, iGreen, iBlue)
}

public ShowIcon ( Player, iRed, iGreen, iBlue)
{
    message_begin ( MSG_ONE, gmsgStatusIcon, _, Player )
    write_byte ( 1 )
    write_string ( "dmg_bio" )
    write_byte ( iRed )
    write_byte ( iGreen )
    write_byte ( iBlue )
    message_end ( )
}
__________________

NiHiLaNTh is offline
Send a message via Skype™ to NiHiLaNTh
abdul-rehman
Veteran Member
Join Date: Jan 2010
Location: Khi, Pakistan
Old 05-07-2010 , 03:11   Re: [ZP] Addon: Biohazard Icon for ZP 4.3 with New Modes (assassin, snip, armageddon)
Reply With Quote #7

Quote:
Originally Posted by NiHiLaNTh View Post
And here is mine version...
Code:
#include < amxmodx >
#include < zombieplaguenew1.3 >
 
new g_iCurrentGameMode, gmsgStatusIcon, g_MaxPlayers
 
public plugin_init ( )
{
    register_plugin ( "[ZP] BioHazard Icon", "1.0", "NiHiLaNTh" )
    register_event ( "HLTV", "EV_RoundStart", "a", "1=0", "2=0" )
    gmsgStatusIcon = get_user_msgid ( "StatusIcon" )
    g_MaxPlayers = get_maxplayers ( )
}
 
public zp_round_started ( GameMode, Player )
{
    g_iCurrentGameMode = GameMode
}
 
public EV_RoundStart ( )
{
    for ( new i =1; i < g_MaxPlayers; i++ )
    {
        set_task ( 0.1, "show_icon", i, _,_, "b" )
    }
}
 
public show_icon ( Player )
 {
    if ( !is_user_connected ( Player ) )
        return 
 
    if ( g_iCurrentGameMode == ( MODE_INFECTION | MODE_MULTI ) )
        return
 
    new iRed, iGreen, iBlue
 
    switch ( g_iCurrentGameMode )
    {
        case MODE_NEMESIS:
        {
            iRed = 255
            iGreen = 0
            iBlue = 0
        }
        case MODE_SURVIVOR:
        {
            iRed = 0
            iGreen = 0
            iBlue = 255
        }
        case MODE_SWARM:
        {
            iRed = 255
            iGreen  = 255
            iBlue = 0
        }
        case MODE_PLAGUE:
        {
            iRed = 255
            iGreen = 0
            iBlue = 0
        }
        case MODE_ASSASSIN:
        {
            iRed = 255
            iGreen = 5
            iBlue = 225
        }
        case MODE_SNIPER:
        {
            iRed = 255
            iGreen = 127
            iBlue = 0
        }
        case MODE_LNJ:
        {
            iRed = 30
            iGreen = 230
            iBlue = 230
        }
    }
 
    ShowIcon ( Player, iRed, iGreen, iBlue)
}
 
public ShowIcon ( Player, iRed, iGreen, iBlue)
{
    message_begin ( MSG_ONE, gmsgStatusIcon, _, Player )
    write_byte ( 1 )
    write_string ( "dmg_bio" )
    write_byte ( iRed )
    write_byte ( iGreen )
    write_byte ( iBlue )
    message_end ( )
}
I know that you are better in scripting then me
__________________

My Plugins For ZP

Inactive due to College and Studies
abdul-rehman is offline
Send a message via Yahoo to abdul-rehman Send a message via Skype™ to abdul-rehman
abdul-rehman
Veteran Member
Join Date: Jan 2010
Location: Khi, Pakistan
Old 05-07-2010 , 03:12   Re: [ZP] Addon: Biohazard Icon for ZP 4.3 with New Modes (assassin, snip, armageddon)
Reply With Quote #8

NiHilanth can you tell me which studio or program you use to make plugins
__________________

My Plugins For ZP

Inactive due to College and Studies
abdul-rehman is offline
Send a message via Yahoo to abdul-rehman Send a message via Skype™ to abdul-rehman
NiHiLaNTh
Way Past Expiration
Join Date: May 2009
Location: Latvia
Old 05-07-2010 , 07:25   Re: [ZP] Addon: Biohazard Icon for ZP 4.3 with New Modes (assassin, snip, armageddon)
Reply With Quote #9

abdul, I didnt said that I'm better than you.Just I know some things that you maybe dont know, but there are things that you know/understand and I not(Like those ArrayG[s]etCell / String etc.)
And I'm using AMXX Studio
__________________

NiHiLaNTh is offline
Send a message via Skype™ to NiHiLaNTh
abdul-rehman
Veteran Member
Join Date: Jan 2010
Location: Khi, Pakistan
Old 05-07-2010 , 08:47   Re: [ZP] Addon: Biohazard Icon for ZP 4.3 with New Modes (assassin, snip, armageddon)
Reply With Quote #10

Quote:
Originally Posted by NiHiLaNTh View Post
abdul, I didnt said that I'm better than you.Just I know some things that you maybe dont know, but there are things that you know/understand and I not(Like those ArrayG[s]etCell / String etc.)
And I'm using AMXX Studio
1- your scripting style rocks
2- If you use amxx studio then can you tell me how do you get this effect
for example if i make a plugin it looks like this:
if (is_user_alive(id) && zp_get_user_zombie(id))

But if u make a plugin then its very neat and it looks like this:
if ( is_user_alive( id ) && zp_get_user_zombie( id ) )

See the difference..?
__________________

My Plugins For ZP

Inactive due to College and Studies
abdul-rehman is offline
Send a message via Yahoo to abdul-rehman Send a message via Skype™ to abdul-rehman
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:02.


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