Detaljan opis problema: znaci napravia san komandu u sali za vjencanja amo rec jer je mappano za to i sad kad pustim pjesmu radi sve cuje se na toj poziciji u krugu 60 sve extra samo kad ja pustim pjesmu samo ja cujem svi moraju za sebe pustat kako cu stavit da svi cuju a ne samo ja na toj poziciji
Dio skripte:
if(strcmp(cmd, "/pjesma1", true) == 0)
{
if (PlayerInfo == 1338)
{
if(IsPlayerInRangeOfPoint(playerid, 2, 1072.0941,-1605.7855,20.4904))
{
PlayAudioStreamForPlayer(playerid,"http://k002.kiwi6.com/hotlink/1pv7paxm09/luna_-_noc_me_doziva_audio_2012_.mp3",1086.5092,-1611.1364,20.5537,60,1);
GetPlayerName(playerid, sendername, 24);
format(string, sizeof(string), "* %s pali pjesmu ((Luna - Noc me doziva)).", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
else
SendClientMessage(playerid, COLOR_GREY,"Niste pokraj mixete!");
}
else
SendClientMessage(playerid, COLOR_RED,"Niste ovlasteni za koristenje ove komande!");
return 1;
}
if(strcmp(cmd, "/pjesma2", true) == 0)
{
if (PlayerInfo == 1338)
{
if(IsPlayerInRangeOfPoint(playerid, 2, 1072.0941,-1605.7855,20.4904))
{
PlayAudioStreamForPlayer(playerid,"http://k002.kiwi6.com/hotlink/fpssew3i91/marko_vanilla_feat._dado_polumenta_-_ljeto_official_video_.mp3",1086.5092,-1611.1364,20.5537,60,1);
GetPlayerName(playerid, sendername, 24);
format(string, sizeof(string), "* %s pali pjesmu ((Dado Polumenta - Ljeto)).", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
else
SendClientMessage(playerid, COLOR_GREY,"Niste pokraj mixete!");
}
else
SendClientMessage(playerid, COLOR_RED,"Niste ovlasteni za koristenje ove komande!");
return 1;
}
if(strcmp(cmd, "/pjesma3", true) == 0)
{
if (PlayerInfo == 1338)
{
if(IsPlayerInRangeOfPoint(playerid, 2, 1072.0941,-1605.7855,20.4904))
{
PlayAudioStreamForPlayer(playerid,"http://k002.kiwi6.com/hotlink/3t83mp414v/in_vivo_feat_dado_polumenta_party_manijak_2011.mp3",1086.5092,-1611.1364,20.5537,60,1);
GetPlayerName(playerid, sendername, 24);
format(string, sizeof(string), "* %s pali pjesmu ((Dado Polumenta - Party manijak)).", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
else
SendClientMessage(playerid, COLOR_GREY,"Niste pokraj mixete!");
}
else
SendClientMessage(playerid, COLOR_RED,"Niste ovlasteni za koristenje ove komande!");
return 1;
}
if(strcmp(cmd, "/pjesma4", true) == 0)
{
if (PlayerInfo == 1338)
{
if(IsPlayerInRangeOfPoint(playerid, 2, 1072.0941,-1605.7855,20.4904))
{
PlayAudioStreamForPlayer(playerid,"http://k002.kiwi6.com/hotlink/ar9zurt3zt/dejan_matic_-_sledeca_-_audio_2013_hd.mp3",1086.5092,-1611.1364,20.5537,60,1);
GetPlayerName(playerid, sendername, 24);
format(string, sizeof(string), "* %s pali pjesmu ((Dejan Matic - Sljedeca)).", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
else
SendClientMessage(playerid, COLOR_GREY,"Niste pokraj mixete!");
}
else
SendClientMessage(playerid, COLOR_RED,"Niste ovlasteni za koristenje ove komande!");
return 1;
}
if(strcmp(cmd, "/pjesma5", true) == 0)
{
if (PlayerInfo == 1338)
{
if(IsPlayerInRangeOfPoint(playerid, 2, 1072.0941,-1605.7855,20.4904))
{
PlayAudioStreamForPlayer(playerid,"http://k002.kiwi6.com/hotlink/21t318f830/darko_lazic_2011_-_godinu_dana_300_kafana.mp3",1086.5092,-1611.1364,20.5537,60,1);
GetPlayerName(playerid, sendername, 24);
format(string, sizeof(string), "* %s pali pjesmu ((Darko Lazic - Godinu dana 300 kafana)).", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
else
SendClientMessage(playerid, COLOR_GREY,"Niste pokraj mixete!");
}
else
SendClientMessage(playerid, COLOR_RED,"Niste ovlasteni za koristenje ove komande!");
return 1;
}
if(strcmp(cmd, "/pjesma6", true) == 0)
{
if (PlayerInfo == 1338)
{
if(IsPlayerInRangeOfPoint(playerid, 2, 1072.0941,-1605.7855,20.4904))
{
PlayAudioStreamForPlayer(playerid,"http://k002.kiwi6.com/hotlink/t01iz0h2h3/dino_dizdarevic_-_sve_su_zene_oko_mene_harmonika_official_2012.mp3",1086.5092,-1611.1364,20.5537,60,1);
GetPlayerName(playerid, sendername, 24);
format(string, sizeof(string), "* %s pali pjesmu ((Dino Dizdarevic - Sve su zene oko mene)).", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
else
SendClientMessage(playerid, COLOR_GREY,"Niste pokraj mixete!");
}
else
SendClientMessage(playerid, COLOR_RED,"Niste ovlasteni za koristenje ove komande!");
return 1;
}
if(strcmp(cmd, "/pjesma7", true) == 0)
{
if (PlayerInfo == 1338)
{
if(IsPlayerInRangeOfPoint(playerid, 2, 1072.0941,-1605.7855,20.4904))
{
PlayAudioStreamForPlayer(playerid,"http://k002.kiwi6.com/hotlink/amtt78blo0/dj_krmak_ft._mc_urke_-_balkanska_muzika_offical_video_2013_.mp3",1086.5092,-1611.1364,20.5537,60,1);
GetPlayerName(playerid, sendername, 24);
format(string, sizeof(string), "* %s pali pjesmu ((DJ Krmak - Balkanska muzika)).", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
else
SendClientMessage(playerid, COLOR_GREY,"Niste pokraj mixete!");
}
else
SendClientMessage(playerid, COLOR_RED,"Niste ovlasteni za koristenje ove komande!");
return 1;
}
if(strcmp(cmd, "/pjesma8", true) == 0)
{
if (PlayerInfo == 1338)
{
if(IsPlayerInRangeOfPoint(playerid, 2, 1072.0941,-1605.7855,20.4904))
{
PlayAudioStreamForPlayer(playerid,"http://k002.kiwi6.com/hotlink/zz576l62vb/luna_vino_karmin_adrenalin_2011_.mp3",1086.5092,-1611.1364,20.5537,60,1);
GetPlayerName(playerid, sendername, 24);
format(string, sizeof(string), "* %s pali pjesmu ((Luna - Vino karmin adrenalin)).", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
else
SendClientMessage(playerid, COLOR_GREY,"Niste pokraj mixete!");
}
else
SendClientMessage(playerid, COLOR_RED,"Niste ovlasteni za koristenje ove komande!");
return 1;
}
if(strcmp(cmd, "/pjesma9", true) == 0)
{
if (PlayerInfo == 1338)
{
if(IsPlayerInRangeOfPoint(playerid, 2, 1072.0941,-1605.7855,20.4904))
{
PlayAudioStreamForPlayer(playerid,"http://k002.kiwi6.com/hotlink/pgb6101y68/maja_marijana_i_denis_bjelosevic_2010_-_haos-_novo.mp3",1086.5092,-1611.1364,20.5537,60,1);
GetPlayerName(playerid, sendername, 24);
format(string, sizeof(string), "* %s pali pjesmu ((Maja Marijana - Haos)).", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
else
SendClientMessage(playerid, COLOR_GREY,"Niste pokraj mixete!");
}
else
SendClientMessage(playerid, COLOR_RED,"Niste ovlasteni za koristenje ove komande!");
return 1;
}
if(strcmp(cmd, "/pjesma10", true) == 0)
{
if (PlayerInfo == 1338)
{
if(IsPlayerInRangeOfPoint(playerid, 2, 1072.0941,-1605.7855,20.4904))
{
PlayAudioStreamForPlayer(playerid,"http://k002.kiwi6.com/hotlink/ye6mx3gu2s/marina_tadic_-_otrove_-_audio_2012_hd.mp3",1086.5092,-1611.1364,20.5537,60,1);
GetPlayerName(playerid, sendername, 24);
format(string, sizeof(string), "* %s pali pjesmu ((Marina Tadic - Otrove)).", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
else
SendClientMessage(playerid, COLOR_GREY,"Niste pokraj mixete!");
}
else
SendClientMessage(playerid, COLOR_RED,"Niste ovlasteni za koristenje ove komande!");
return 1;
}
if(strcmp(cmd, "/pjesma11", true) == 0)
{
if (PlayerInfo == 1338)
{
if(IsPlayerInRangeOfPoint(playerid, 2, 1072.0941,-1605.7855,20.4904))
{
PlayAudioStreamForPlayer(playerid,"http://k002.kiwi6.com/hotlink/y0932t29wt/mile_kiti_feat_ogani_-_ludnica_na_balkanu_-_official_video_2011_.mp3",1086.5092,-1611.1364,20.5537,60,1);
GetPlayerName(playerid, sendername, 24);
format(string, sizeof(string), "* %s pali pjesmu ((Mile Kitic - Ludnica na balkanu)).", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
else
SendClientMessage(playerid, COLOR_GREY,"Niste pokraj mixete!");
}
else
SendClientMessage(playerid, COLOR_RED,"Niste ovlasteni za koristenje ove komande!");
return 1;
}
if(strcmp(cmd, "/pjesma12", true) == 0)
{
if (PlayerInfo == 1338)
{
if(IsPlayerInRangeOfPoint(playerid, 2, 1072.0941,-1605.7855,20.4904))
{
PlayAudioStreamForPlayer(playerid,"http://k002.kiwi6.com/hotlink/b1yl47d26d/neda_ukraden_-_na_balkanu_-_audio_2012_hd.mp3",1086.5092,-1611.1364,20.5537,60,1);
GetPlayerName(playerid, sendername, 24);
format(string, sizeof(string), "* %s pali pjesmu ((Neda Ukraden - Na balkanu)).", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
else
SendClientMessage(playerid, COLOR_GREY,"Niste pokraj mixete!");
}
else
SendClientMessage(playerid, COLOR_RED,"Niste ovlasteni za koristenje ove komande!");
return 1;
}
if(strcmp(cmd, "/pjesma13", true) == 0)
{
if (PlayerInfo == 1338)
{
if(IsPlayerInRangeOfPoint(playerid, 2, 1072.0941,-1605.7855,20.4904))
{
PlayAudioStreamForPlayer(playerid,"http://k002.kiwi6.com/hotlink/5rp179xy9w/nesko_kejdz_-_votka_i_dzin.mp3",1086.5092,-1611.1364,20.5537,60,1);
GetPlayerName(playerid, sendername, 24);
format(string, sizeof(string), "* %s pali pjesmu ((Nesko Kejdz - Vodka i dzin)).", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
else
SendClientMessage(playerid, COLOR_GREY,"Niste pokraj mixete!");
}
else
SendClientMessage(playerid, COLOR_RED,"Niste ovlasteni za koristenje ove komande!");
return 1;
}
if(strcmp(cmd, "/stoppjesme", true) == 0)
{
if (PlayerInfo == 1338)
{
if(IsPlayerInRangeOfPoint(playerid, 2, 1072.0941,-1605.7855,20.4904))
{
StopAudioStreamForPlayer(playerid);
GetPlayerName(playerid, sendername, 24);
format(string, sizeof(string), "* %s gasi pjesmu.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
else
SendClientMessage(playerid, COLOR_GREY,"Niste pokraj mixete!");
}
else
SendClientMessage(playerid, COLOR_RED,"Niste ovlasteni za koristenje ove komande!");
return 1;
}
if(strcmp(cmd, "/pjesme", true) == 0)
{
if (PlayerInfo == 1338)
{
if(IsPlayerInRangeOfPoint(playerid, 2, 1072.0941,-1605.7855,20.4904))
{
SendClientMessage(playerid, COLOR_LIGHTGREEN,"______________PJESME______________");
SendClientMessage(playerid, COLOR_LIGHTGREEN,"KORISTENJE: /pjesma1/2/3/4...");
SendClientMessage(playerid, COLOR_LIGHTGREEN,"KORISTENJE: Mikrofon - /mik .");
SendClientMessage(playerid, COLOR_LIGHTGREEN,"KORISTENJE: /stoppjesme.");
SendClientMessage(playerid, COLOR_LIGHTGREEN,"Pjesma 1: Luna - Noc me doziva.");
SendClientMessage(playerid, COLOR_LIGHTGREEN,"Pjesma 2: Vanilla & Dado - Ljeto.");
SendClientMessage(playerid, COLOR_LIGHTGREEN,"Pjesma 3: Dado Polumenta - Party manijak.");
SendClientMessage(playerid, COLOR_LIGHTGREEN,"Pjesma 4: Dejan Matic - Sledeca.");
SendClientMessage(playerid, COLOR_LIGHTGREEN,"Pjesma 5: Darko Lazic - Godinu dana 300 kafana");
SendClientMessage(playerid, COLOR_LIGHTGREEN,"Pjesma 6: Dino Dizdarevic - Sve su zene oko mene");
SendClientMessage(playerid, COLOR_LIGHTGREEN,"Pjesma 7: DJ Krmak - Balkanska muzika");
SendClientMessage(playerid, COLOR_LIGHTGREEN,"Pjesma 8: Luna - Vino karmin adrenalin");
SendClientMessage(playerid, COLOR_LIGHTGREEN,"Pjesma 9: Maja Marijana - Haos");
SendClientMessage(playerid, COLOR_LIGHTGREEN,"Pjesma 10: Marina Tadic - Otrove");
SendClientMessage(playerid, COLOR_LIGHTGREEN,"Pjesma 11: Mile Kitic - Ludnica na balkanu");
SendClientMessage(playerid, COLOR_LIGHTGREEN,"Pjesma 12: Neda Ukraden - Na balkanu");
SendClientMessage(playerid, COLOR_LIGHTGREEN,"Pjesma 13: Nejso Kejdz - Vodka i dzin");
SendClientMessage(playerid, COLOR_LIGHTGREEN,"__________________________________");
}
else
SendClientMessage(playerid, COLOR_GREY,"Niste pokraj mixete!");
}
else
SendClientMessage(playerid, COLOR_RED,"Niste ovlasteni za koristenje ove komande!");
return 1;
}Neke slike/video za lakse dobivanje pomoci(neobavezno):
ovo sam sam jucer radio koristio sam PlayAudioStreamForPlayer i samo ja cujem niko drugi ocu da svi cuju jednu pismu i kad minjam
