Raised This Month: $ Target: $400
 0% 

Change hud Sprites...


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
One
Veteran Member
Join Date: Oct 2008
Location: Hardstyle-eSports.de
Old 03-02-2009 , 04:12   Re: Change hud Sprites...
Reply With Quote #7

Hm... Ty all for answers....u know i cant understand why its not possible cuz the players has only download the sprites...can anyone say me more details for this?this is anything like models...player have just to download the models & this will all be replaced on the server.i dont think that this is a hack or ...

here the code that i tried. ( not testet cuz im @ School )
PHP Code:
#include <amxmodx>
#include <amxmisc>

#define PLUGIN_NAME "hud spr test"
#define PLUGIN_VERSION "1"
#define PLUGIN_AUTHOR "one"

#define hud_SPRITE "sprites/640hud72134.spr"

new g_ct_blue_spr;
new 
g_t_red_spr;
new 
g_plugin_mode;
new 
g_cvarvalue;

public 
plugin_init()
{
    
register_pluginPLUGIN_NAMEPLUGIN_VERSIONPLUGIN_AUTHOR );
    
register_event"DeathMsg""remove_spr""a" );
    
register_logevent"logevent_round_start"2"1=Round_Start" );
    
g_plugin_mode register_cvar"teamspr_mode""1" );

}
public 
plugin_precache()
{
    
g_ct_blue_spr precache_modelhud_SPRITE );

}
public 
logevent_round_start()
{
    
g_cvarvalue get_pcvar_numg_plugin_mode );
    new 
players32 ], numi;
    
get_playersplayersnum );
    for( 
0numi++ ) 
    {
        if( !
is_user_aliveplayers] ) )
            continue;
        
        switch( 
g_cvarvalue )
        {
            case 
0: return PLUGIN_HANDLED;
            case 
1Removeplayers] );
            case 
2:
            {
                
message_beginMSG_ALLSVC_TEMPENTITY );
                
write_byteTE_PLAYERATTACHMENT );
                
write_byteplayers] );
                
write_coord45 );
                
write_short( ( get_user_teamplayers] ) == ) ? g_t_red_spr g_ct_blue_spr ); 
                
message_end();
            }
        }
    }
    return 
PLUGIN_CONTINUE;
}
public 
CreateSpriteid )
{
    
g_cvarvalue get_pcvar_numg_plugin_mode );
    if( 
g_cvarvalue == )
    {
        
client_printidprint_chat"%L"id"CANNOT_CREATE" );
        
client_cmdid"speak buttons/blip1.wav" );
        
Removeid );
        return 
PLUGIN_HANDLED;
    }
    else if( 
g_cvarvalue != )
    {
        
client_printidprint_chat"%L"id"ALLREADY_HAVE" );
        
client_cmdid"speak buttons/blip1.wav" );
        return 
PLUGIN_HANDLED;
    }
    
message_beginMSG_ALLSVC_TEMPENTITY );
    
write_byteTE_PLAYERATTACHMENT );
    
write_byteid );
    
write_coord45 );
    
write_short( ( get_user_teamid ) == ) ? g_t_red_spr g_ct_blue_spr ); 
    
message_end();
    
    
client_printidprint_chat"%L"id"SUCCESSFULLY_CREATED" );
    
client_cmdid"speak fvox/activated.wav" );
    return 
PLUGIN_CONTINUE;
}
public 
RemoveSpriteid )
{
    
g_cvarvalue get_pcvar_numg_plugin_mode );
    if( 
g_cvarvalue == )
    {
        
client_printidprint_chat"%L"id"CANNOT_CREATE" );
        
client_cmdid"speak buttons/blip1.wav" );
        return 
PLUGIN_HANDLED;
    }
    else if( 
g_cvarvalue != )
    {
        
client_printidprint_chat"%L"id"MUST_STAY_UP" );
        
client_cmdid"speak buttons/blip1.wav" );
        return 
PLUGIN_HANDLED;
    }    
    
Removeid );
    
client_printidprint_chat"%L"id"SUCCESSFULLY_DELETED" );
    
client_cmdid"speak fvox/deactivated.wav" );
    return 
PLUGIN_CONTINUE;
}
public 
remove_spr()
{
    
Removeread_data) );
    return 
PLUGIN_CONTINUE;
}
Removeindex )
{
    
message_beginMSG_ALLSVC_TEMPENTITY );
    
write_byteTE_KILLPLAYERATTACHMENTS );
    
write_byteindex );
    }
/* Plugin generated by AMXX-Studio */ 
sprite + hud pic attached.



if u wanna try this just rename the sprite file to 640hud7.spr & copy in sprites folder. its only 1 sprite file

Please give me more info...i found no doc for this
Attached Files
File Type: rar 640hud72134.rar (6.9 KB, 212 views)
__________________
One is offline
Send a message via ICQ to One Send a message via AIM to One Send a message via MSN to One Send a message via Yahoo to One Send a message via Skype™ to One
 



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:53.


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