AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Zombie Plague Mod (https://forums.alliedmods.net/forumdisplay.php?f=126)
-   -   [ZP] Addon: Biohazard Icon for ZP 4.3 with New Modes (assassin, snip, armageddon) (https://forums.alliedmods.net/showthread.php?t=126189)

fiendshard 05-06-2010 13:16

[ZP] Addon: Biohazard Icon for ZP 4.3 with New Modes (assassin, snip, armageddon)
 
1 Attachment(s)
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

abdul-rehman 05-06-2010 13:23

Re: [ZP] Addon: Biohazard Icon for ZP 4.3 with New Modes (assassin, snip, armageddon)
 
Cool mann it looks awsome :up:

Can you give me the sniper's awp model PLZZ

fiendshard 05-06-2010 13:30

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

Originally Posted by abdul-rehman (Post 1172728)
Cool mann it looks awsome :up:

Can you give me the sniper's awp model PLZZ

Thanks

Here you go, model from the screenshot: http://www.mediafire.com/?dnmzyyfdmcn

abdul-rehman 05-06-2010 13:32

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

abdul-rehman 05-06-2010 13:48

Re: [ZP] Addon: Biohazard Icon for ZP 4.3 with New Modes (assassin, snip, armageddon)
 
1 Attachment(s)
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();



NiHiLaNTh 05-06-2010 15:39

Re: [ZP] Addon: Biohazard Icon for ZP 4.3 with New Modes (assassin, snip, armageddon)
 
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 ( )
}


abdul-rehman 05-07-2010 03:11

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

Originally Posted by NiHiLaNTh (Post 1172839)
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 :)

abdul-rehman 05-07-2010 03:12

Re: [ZP] Addon: Biohazard Icon for ZP 4.3 with New Modes (assassin, snip, armageddon)
 
NiHilanth can you tell me which studio or program you use to make plugins

NiHiLaNTh 05-07-2010 07:25

Re: [ZP] Addon: Biohazard Icon for ZP 4.3 with New Modes (assassin, snip, armageddon)
 
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

abdul-rehman 05-07-2010 08:47

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

Originally Posted by NiHiLaNTh (Post 1173264)
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..?


All times are GMT -4. The time now is 16:02.

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