Raised This Month: $ Target: $400
 0% 

End round .tga


Post New Thread Reply   
 
Thread Tools Display Modes
Jacob
Senior Member
Join Date: Oct 2010
Old 11-03-2010 , 22:13   Re: End round .tga
Reply With Quote #71

Quote:
Originally Posted by krededk99 View Post
Where did you get this from? Because i diddnt write that
i wrote the sentence "which plugin ... " in the "[Quote]".
tell me where to dowanload that plugin.
Jacob is offline
krededk99
Senior Member
Join Date: Nov 2007
Old 11-04-2010 , 06:31   Re: End round .tga
Reply With Quote #72

It's the plugin in this thread.... that exolent posted. He is still working on it, its not finished yet.
krededk99 is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 11-04-2010 , 18:59   Re: End round .tga
Reply With Quote #73

Quote:
Originally Posted by krededk99 View Post
It's the plugin in this thread.... that exolent posted. He is still working on it, its not finished yet.
I was waiting on someone to post the sprite, but I suppose I can work on the plugin now.

EDIT: Try this. Works for models (might not with weapon models) and sprites (must be angle-oriented, see bottom of post):

PHP Code:
#include < amxmodx >
#include < xs >
#include < engine >
#include < cstrike >
#include < fakemeta >
#include < hamsandwich >

#define DISTANCE_FROM_PLAYER 32.0
#define HEIGHT_OFFSET 0.0

new const g_szWinModelsCsTeams ][ ] =
{
    
"",
    
"models/zombie_plague/zombie_win.mdl",
    
"models/zombie_plague/human_win.mdl",
    
""
};

new 
bool:g_bIsModelCsTeams ];

#define MAX_PLAYERS 32

new g_iEntityMAX_PLAYERS ];
new 
bool:g_bModelMAX_PLAYERS ];

#define HasWinMessage(%1) ( g_iEntity[ %1 ] != 0 )

new g_iMaxPlayers;

public 
plugin_precache( )
{
    
precache_modelg_szWinModelsCS_TEAM_T ]  );
    
precache_modelg_szWinModelsCS_TEAM_CT ] );
    
    
g_bIsModelCS_TEAM_T ]  = ( containg_szWinModelsCS_TEAM_T ],  ".mdl" ) > );
    
g_bIsModelCS_TEAM_CT ] = ( containg_szWinModelsCS_TEAM_CT ], ".mdl" ) > );
}

public 
plugin_init( )
{
    
register_plugin"Win Message on HUD""0.0.1""Exolent" );
    
    
register_event"SendAudio""EventSendAudio_MRAD_terwin""a""2&%!MRAD_terwin" );
    
register_event"SendAudio""EventSendAudio_MRAD_ctwin",  "a""2&%!MRAD_ctwin"  );
    
    
register_event"HLTV""EventNewRound""a""1=0""2=0" );
    
    
RegisterHamHam_Killed"player""FwdPlayerKilledPost");
    
    
g_iMaxPlayers get_maxplayers( );
}

public 
client_disconnectiPlayer )
{
    
RemoveWinMessageiPlayer );
}

public 
EventSendAudio_MRAD_terwin( )
{
    
ShowRoundEndMessageCS_TEAM_T );
}

public 
EventSendAudio_MRAD_ctwin( )
{
    
ShowRoundEndMessageCS_TEAM_CT );
}

public 
EventNewRound( )
{
    for( new 
1<= g_iMaxPlayersi++ )
    {
        
RemoveWinMessage);
    }
}

public 
FwdPlayerKilledPostiVictimiKillerbShouldGib )
{
    
RemoveWinMessageiVictim );
}

public 
client_PreThinkiPlayer )
{
    if( 
HasWinMessageiPlayer ) )
    {
        new 
iEntity g_iEntityiPlayer ];
        
        new 
Float:vecOrigin], Float:vecAngles];
        
entity_get_vectoriPlayerEV_VEC_originvecOrigin );
        
entity_get_vectoriPlayerEV_VEC_view_ofsvecAngles );
        
        
xs_vec_addvecOriginvecAnglesvecOrigin );
        
        
entity_get_vectoriPlayerEV_VEC_v_anglevecAngles );
        
engfuncEngFunc_MakeVectorsvecAngles );
        
get_global_vectorGL_v_forwardvecAngles );
        
        
xs_vec_mul_scalarvecAnglesDISTANCE_FROM_PLAYERvecAngles );
        
