Post: PlaySound C#
08-17-2014, 12:47 PM #1
(adsbygoogle = window.adsbygoogle || []).push({});
    
public static void PlaySound(int client, String Sound)
{
int SoundIndex = RPC.CallFunc(0x001BEBDC, Sound);
RPC.SV_GameSendServerCommand(client, "n " + SoundIndex);
}


Some Sounds that work

ui_mp_nukebomb_timer
mp_level_up
plr_new_rank
mp_card_slide
mp_bonus_end
mp_bonus_start
mp_capture_flag
mp_challenge_complete
mp_defcon_down
mp_ingame_summary
mp_enemy_obj_taken
mp_enemy_obj_captured
mouse_over
mp_killstreak_ac130
mp_killstreak_airdrop
mp_killstreak_carepackage
mp_killstreak_choppergunner
mp_killstreak_counteruav
mp_killstreak_emp
mp_killstreak_harrier
mp_killstreak_heli
mp_killstreak_hellfire
mp_killstreak_jet
mp_killstreak_nuclearstrike
mp_killstreak_pavelow
mp_killstreak_radar
mp_killstreak_sentrygun
mp_killstreak_stealthbomber


I haven't been able to get this working for sprx yet :fa:

Credits
Seb Offsets
(adsbygoogle = window.adsbygoogle || []).push({});

The following 5 users say thank you to OLDSCHOOLMODZHD for this useful post:

-JM-, ImAzazel, marioju, Mx444,
08-17-2014, 02:09 PM #2
GMTPS3
Do a barrel roll!
Already Postet Smile
08-17-2014, 03:10 PM #3
-JM-
Space Ninja
Originally posted by OLDSCHOOLMODZHD View Post
    
public static void PlaySound(int client, String Sound)
{
int SoundIndex = RPC.CallFunc(0x001BEBDC, Sound);
RPC.SV_GameSendServerCommand(client, "n " + SoundIndex);
}


Some Sounds that work

ui_mp_nukebomb_timer
mp_level_up
plr_new_rank
mp_card_slide
mp_bonus_end
mp_bonus_start
mp_capture_flag
mp_challenge_complete
mp_defcon_down
mp_ingame_summary
mp_enemy_obj_taken
mp_enemy_obj_captured
mouse_over
mp_killstreak_ac130
mp_killstreak_airdrop
mp_killstreak_carepackage
mp_killstreak_choppergunner
mp_killstreak_counteruav
mp_killstreak_emp
mp_killstreak_harrier
mp_killstreak_heli
mp_killstreak_hellfire
mp_killstreak_jet
mp_killstreak_nuclearstrike
mp_killstreak_pavelow
mp_killstreak_radar
mp_killstreak_sentrygun
mp_killstreak_stealthbomber


I haven't been able to get this working for sprx yet :fa:

Credits
Seb Offsets


kinda old

The following user thanked -JM- for this useful post:

GMTPS3
08-17-2014, 11:38 PM #4
Goodjob man! But is it : 0x001BEBDC or 0x1BEBDC ??

GMTPS3:

public static int G_SoundAliasIndex(int Client, string Sound)
{//0x1BEBDC - G_SoundAliasIndex(const char *name)
return RPC.Call(0x1BEBDC, Sound);
}
08-17-2014, 11:46 PM #5
GMTPS3
Do a barrel roll!
Originally posted by mrdarkblue View Post
Goodjob man! But is it : 0x001BEBDC or 0x1BEBDC ??

GMTPS3:

public static int G_SoundAliasIndex(int Client, string Sound)
{//0x1BEBDC - G_SoundAliasIndex(const char *name)
return RPC.Call(0x1BEBDC, Sound);
}


0x000000F and 0xF is the same
0 after the 0x can be removed Smile

The following 2 users say thank you to GMTPS3 for this useful post:

mrdarkblue, OLDSCHOOLMODZHD
08-17-2014, 11:49 PM #6
Originally posted by GMTPS3 View Post
0x000000F and 0xF is the same
0 after the 0x can be removed Smile


Aha i see thx bud.

The following user thanked mrdarkblue for this useful post:

GMTPS3
08-17-2014, 11:53 PM #7
Originally posted by GMTPS3 View Post
Already Postet Smile


Really? I couldn't find it :fa:

Originally posted by JM
kinda old


I know I just didn't feel like keeping it to my self :p

The following user thanked OLDSCHOOLMODZHD for this useful post:

A Friend
08-26-2014, 08:32 PM #8
c++ way for sprx Smile

opd_s GSAI = {0x001BEBDC, TOC};
int(*G_SoundAliasIndex)(const char* sound) = (int(*)(const char*))&GSAI;
opd_s Com_sprintf_t = { 0x00298874, TOC };
int(*Com_sprintf)(char *dest, int size, const char *fmt, ...) = (int(*)(char* , int, char const *, ...))&Com_sprintf_t;
void PlaySound(int client, const char* sound)
{
int SoundID = G_SoundAliasIndex(sound);
char SoundIndex[100];
Com_sprintf(SoundIndex, 100, "n %i", SoundID);
SV_GameSendServerCommand(client, SoundIndex);
}

Credit to xFatalCoder :P

The following user thanked MrRedDotCity for this useful post:

JackMods-

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo