SanZoR.Sr Posted February 19, 2007 Share Posted February 19, 2007 I have posted this same script many topics, so i am tired of that, so there ppl can look it right now. There it goes: alias mta.end { if (%cplayers == 1) { var %a = 0 while (%a < $mta.server($1).cmax) { if (!$mta.dead($1,%a)) { mta.text $1 $mta.nick($1,%a) is winner! mta.freeze $1 %a !writeini -n " $+ $scriptdir $+ stats.ini" WINS $mta.nick($1,%a) $gus.add($gus.wins($1,%a),1) !halt } !inc %a } } } on *:SIGNAL:mta.startrace: { set %cplayers $mta.server($1).players } on *:SIGNAL:mta.part: { if (!$mta.dead($1,$2) set %cplayers $calc(%cplayers - 1) mta.end $1 $2 } on *:SIGNAL:mta.death: { set %cplayers $calc(%cplayers - 1) mta.end $1 $2 } on *:SIGNAL:mta.connect: { set %cplayers 0 } This script works perfectly if there are no one players whit % and $ letters in name. Some other special letters are buggy too, but exacly those. So... have fun =D Link to comment
Moustaph Posted February 19, 2007 Share Posted February 19, 2007 Hi where to put this script? I test this and he work 50% and he freeze player why ? Link to comment
SanZoR.Sr Posted February 19, 2007 Author Share Posted February 19, 2007 Do you use general use scripts? Link to comment
SanZoR.Sr Posted February 19, 2007 Author Share Posted February 19, 2007 It freezes player coz if not, that player gets one more dies. So freezing is good. Link to comment
SanZoR.Sr Posted February 19, 2007 Author Share Posted February 19, 2007 Easy way to add this script in GUS is: 1. Create a new text file into GUS folder. 2. Copy this code into that text file: alias mta.end { if (%cplayers == 1) { var %a = 0 while (%a < $mta.server($1).cmax) { if (!$mta.dead($1,%a)) { mta.text $1 $mta.nick($1,%a) is winner! mta.freeze $1 %a !writeini -n " $+ $scriptdir $+ stats.ini" WINS $mta.nick($1,%a) $gus.add($gus.wins($1,%a),1) !halt } !inc %a } } } on *:SIGNAL:mta.startrace: { set %cplayers $mta.server($1).players } on *:SIGNAL:mta.part: { if (!$mta.dead($1,$2) set %cplayers $calc(%cplayers - 1) mta.end $1 $2 } on *:SIGNAL:mta.death: { set %cplayers $calc(%cplayers - 1) mta.end $1 $2 } on *:SIGNAL:mta.connect: { set %cplayers 0 } 3. open MTA mIRC and add that text file into mIRC. Then it should works. And if you dont have GUS in dont know how get this script working, cause it uses GUS's WINS as you can clearly see. i hope this helps you to gettinng started, if not, sry my bad english. Thats why i cant explain maybe enought good how put this script into your server. Link to comment
Moustaph Posted February 19, 2007 Share Posted February 19, 2007 yes i have general use script Link to comment
Moustaph Posted February 19, 2007 Share Posted February 19, 2007 When a copy this text in MIRc he says You are not on a channel Link to comment
Moustaph Posted February 19, 2007 Share Posted February 19, 2007 And can you delete the freezing please ? Link to comment
SanZoR.Sr Posted February 19, 2007 Author Share Posted February 19, 2007 This one doesnt freezes: alias mta.end { if (%cplayers == 1) { var %a = 0 while (%a < $mta.server($1).cmax) { if (!$mta.dead($1,%a)) { mta.text $1 $mta.nick($1,%a) is winner! !writeini -n " $+ $scriptdir $+ stats.ini" WINS $mta.nick($1,%a) $gus.add($gus.wins($1,%a),1) !halt } !inc %a } } } on *:SIGNAL:mta.startrace: { set %cplayers $mta.server($1).players } on *:SIGNAL:mta.part: { if (!$mta.dead($1,$2) set %cplayers $calc(%cplayers - 1) mta.end $1 $2 } on *:SIGNAL:mta.death: { set %cplayers $calc(%cplayers - 1) mta.end $1 $2 } on *:SIGNAL:mta.connect: { set %cplayers 0 } Btw, it seems you are not good scripter? ;P That is really easy to edit stuff; Normal DD script: alias mta.end { if (%cplayers == 1) { var %a = 0 while (%a < $mta.server($1).cmax) { if (!$mta.dead($1,%a)) { mta.text $1 $mta.nick($1,%a) is winner! mta.freeze $1 %a !writeini -n " $+ $scriptdir $+ stats.ini" WINS $mta.nick($1,%a) $gus.add($gus.wins($1,%a),1) !halt } !inc %a } } } on *:SIGNAL:mta.startrace: { set %cplayers $mta.server($1).players } on *:SIGNAL:mta.part: { if (!$mta.dead($1,$2) set %cplayers $calc(%cplayers - 1) mta.end $1 $2 } on *:SIGNAL:mta.death: { set %cplayers $calc(%cplayers - 1) mta.end $1 $2 } on *:SIGNAL:mta.connect: { set %cplayers 0 } Remove this text: mta.freeze $1 %a Okay, first doesnt freezes.[/url] Link to comment
SanZoR.Sr Posted February 19, 2007 Author Share Posted February 19, 2007 Tell me if you get this working. I help you more if not. Link to comment
Moustaph Posted February 19, 2007 Share Posted February 19, 2007 ok thanks i test it ! Link to comment
SanZoR.Sr Posted February 19, 2007 Author Share Posted February 19, 2007 No problem Thats good if you get it working. Btw, do you add this script into your server? If you do, what server Link to comment
Moustaph Posted February 19, 2007 Share Posted February 19, 2007 I add this script in my serveur (86.76.76.125) Come please to test it Link to comment
SanZoR.Sr Posted February 19, 2007 Author Share Posted February 19, 2007 Im sorry, but i cant just now =S Im not at home, and there were i am, doesnt have MTA... Note: If you have in your server DD & Race maps, this script will be really buggy. It freezes in Racing map random player, so you need unfreeze him. This is recommended for ONLY DD servers. Thats good thing you askef me to remove that freezing part. That will be really laggy in race maps. But still if you have racing maps this script will give ppl reasonless wins. Link to comment
Moustaph Posted February 19, 2007 Share Posted February 19, 2007 Ok Thanks for every help ! I contact you if i have a problems Link to comment
SanZoR.Sr Posted February 19, 2007 Author Share Posted February 19, 2007 Sure i can help you whit your probs! =D Link to comment
Moustaph Posted February 19, 2007 Share Posted February 19, 2007 Thanks, Have you script for mute a playen when he flood the chat ? Link to comment
BetaDevil Posted February 19, 2007 Share Posted February 19, 2007 that has nothing to do with this, and there is another topic in the forum with this today, use Search! Link to comment
(OVG)Santi Posted February 21, 2007 Share Posted February 21, 2007 please see this post, if this is true or only luck. thx http://forum.mtavc.com/viewtopic.php?t=19198 THE LAST TOPIC, THX! Link to comment
BetaDevil Posted February 21, 2007 Share Posted February 21, 2007 can you explain it in better english thx... Link to comment
(OVG)Santi Posted February 22, 2007 Share Posted February 22, 2007 can you explain it in better english thx... see again the post explained again THE LAST POST! Link to comment
Recommended Posts