vecAngles] += HEIGHT_OFFSET;
        
        
xs_vec_addvecOriginvecAnglesvecAngles );
        
        
entity_set_originiEntityvecAngles );
        
        
xs_vec_subvecAnglesvecOriginvecAngles );
        
xs_vec_normalizevecAnglesvecAngles );
        
vecAngles] *= -1;
        
vecAngles] *= -1;
        if( 
g_bModeliPlayer ] )
        {
            
vecAngles] *= -1;
        }
        
vector_to_anglevecAnglesvecAngles );
        
        
entity_set_vectoriEntityEV_VEC_anglesvecAngles );
    }
}

ShowRoundEndMessageCsTeams:iWinningTeam )
{
    for( new 
1<= g_iMaxPlayersi++ )
    {
        if( 
is_user_alive) )
        {
            
g_iEntity] = ShowWinMessageiWinningTeam );
            
g_bModel] = g_bIsModeliWinningTeam ];
        }
    }
}

ShowWinMessageCsTeams:iWinningTeam )
{
    new 
iEntity create_entity"info_target" );
    
    if( !
is_valid_entiEntity ) )
    {
        return 
0;
    }
    
    
entity_set_modeliEntityg_szWinModelsiWinningTeam ] );
    
entity_set_intiEntityEV_INT_solidSOLID_NOT );
    
entity_set_intiEntityEV_INT_movetypeMOVETYPE_NONE );
    
    return 
iEntity;
}

RemoveWinMessageiPlayer )
{
    if( 
HasWinMessageiPlayer ) )
    {
        
remove_entityg_iEntityiPlayer ] );
        
        
g_iEntityiPlayer ] = 0;
    }

How to make sprite angle-oriented:
Quote:
Sprite: Convert a bitmap to a sprite.
Detail:
1. Make a .bmp file, preferably with width and length that are multiples of 8. Remember, the width * height must not exceed 10752.
1. Make a .bmp file, with whatever dimensions you want! Sprite Explorer gave me warnings with oddly sized sprites but they work just fine.
If the width * height of the sprite exceeds 10752, or if the width or height of the sprite is not a multiple of 8, you may encounter the error below:
Fatal Error GL_Upload16: s&3
To resolve the problem, recreate the sprite and try again. There is no definite solution that I am aware of.
2. You must save the .bmp in Indexed Mode, NOT RGB Mode. RGB will work, but the sprite will have odd colors.
3. Open a sprite creator like Sprite Explorer. Select "File>New Sprite", add your .bmp file(s), and save your sprite. To make an animated sprite just add all the frames during this step.
4. To make the sprite stop rotating, use ORIENTED rather than VP_PARALLEL.
5. To make a sprite with an invisible background, use a solid color background in your bmp and use AlphaTest when creating the sprite.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!

Last edited by Exolent[jNr]; 11-04-2010 at 20:46.
Exolent[jNr] is offline
Jacob
Senior Member
Join Date: Oct 2010
Old 11-04-2010 , 23:56   Re: End round .tga
Reply With Quote #74

Exolent,can you collect your plugins and post them to Sub-Forums : High-Traffic Plugins. please.
Jacob is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 11-05-2010 , 00:07   Re: End round .tga
Reply With Quote #75

Quote:
Originally Posted by Jacob View Post
Exolent,can you collect your plugins and post them to Sub-Forums : High-Traffic Plugins. please.
I don't have a sub-forum in that section, nor do I have permissions to create one.
Also, I doubt I have enough plugins for a sub-forum because my plugin count (approved) is mediocre and the other plugins I have made are just in Suggestions/Requests and specific to the request.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
krededk99
Senior Member
Join Date: Nov 2007
Old 11-06-2010 , 05:12   Re: End round .tga
Reply With Quote #76

I'll test later today!
krededk99 is offline
bibu
Veteran Member
Join Date: Sep 2010
Old 04-26-2011 , 15:16   Re: End round .tga
Reply With Quote #77

bump..
This doesn't work at all Exo.
bibu is offline
cFG
SourceMod Donor
Join Date: Aug 2009
Location: Poland, Łódź
Old 05-15-2011 , 04:07   Re: End round .tga
Reply With Quote #78

Quote:
Originally Posted by bibu View Post
bump..
This doesn't work at all Exo.
__________________
HLXBans - worthy successor of AMXBans
cFG is offline
Shadymn
Senior Member
Join Date: Sep 2010
Old 05-15-2011 , 23:50   Re: End round .tga
Reply With Quote #79

can somebody replace that humans wins zombies wins message it seems easy, in my opinion. Let's just edit that original zp plugin's message ? right?
Shadymn 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 02:00.


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