function OnCommand(ID: Byte; Text: string): boolean;
begin
if GetPiece(Text, ' ', 0) = '/plays' then begin
PlaySound(ID, 'takebow.wav', GetPlayerStat(ID, 'X'), GetPlayerStat(ID, 'Y'));
end;
Result := false;
end;
it works on my server
I also tested with Szaman if you can use your own downloaded sounds - you can
but the question is, can we make it play for every player in server?
function OnPlayerCommand(ID: Byte; Text: string): boolean;
begin
if GetPiece(Text, ' ', 0) = '/plays' then begin
PlaySound(0, 'aura.wav', GetPlayerStat(ID, 'X'), GetPlayerStat(ID, 'Y'));
end;
Result := false;
end;
only default sounds work for everyone or they have to download it and put it in sfx folder
it's going to be a huge plus for scripted/modded servers
Huuuge thank you to: Szaman&kicikici