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

Replace FITH sound


Post New Thread Reply   
 
Thread Tools Display Modes
Lolz0r
Veteran Member
Join Date: Nov 2010
Location: Balgaria
Old 01-28-2012 , 11:19   Re: Replace FITH sound
Reply With Quote #21

Thanks, that works good. But can you make it when someone throws a grenade chat displays [explosive], when its flash [flashbang] and when its smoke [smokegren].
Lolz0r is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 01-28-2012 , 12:00   Re: Replace FITH sound
Reply With Quote #22

No, teams colors are already used for player name, use VEN's plugin if you wants something like this.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Lolz0r
Veteran Member
Join Date: Nov 2010
Location: Balgaria
Old 01-28-2012 , 12:15   Re: Replace FITH sound
Reply With Quote #23

Ohh yes really..

Last edited by Lolz0r; 04-01-2012 at 11:25.
Lolz0r is offline
bibu
Veteran Member
Join Date: Sep 2010
Old 01-28-2012 , 17:30   Re: Replace FITH sound
Reply With Quote #24

Connor do I need to check here if this is a valid id (player)?

PHP Code:
public Message_SendAudio(iMsgIdiMsgDestid
__________________
Selling tons of my own private works.
Accepting paid work for clans and communities.
Don't hesitate to contact me.
bibu is offline
Bos93
Veteran Member
Join Date: Jul 2010
Old 11-04-2013 , 09:25   Re: Replace FITH sound
Reply With Quote #25

Quote:
Originally Posted by Arkshine View Post
You can for sure :

Code:
#include <amxmodx> #include <orpheu> public plugin_init() {     OrpheuRegisterHook( OrpheuGetFunction( "Radio", "CBasePlayer" ), "OnRadio" ); } public OnRadio( const player, const audioCode[], const message[], const pitch, const displayIcon ) {     log_amx( "%d - %s - %s - %d - %d", player, audioCode, message, pitch, displayIcon ); }


Orpheu/functions/CBasePlayer/Radio :

Code:
{
    "name"      : "Radio",
    "class"     : "CBasePlayer",
    "library"   : "mod",
    "arguments" :
    [
        {
            "type"  : "char *"
        },
        {
            "type"  : "char *"
        },
        {
            "type"  : "int"
        },
        {
            "type"  : "int"
        }
    ],
    "identifiers":
    [
        {
            "os"    : "windows",
            "mod"   : "cstrike",
            "value" : [0x53,0x55,0x56,0x8B,"*",0x57,0x8B,"*",0xFF,0x90,"*","*","*","*",0x85]
        },
        {
            "os"    : "linux",
            "mod"   : "cstrike",
            "value" : "Radio__11CBasePlayerPCcT1sb"
        }
    ]
}
Arkshine, why the last argument is not short and bool?

Where did you hear about the index of the player? It's edict_t ?

Why do not you add an index player in arguments?

Last edited by Bos93; 11-04-2013 at 09:29.
Bos93 is offline
Send a message via ICQ to Bos93 Send a message via Skype™ to Bos93
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 11-04-2013 , 12:23   Re: Replace FITH sound
Reply With Quote #26

The header for this function is : void CBasePlayer::Radio( const char *msg_id, const char *msg_verbose, short pitch, bool showIcon )

So, the last arguments should be "short" and "bool" ; though I don't think it will change really something if you use "int".

About Player's index, you don't need to specify it as this function is inside a class (CBasePlayer), so the first argument will be always the class object but Orpheu converts that into the player's index, which is more useful from a Pawn plugin.
__________________
Arkshine is offline
Old 11-04-2013, 14:30
Bos93
This message has been deleted by Bos93. Reason: Thanks ;)
Old 11-08-2013, 17:12
Bos93
This message has been deleted by ConnorMcLeod. Reason: post this in module forum please.
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:41.


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