LondoN eXtream 110 Posted April 19, 2015 Share Posted April 19, 2015 Descriere: Acesta este un plugin Radio, mai avansat. Nume: Radio New Versiune: 1.0 Autor: dK^aLeX Instalare: Fisierul radio_new.sma il punem in folderul scripting. Fisierul radio_new.amxx il punem in folderul plugins Fisierele .html le punem in folderul configs. Mergem in plugins.ini si adaugam: radio_new.amxx Download: #include <amxmodx> #include <amxmisc> static const PLUGIN[] = "Radio Diz" static const VERSION[] = "1.0" static const AUTHOR[] = "dK^aLeX @ RangFort.Ro" new const szRadioFile[] = "radio.html" new const szStopFile[] = "stop.html" new sEnabled; public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR) register_clcmd("say", "checkSay") register_clcmd("say_team", "checkSay") sEnabled = register_cvar("amx_radio", "1") } public check(id) { switch(get_pcvar_num(sEnabled)) { case 0 : { server_print("[Radio] Pluginul este dezactivat.") } case 1 : { if(!file_exists(szRadioFile)) { server_print("[Radio] File Missing!!") } if(!file_exists(szStopFile)) { server_print("[Radio] File Missing #2") } new szSay[196] read_argv(1, szSay, sizeof(szSay)) remove_quotes(szSay) if(containi(szSay, "radio") != -1) { show_motd(id, "addons/amxmodx/configs/%s", szRadioFile) } if(containi(szSay, "/radio") != -1) { show_motd(id, "addons/amxmodx/configs/%s", szRadioFile) } if(containi(szSay, "/stop") != -1) { show_motd(id, "addons/amxmodx/configs/%s", szStopFile) } if(containi(szSay, "stop") != -1) { show_motd(id, "addons/amxmodx/configs/%s", szStopFile) } } } } /* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE *{\\ rtf1\\ ansi\\ ansicpg1252\\ deff0\\ deflang1033{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ f0\\ fs16 \n\\ par } */ Cvaruri: [se adauga in server.cfg]: amx_radio : 1 - Activat | 0 - Dezactivat Comenzi publice: stop & /stop radio & /radio Fisierele .html le luati de aici: http://rangfort.ro/forum/index.php?/topic/12178-plugin-motd-radiodiz/ Link to comment Share on other sites More sharing options...
RoNY # cTe 4 Posted April 19, 2015 Share Posted April 19, 2015 Imi da erori la compilare... Pune si amxx Link to comment Share on other sites More sharing options...
LondoN eXtream 110 Posted April 19, 2015 Author Share Posted April 19, 2015 Poftim AMXX: http://www.amxmodx.org/webcompiler.cgi?go=dl&id=1769558 Nota* De acum compileaza pluginurile pe http://amxmodx.org/webcompiler.cgi, siteul official [nu e reclama!] Link to comment Share on other sites More sharing options...
d@rc@ # YELLOWFISH 49 Posted October 10, 2015 Share Posted October 10, 2015 In nici un caz nu se foloseste detectarea chatului si cautarea in el pentru asta. Mananca mai mult iar daca cineva ar scrie keyurile tale in chat fara sa aiba legatura cu play radio le.ar deschide fara sa vrea un motd. Pe langa asta, vad ca ai folosit libraria amxmisc. Nu ai treaba cu ea intrucat nu ai treaba cu vreun acces de admin. Nu mai copiati/editati munca altora sub numele vostru daca nici macar librariile default nu le stiti. Automat cu o functionare gresita risti sa strici buna functionare a serverului. 1 Link to comment Share on other sites More sharing options...
Heineken 0 Posted November 1, 2015 Share Posted November 1, 2015 Face lag cred. Link to comment Share on other sites More sharing options...
Recommended Posts