RoundSound wyłączenie reklam.
AllegroPwa
31.10.2013
Mam pytanie odnośnie poniższego pluginu, http://amxx.pl/topic...962-roundsound/
Da się wyłączyć te reklamy? Chodzi mi o te, które same automatycznie wyskakują na say. (Nie chodzi mi o ręczny manewr w panelu, chce je całkowicie wywalić.
[RoundSound] Teraz gramy: xxxx [RoundSound] Chcesz wylaczyc reklamy? Napisz /roundsound lub /muzyka
szelbi
01.11.2013
public RandMusic(g_Type){ if(!g_FirstPlay){ g_FirstPlay = true; } new g_SoundPath[128], g_Name[96], g_Format, g_FileFormat; switch(g_Type){ case 1:{ if(g_RandomMusic){ g_ValueTeam[0] = random(g_ArraySize[1]); } else{ g_ValueTeam[0]++; if(g_ValueTeam[0] >= g_ArraySize[1]){ g_ValueTeam[0] = 0; } } ArrayGetString(g_PathTT, g_ValueTeam[0], g_SoundPath, charsmax(g_SoundPath)); ArrayGetString(g_SoundNameTT, g_ValueTeam[0], g_Name, charsmax(g_Name)); } case 2:{ if(g_RandomMusic){ g_ValueTeam[1] = random(g_ArraySize[0]); } else{ g_ValueTeam[1]++; if(g_ValueTeam[1] >= g_ArraySize[0]){ g_ValueTeam[1] = 0; } } ArrayGetString(g_PathCT, g_ValueTeam[1], g_SoundPath, charsmax(g_SoundPath)); ArrayGetString(g_SoundNameCT, g_ValueTeam[1], g_Name, charsmax(g_Name)); } } /* if(equal(g_LastSoundPath, g_SoundPath)){ RandMusic(g_Type); return PLUGIN_HANDLED; } */ copy(g_LastSong, charsmax(g_LastSong), g_Name); g_Format = strlen(g_SoundPath) - 4; if(equal(g_SoundPath[ g_Format ], ".mp3")){ g_FileFormat = 1; } else{ g_FileFormat = 2; } for(new i = 1; i <= g_MaxPlayers; i++){ if(is_user_connected(i) && g_RoundSound[i]){ switch(g_FileFormat){ case 1:{ client_cmd(i, "mp3 play %s", g_SoundPath); } case 2:{ client_cmd(i, "spk %s", g_SoundPath); } } } } return PLUGIN_CONTINUE; } ublic ShowAds(){ for(new i = 1; i <= g_MaxPlayers; i++){ if(is_user_connected(i) && g_ShowAds[i]){ switch(random(3)){ case 0:{ ColorChat(i, TEAM_COLOR, "[%s]^x04 Chcesz %s roundsound? Napisz^x03 /roundsound ^x04lub^x03 /rs", g_Prefix, g_RoundSound[i] ? "wylaczyc" : "wlaczyc"); } case 1:{ ColorChat(i, TEAM_COLOR, "[%s]^x04 Podobala Ci sie ostatnia piosenka, a nie pamietasz jej nazwy? Napisz^x03 /last", g_Prefix); } case 2:{ ColorChat(i, TEAM_COLOR, "[%s]^x04 Chcesz posluchac utworow CT / TT? Napisz^x03 /roundsound ^x04lub^x03 /rs", g_Prefix); } } } } }
AllegroPwa
02.11.2013
Jeśli chodzi o podmianę i kompilację, to wywala błędy:
RoundSound.sma(389) : error 010: invalid function or declaration RoundSound.sma(390) : error 010: invalid function or declaration RoundSound.sma(391) : error 010: invalid function or declaration RoundSound.sma(392) : error 010: invalid function or declaration RoundSound.sma(393) : error 010: invalid function or declaration RoundSound.sma(394) : error 021: symbol already defined: "ColorChat" RoundSound.sma(394) : error 029: invalid expression, assumed zero RoundSound.sma(396) : error 010: invalid function or declaration RoundSound.sma(397) : error 021: symbol already defined: "ColorChat" RoundSound.sma(399) : error 010: invalid function or declaration RoundSound.sma(400) : error 021: symbol already defined: "ColorChat" 11 Errors. Could not locate output file RoundSound.amxx (compile failed).
corel
02.11.2013
Roundsound_ads_time 0 lub 999999999999999999 /* Czas wyświetlania wiadomości w sekundach [ domyślnie 120 ] */
moze taki cvar ?
AllegroPwa
02.11.2013
Corel, włącz głowę, użyj mózgu i przeczytaj ze zrozumieniem co ja napisałem w pierwszym poście.
Droso
03.11.2013
Pewnie nie testował jak jest napisane "check", ale kod się kompiluje i pewnie zostały usunięte linijki, w których jest fraza ColorChat/client_print, więc możesz śmiało wgrywać.
AllegroPwa
03.11.2013
Na pierwszy rzut oka wszystko wydaje się idealnie. Proszę jeszcze nie zamykać tematu, do jutra zdam raport oficjalny! Dziękuje za pomoc, plusiki poleciały!
AllegroPwa
06.11.2013
Okej, wszystko super. Działa tak jak chciałem! Dziękuje, do zamknięcia