EmptyRaiden Posted October 27, 2015 Group: Members Topic Count: 8 Topics Per Day: 0.00 Content Count: 20 Reputation: 0 Joined: 09/23/15 Last Seen: April 14, 2024 Share Posted October 27, 2015 Hello, I've installed Narrator script successfully but I couldn't make it announce the messages to the whole server, not just the map. script: // ________________________________________________________ // / ____ \ // | | __| | // | | |_ _ _ __ _ _ __ _ __ | // | | _| || |/ _` | '_ \| |/ _ \ | // | | |__ \/ | (_| | | | | | (_) | | // | |____|__/ \__,_|_| |_|_|\___/ | // | | // | | // |--------------------------------------------------------| // | Name of Script: Narrator PvP | // |--------------------------------------------------------| // | By: Evanio (SynGates) | // |--------------------------------------------------------| // | Version 1.0 | // |--------------------------------------------------------| // | Description: Narrator PvP System, where the player has | // | more than one choice of narrators. | // |--------------------------------------------------------| // | Changelog: | // | 1.0 Script maked (18/02/2014) [Evanio] | // \________________________________________________________/ // ---------------------------------------------------------- quiz_02,353,368,5 script Narrator PvP 999,{ Locutor: mes "[Narrator PvP]"; mes "We have available four types of PvP narrators. Choose one of your own."; next; switch(select("UnrealTournament","Badass","Flamboyant","Pimp")) { case 1: set @loc,0; soundeffect "locutor0.wav",0; goto Loc; case 2: set @loc,1; soundeffect "locutor1.wav",0; goto Loc; case 3: set @loc,2; soundeffect "locutor2.wav",0; goto Loc; case 4: set @loc,3; soundeffect "locutor3.wav",0; Loc: mes "[Narrator PvP]"; mes "You want to select this narrator?"; next; if(select("Yes","No")==2) { goto Locutor; } set #ST,@loc; mes "[Narrator PvP]"; mes "Narrator selected."; close; } } - script CtrlLoc -1,{ OnPcKillEvent: getmapxy @map$,@x,@y,0; for(set .@a,0;.@a<getarraysize($@MapName$);set .@a,.@a+1) if($@MapName$[.@a]==@map$) { set @Killer,getcharid(0); set @Morto$,rid2name(killedrid); set @Killed,getcharid(0,rid2name(killedrid)); if(@Killed==@Killer) end;; set @WD2,@WD2+1; if(#ST==0) { set @WD,@WD2; } if(#ST==0 && @WD2>12) { set @WD,0; set @Tocar$,"";} if(#ST==1) { set @WD,@WD2+12;} if(#ST==1 && @WD2>12) { set @WD,0; set @Tocar$,"";} if(#ST==2) { set @WD,@WD2+24; } if(#ST==2 && @WD2>12) { set @WD,0; set @Tocar$,"";} if(#ST==3) { set @WD,@WD2+36; } if(#ST==3 && @WD2>12) { set @WD,0; set @Tocar$,"";} if($@Sounds$[@WD]!="") { set @Tocar$,$@Sounds$[@WD]; } mapannounce @map$,"The Player [ "+strcharinfo(0)+" ] killed [ "+@Morto$+" ] | "+@Tocar$,bc_map; if($@Sounds$[@WD]!="") { soundeffectall $@Sounds$[@WD]+".wav",0; } if(#ST==1) { soundeffectall $@SoundsE$[1]+".wav",0; } if(#ST==3) { soundeffectall $@SoundsE$[3]+".wav",0; soundeffectall $@SoundsE$[4]+".wav",0; } } end; OnPcDieEvent: getmapxy @map$,@x,@y,0; for(set .@a,0;.@a<getarraysize($@MapName$);set .@a,.@a+1) if($@MapName$[.@a]==@map$) { set @WD2,0; set @WD,0; } end; OnInit: deletearray $@Sounds$; deletearray $@MapName$; // --------------- Add here the pvp maps ------------ setarray $@MapName$[1],"pvp_n_1-5","pvp_n_3-4"; //------------------------------------------------------- setarray $@Sounds$[1],"First Blood","Double Kill","Triple Kill","Killing Spree","Mega Kill","Ultra Kill","Monster Kill","Unstoppable","WhickedSick","GodLike","HolyShit","Rampage"; setarray $@Sounds$[13],"First of Many","Too Easy","No Chance","Who's next","Five kill stud","Not today dirtbag","Kiss my ass","Damn I'm good","Who's your daddy","Hell yeah","Unbelievable","Champion"; setarray $@Sounds$[25],"Cherry Popper","Fabulous","It's a three way","Rainbow Warrior","Homicidal","Big Bear","Macho","Savage","Domination","Superstar","Yey","Like OMG"; setarray $@Sounds$[37],"First Time","Double D's","The juice is loose","It's a four-gy","It's the 5-O","What's my name","Say my name","Mo money","One Bad Mother","Pimpin is easy","Bitch please","Big Pimpin"; setarray $@SoundsE$[1],"bullet","bullet_glass","bling","chainin"; end; } Quote Link to comment Share on other sites More sharing options...
llchrisll Posted October 27, 2015 Group: Members Topic Count: 12 Topics Per Day: 0.00 Content Count: 626 Reputation: 189 Joined: 11/19/11 Last Seen: March 25 Share Posted October 27, 2015 Change mapannounce @map$, to announce and bc_map tobc_all.For more information: Wiki - announce Regards, Chris 1 Quote Link to comment Share on other sites More sharing options...
EmptyRaiden Posted October 27, 2015 Group: Members Topic Count: 8 Topics Per Day: 0.00 Content Count: 20 Reputation: 0 Joined: 09/23/15 Last Seen: April 14, 2024 Author Share Posted October 27, 2015 Worked, thanks. Quote Link to comment Share on other sites More sharing options...
Question
EmptyRaiden
Hello,
I've installed Narrator script successfully but I couldn't make it announce the messages to the whole server, not just the map.
script:
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.