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

Convert Plugin [Pawn]


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
bLacK-bLooD
AlliedModders Donor
Join Date: Jun 2008
Old 06-19-2013 , 02:54   Convert Plugin [Pawn]
Reply With Quote #1

Hi. Is there any possibility that this plugin can be converted from zombie plague to normal mod?

I have already tried to convert it for several days but i wasn't able to do it. I would be grateful if someone could do this, or answer to my first question.

PHP Code:
#include < amxmodx >
#include < dhudmessage >
#include < zombieplague >

#define PLUGIN_NAME "[ZP] DHUD Informer"
#define PLUGIN_VERSION "0.0.0.1"
#define PLUGIN_AUTHOR "Andrei"

enum _eTeamData
{
    
WIN_NO_ONE 0,
    
WIN_ZOMBIES,
    
WIN_HUMANS    

}; new g_iWineTeamData ];

public 
plugin_init() 
{
        
register_plugin
    

        
PLUGIN_NAME
        
PLUGIN_VERSION
        
PLUGIN_AUTHOR
    
);

    
register_dictionary"zp_score.txt" );
    
register_messageget_user_msgid"TextMsg" ), "Message_TextMsg" );
}

public 
Message_TextMsg( ) 
{
    static 
szMessages32 ];
    
get_msg_arg_string2szMessagescharsmaxszMessages ) );
    
    if( 
equalszMessages"#Game_will_restart_in" ) )
    {
        
g_iWinWIN_HUMANS ] = 0;
        
g_iWinWIN_ZOMBIES ] = 0;
        
g_iWinWIN_NO_ONE ] = 0;
    } 
}

public 
zp_round_started( )
{
    
set_task1.0"Ctask__Update",,, .flags "b" );
}  

public 
zp_round_endediWinTeam )
{
    switch( 
iWinTeam )
    {
        case 
WIN_HUMANSg_iWinWIN_HUMANS ]++;
        case 
WIN_ZOMBIESg_iWinWIN_ZOMBIES ]++;
        default: 
g_iWinWIN_NO_ONE ]++;
    }

    
remove_task();
}  


public 
Ctask__Update( )
{
    
set_dhudmessage( .red 0, .green 255, .blue 0, .= -1.0, .0.02, .effects 0, .fxtime 6.0, .holdtime 2.0, .fadeintime 1.0, .fadeouttime 1.0, .reliable false ); 
    
show_dhudmessage0"%L                        "LANG_PLAYER"SCORE_HUMANS"zp_get_human_count() );
    
set_dhudmessage( .red 100, .green 100, .blue 100, .= -1.0, .0.02, .effects 0, .fxtime 6.0, .holdtime 2.0, .fadeintime 1.0, .fadeouttime 1.0, .reliable false ); 
    
show_dhudmessage0"%L^n%L"LANG_PLAYER"SCORE_ROUND", ( g_iWinWIN_HUMANS ] +  g_iWinWIN_ZOMBIES ] + g_iWinWIN_NO_ONE ] ), LANG_PLAYER,  "SCORE_WINS"g_iWinWIN_HUMANS ],  g_iWinWIN_ZOMBIES ] );
    
set_dhudmessage( .red 255, .green 0, .blue 0, .= -1.0, .0.02, .effects 0, .fxtime 6.0, .holdtime 2.0, .fadeintime 1.0, .fadeouttime 1.0, .reliable false ); 
    
show_dhudmessage0"                         %L"LANG_PLAYER"SCORE_ZOMBIES"zp_get_zombie_count() );

Thank you.
__________________
We all live under the same sky but we have different horizons.
bLacK-bLooD is offline
Blizzard_87
Veteran Member
Join Date: Oct 2012
Old 06-19-2013 , 03:53   Re: Convert Plugin [Pawn]
Reply With Quote #2

you just want a DHUD message at round end showing the team scores and the current winner ?
__________________
Blizzard_87 is offline
bLacK-bLooD
AlliedModders Donor
Join Date: Jun 2008
Old 06-19-2013 , 03:57   Re: Convert Plugin [Pawn]
Reply With Quote #3

Not really. The zombie plugin above has a permanent DHUD showing the team scores and the current winner.

Here is the original plugin : https://forums.alliedmods.net/showthread.php?p=1972602

You can see the picture in the thread, it's permanent DHUD, this is what i am looking for
__________________
We all live under the same sky but we have different horizons.
bLacK-bLooD is offline
Blizzard_87
Veteran Member
Join Date: Oct 2012
Old 06-19-2013 , 04:05   Re: Convert Plugin [Pawn]
Reply With Quote #4

Quote:
Originally Posted by bLacK-bLooD View Post
Not really. The zombie plugin above has a permanent DHUD showing the team scores and the current winner.

Here is the original plugin : https://forums.alliedmods.net/showthread.php?p=1972602

You can see the picture in the thread, it's permanent DHUD, this is what i am looking for
and just change to CS team names?

EDIT:

ok i ported the ZP DHUD Informer.

hope this is what you wanted.
Attached Files
File Type: sma Get Plugin or Get Source (cs_score.sma - 248 views - 2.5 KB)
__________________

Last edited by Blizzard_87; 06-19-2013 at 06:17.
Blizzard_87 is offline
Kia
AlliedModders Donor
Join Date: Apr 2010
Location: In a world of madness
Old 06-19-2013 , 08:26   Re: Convert Plugin [Pawn]
Reply With Quote #5

Why not this?
__________________
Kia is offline
bLacK-bLooD
AlliedModders Donor
Join Date: Jun 2008
Old 06-19-2013 , 08:30   Re: Convert Plugin [Pawn]
Reply With Quote #6

Quote:
Originally Posted by Kia View Post
Why not this?
Because this one is colored

Quote:
Originally Posted by Blizzard_87 View Post
and just change to CS team names?

EDIT:

ok i ported the ZP DHUD Informer.

hope this is what you wanted.
Yes, this is what i wanted, thank you very much.
__________________
We all live under the same sky but we have different horizons.
bLacK-bLooD is offline
Kia
AlliedModders Donor
Join Date: Apr 2010
Location: In a world of madness
Old 06-19-2013 , 09:34   Re: Convert Plugin [Pawn]
Reply With Quote #7

Quote:
Originally Posted by bLacK-bLooD View Post
Because this one is colored

[sarcasm]Yeah, and it's impossible to change the color.[/sarcasm]
__________________
Kia is offline
Blizzard_87
Veteran Member
Join Date: Oct 2012
Old 06-19-2013 , 15:55   Re: Convert Plugin [Pawn]
Reply With Quote #8

Quote:
Originally Posted by Kia View Post
[sarcasm]Yeah, and it's impossible to change the color.[/sarcasm]
This one uses 3 dhud messages.
__________________
Blizzard_87 is offline
.Dare Devil.
Veteran Member
Join Date: Sep 2010
Old 06-19-2013 , 18:01   Re: Convert Plugin [Pawn]
Reply With Quote #9

Quote:
Originally Posted by Blizzard_87 View Post
and just change to CS team names?

EDIT:

ok i ported the ZP DHUD Informer.

hope this is what you wanted.
The beautiful download icon is the reason why i want to download it...
.Dare Devil. is offline
Blizzard_87
Veteran Member
Join Date: Oct 2012
Old 06-20-2013 , 01:39   Re: Convert Plugin [Pawn]
Reply With Quote #10

Quote:
Originally Posted by .Dare Devil. View Post
The beautiful download icon is the reason why i want to download it...
Lol.
__________________
Blizzard_87 is offline
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 19:34.


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