Bonsoir a tous bon comme tous le monde j ai voulu installer une musique pendant le chargement de la map avec l aide des tutos de verygames mais cela ne fonctionne pas.
Tout d abord j ai placer ma music nome conseil.mp3 dans le dossier czero/sound/test/conseil.mp3 (test fichier que j ai cree)
J ai place et compliler mon plugins loading_mp3 ou il le faut et je l ai editer dans le plugins.ini mais je n ai pas de son.
Peut etre me suis tromper dans le sma:
#include <amxmodx>
new const PLUGINNAME[] = "Musique d'Attente"
new const VERSION[] = "1.0"
new const AUTHOR[] = "kEnNy_"
/*****************************************************************************************
* *
* Joue un mp3 en boucle durant la connexion. *
* ========================================== *
* *
* *
* Definir le chemin du son ci-dessous. *
* Le répertoire de base étant "cstrike/sound", donc simplement *
* definir "test/test.mp3" pour un mp3 situé dans cstrike/sound/test/test.mp3 *
* *
*****************************************************************************************/
#define TheSound "test/conseil.mp3"
/*****************************************************************************************
* *
* Scripting by kEnNy *
* *
*****************************************************************************************/
public client_connect(id) {
client_cmd(id,"mp3 loop sound/%s", TheSound)
return PLUGIN_CONTINUE
}
public client_putinserver(id) {
client_cmd(id,"mp3 stop")
return PLUGIN_CONTINUE
}
public plugin_precache() {
precache_sound(TheSound)
return PLUGIN_CONTINUE
}
public plugin_init() {
register_plugin(PLUGINNAME, VERSION, AUTHOR)
return PLUGIN_CONTINUE
}
Merci de maider car la je ne sais plus quoi faire