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

Replace Smoke HUD


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
leonard19941
Veteran Member
Join Date: Jun 2011
Old 05-03-2012 , 20:26   Replace Smoke HUD
Reply With Quote #1

Hello good, data as can ascertain is there any program?

Quote:
<type> <resolution> <spriteFile> <shiftX> <shiftY> <width> <height>
Custom Weapon Hud Sprites + Slot Redirection
__________________
leonard19941 is offline
simple_user
Member
Join Date: Apr 2012
Location: Latvia, the cube
Old 05-03-2012 , 21:29   Re: Replace Smoke HUD
Reply With Quote #2

you made me smile )
simple_user is offline
Send a message via Skype™ to simple_user
leonard19941
Veteran Member
Join Date: Jun 2011
Old 05-03-2012 , 21:34   Re: Replace Smoke HUD
Reply With Quote #3

Quote:
Originally Posted by simple_user View Post
you made me smile )
Do not understand.
__________________
leonard19941 is offline
simple_user
Member
Join Date: Apr 2012
Location: Latvia, the cube
Old 05-03-2012 , 21:57   Re: Replace Smoke HUD
Reply With Quote #4

please, don't use google translator. learn english instead.
simple_user is offline
Send a message via Skype™ to simple_user
leonard19941
Veteran Member
Join Date: Jun 2011
Old 05-03-2012 , 22:03   Re: Replace Smoke HUD
Reply With Quote #5

Quote:
Originally Posted by simple_user View Post
please, don't use google translator. learn english instead.
Sorry for my english, my english is level basic, sorry .
__________________
leonard19941 is offline
simple_user
Member
Join Date: Apr 2012
Location: Latvia, the cube
Old 05-03-2012 , 22:13   Re: Replace Smoke HUD
Reply With Quote #6

Quote:
Originally Posted by leonard19941 View Post
Sorry for my english, my english is level basic, sorry .
try to explain what is the problem. there's no other way around at the moment. I don't know Spanish
simple_user is offline
Send a message via Skype™ to simple_user
simple_user
Member
Join Date: Apr 2012
Location: Latvia, the cube
Old 05-03-2012 , 22:20   Re: Replace Smoke HUD
Reply With Quote #7

or search here > http://forums.alliedmods.net/search.php?f=135
simple_user is offline
Send a message via Skype™ to simple_user
leonard19941
Veteran Member
Join Date: Jun 2011
Old 05-03-2012 , 22:26   Re: Replace Smoke HUD
Reply With Quote #8

I would like to know how to find these data:

Quote:
<type> <resolution> <spriteFile> <shiftX> <shiftY> <width> <height>
Ex.
Quote:
weapon 640 640hud3 0 90 170 45
weapon_s 640 640hud6 0 90 170 45
ammo 640 640hud7 48 96 24 24
__________________

Last edited by leonard19941; 05-03-2012 at 22:29.
leonard19941 is offline
Old 05-03-2012, 22:51
simple_user
This message has been deleted by simple_user. Reason: nvm
leonard19941
Veteran Member
Join Date: Jun 2011
Old 05-03-2012 , 23:12   Re: Replace Smoke HUD
Reply With Quote #9

no men, that was an example of god

PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <fakemeta>
#include <hamsandwich>

#define VERSION "1.1"

new g_iMsgWeaponList;

public 
plugin_init()
{
    
register_plugin("Replace Smoke HUD"VERSION"Kiske");
    
    
RegisterHam(Ham_Item_AddToPlayer"weapon_smokegrenade""fw_Smoke_AddToPlayer"1);
    
RegisterHam(Ham_Item_ItemSlot"weapon_smokegrenade""fw_Smoke_ItemSlot");

    
register_clcmd("weapon_bubble""SelectBubble");
    
    
g_iMsgWeaponList get_user_msgid("WeaponList");
}

public 
plugin_precache()
{
    new 
sFile[25];
    
formatex(sFilecharsmax(sFile), "sprites/weapon_bubble.txt");
    
    if(!
file_exists(sFile)) // create file
    
{
        new 
iFile fopen(sFile"wt");
        
        
fputs(iFile"3^n");
        
fputs(iFile"weapon 640 640hud19 0 0 170 45^n");
        
fputs(iFile"weapon_s 640 640hud20 0 0 170 45");
        
fputs(iFile"ammo 640 640hud19 192 112 49 16");
        
        
fclose(iFile);
    }
    
    
precache_generic(sFile);
    
precache_generic("sprites/640hud19.spr");
    
precache_generic("sprites/640hud20.spr");
}

public 
fw_Smoke_AddToPlayer(itemid)
{
    if(
pev_valid(item) && is_user_alive(id))
    {
        
message_begin(MSG_ONEg_iMsgWeaponList, .player id);
        {  
            
write_string("weapon_bubble"); // WeaponName
            
write_byte(13); // PrimaryAmmoID
            
write_byte(1); // PrimaryAmmoMaxAmount
            
write_byte(-1); // SecondaryAmmoID
            
write_byte(-1); // SecondaryAmmoMaxAmount
            
write_byte(3); // SlotID (0...N)
            
write_byte(3); // NumberInSlot (1...N)
            
write_byte(CSW_SMOKEGRENADE);  // WeaponID
            
write_byte(0);  // Flags
        
}
        
message_end();
    }
}

public 
fw_Smoke_ItemSlot(id)
{
    if(
is_user_alive(id))
    {
        
SetHamReturnInteger(4);
        return 
HAM_SUPERCEDE;
    }
    
    return 
HAM_IGNORED;
}

public 
SelectBubble(id)
{
    if(
is_user_alive(id))
    {
        
engclient_cmd(id"weapon_smokegrenade");
    }
    
    return 
PLUGIN_HANDLED;


I know this data sprite:

640hud33.spr

Attached Thumbnails
Click image for larger version

Name:	sprites2.JPG
Views:	537
Size:	48.3 KB
ID:	103112  
__________________

Last edited by leonard19941; 05-03-2012 at 23:14.
leonard19941 is offline
Old 05-03-2012, 23:19
simple_user
This message has been deleted by Exolent[jNr]. Reason: Keep it to the topic.
Old 05-04-2012, 08:29
leonard19941
This message has been deleted by Exolent[jNr]. Reason: Keep it to the topic.
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 17:20.


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