Here is my code:
Thank you for your attention.
public player_hurt(Handle:event, const String:name, bool:silent)
static U, A;
U = GetEventInt(event, "attacker");
E = GetEventInt(event, "victim");
B = GetClientOfUserId(E);
A = GetClientOfUserId(U);
if(A && A != GetClientOfUserId(GetEventInt(event, "userid")) && g_IsHitEnabled[A])
new random = GetRandomInt(1,2);
EmitSoundToClient(A, CSGO ? "play *shades/zmhit.mp3" : "play shades/zmhit.mp3");
EmitSoundToClient(A, CSGO ? "play *shades/zmhit2.mp3" : "play shades/zmhit2.mp3");
As u can see we got attackers userid and emitted a song but i ve added victims userid so i wanna emit sound to attacker but sound origin should be victim. My question is how can i do that?
Just tell me the logic Please. If you wanna try you can post your code i can compile and try it in few minutes. Thank you again.