oke i understand so if i paste this code
in iw_multiplayer.csv it will be ok?PHP Code:
gomplayersleft,,,gomsound/playerdiscon.mp3,,,,,,,local,streamed,,,,all_mp,,,,,,local
and where can i paste that @ the begin of the csv o
oke i understand so if i paste this code
in iw_multiplayer.csv it will be ok?PHP Code:
gomplayersleft,,,gomsound/playerdiscon.mp3,,,,,,,local,streamed,,,,all_mp,,,,,,local
and where can i paste that @ the begin of the csv o
kubislav23 (20th March 2017)
No, if you want to use iw_multiplayer.csv, you should use:
And if you want to use it with your soundalias file with the columns you posted you should use:PHP Code:
gomplayersleft,,gomsound/playerdiscon.mp3,,,,,,,,local,streamed,,,,all_mp,,,,,,local
PHP Code:
gomplayersleft,,,gomsound/playerdiscon.mp3,,,,,,,local,streamed,,,,all_mp,,,,,,local
sudo apt-get rekt
ok ok Thank you!
i will try this now. ( just to get you a idea do u know the extreme mod @ cod2) ? thats the thing what i want when someone joins and leaves the server you will hear that sound everybody will hear that sound. you know what i mean?
In the game type script (tdm.gsc, dm.gsc, sd.gsc, ...), use playSoundOnPlayers(sound, team) on Callback_PlayerConnect() and Callback_PlayerDisconnect()
set logfile 2
well this is my player_connect
and this is my callback_playerdisconnectPHP Code:
Callback_PlayerConnect()
{
thread dummy();
self.statusicon = "hud_status_connecting";
self waittill("begin");
self.statusicon = "";
level notify("connected", self);
self iprintlnbold("You are connected to unionsqd-gaming public SD"); //put your message here
self playlocalsound("playercon.mp3"); //put your sound here
if(!isdefined(self.pers["team"]) && !level.splitscreen)
iprintln(&"MP_CONNECTED", self.name);
self playlocalsound("playercon.mp3"); //put your sound here
lpselfnum = self getEntityNumber();
lpselfguid = self getGuid();
logPrint("J;" + lpselfguid + ";" + lpselfnum + ";" + self.name + "\n");
if(game["state"] == "intermission")
{
spawnIntermission();
return;
}
level endon("intermission");
// WORM
self thread maps\mp\gametypes\_wormsmod::Worms_Mod_PlayerConnect_Init();
PHP Code:
Callback_PlayerDisconnect()
{
if(!level.splitscreen)
iprintln(&"MP_DISCONNECTED", self);
self playlocalsound("playerdiscon.mp3"); //put your sound here
if(isdefined(self.pers["team"]))
{
if(self.pers["team"] == "allies")
setplayerteamrank(self, 0, 0);
else if(self.pers["team"] == "axis")
setplayerteamrank(self, 1, 0);
else if(self.pers["team"] == "spectator")
setplayerteamrank(self, 2, 0);
}
lpselfnum = self getEntityNumber();
lpselfguid = self getGuid();
logPrint("Q;" + lpselfguid + ";" + lpselfnum + ";" + self.name + "\n");
if(game["matchstarted"])
level thread updateTeamStatus();
read what I posted and try doing it as I said
set logfile 2
Like this?
PHP Code:
Callback_PlayerConnect()
{
thread dummy();
self.statusicon = "hud_status_connecting";
self waittill("begin");
self.statusicon = "";
level notify("connected", self);
self iprintlnbold("You are connected to unionsqd-gaming public SD"); //put your message here
playSoundOnPlayers(sound, team)("playercon.mp3"); //put your sound here
if(!isdefined(self.pers["team"]) && !level.splitscreen)
iprintln(&"MP_CONNECTED", self.name);
self playlocalsound("playercon.mp3"); //put your sound here
lpselfnum = self getEntityNumber();
lpselfguid = self getGuid();
logPrint("J;" + lpselfguid + ";" + lpselfnum + ";" + self.name + "\n");
if(game["state"] == "intermission")
{
spawnIntermission();
return;
}
level endon("intermission");
// WORM
self thread maps\mp\gametypes\_wormsmod::Worms_Mod_PlayerConnect_Init();
PHP Code:
Callback_PlayerDisconnect()
{
if(!level.splitscreen)
iprintln(&"MP_DISCONNECTED", self);
self playlocalsound("playerdiscon.mp3"); //put your sound here
if(isdefined(self.pers["team"]))
{
if(self.pers["team"] == "allies")
setplayerteamrank(self, 0, 0);
else if(self.pers["team"] == "axis")
setplayerteamrank(self, 1, 0);
else if(self.pers["team"] == "spectator")
setplayerteamrank(self, 2, 0);
}
lpselfnum = self getEntityNumber();
lpselfguid = self getGuid();
logPrint("Q;" + lpselfguid + ";" + lpselfnum + ";" + self.name + "\n");
if(game["matchstarted"])
level thread updateTeamStatus();
Instead of
useCode:playSoundOnPlayers(sound, team)("playercon.mp3");
and delete this:Code:playSoundOnPlayers("playercon.mp3", team);
But also, you need to add your sound to a soundaliases table and use the alias instead of the file name.Code:self playlocalsound("playercon.mp3");
It will help you if you get a mod and check how it is done.
Last edited by guiismiti; 30th March 2017 at 00:02.
set logfile 2
So what you say to me is that i cant use the.multiplayer soundaliases? Pff this is harder than i thought
Ofcourse you can use that one. But you need to use that syntax. Just copy a line that plays a sound to all players and edit it