Cześć, mam problem bo chcę dodać takie coś jak ktoś pobije rekord mapy to odpala sie dzwięk "wicked sick" który mam zapisany jako wr.mp3
public void FinishMap(int client)
{
float time = CalculateTime(client);
if(time >= 0)
{
char sTime[32];
FormatSeconds(time, sTime, 32);
bool wr_defeat = false;
if(time < gF_WRTime || gF_WRTime == 0.0) // WR?
{
int iCoins = 200;
if(IsClientVip(client))
iCoins*=2;
NShop_GiveClientCoins(client, iCoins);
PrintToChat(client, " \x04┏╋━━━━━━━━━━━━━━━━━━◥◣◆◢◤━━━━━━━━━━━━━━━━━━╋┓");
PrintToChatAll("%s ✔ \x0C%N \x04pobił rekord mapy z czasem \x02%s \x04!!!", PREFIX, client, sTime);
PrintToChat(client, "%s ✔ Dostałeś \x0C%d \x04monet i \x0C10 \x04punktów za pobicie rekordu !!!", PREFIX, iCoins);
PrintToChat(client, " \x04┗╋━━━━━━━━━━━━━━━━━━◥◣◆◢◤━━━━━━━━━━━━━━━━━━╋┛");
DR_GivePoints(client, 10);
UpdateWRCache();
wr_defeat = true;
}