Jump to content

2paq

Members
  • Posts

    65
  • Joined

  • Last visited

Everything posted by 2paq

  1. First* I thought that is something wrong i MTA:mA, but today I connect to the server using MTA Remote Admin and I saw in remote: Connecting... Connected. but not!: Race list updated *) viewtopic.php?f=30&t=22308
  2. For example 1: Player left server but MTA:mA doesn't seen* this and try kick for to much ping ... *) in 1.ini is written that Player are on the server For example 2: Server change map, but MTA:mA doesn't seen this and doesn't know on which map players play (Unknown) For example 3: Someone join server but MTA:mA doeasn't seen this and if you for ex. check points, server say: Unknown** player ... **) in me script I didn't add some text I have server with this script more then year, but problems start some day's ago
  3. Not sure about handling the config, but as for the modifications you want you should go ask in the scripting forums and someone might do it for you, and if someone liked the idea and wanted to see it themselves, they might do it for free, but don't quote me on that I suggest that there be a script showroom/script request sub-forum here, it seems to be great for the sa-mp forums and would be a nice addition to the site. But I guess the resource center is basically a script showroom in itself Modification which about is topic can't be done by the scriptig in mIRC!!
  4. How much this modification could by cost?? I mean this three from my first post and reconfiguration anticheat (that I can set which handling isn't cheat)?? If price don't by to high I could pay someone from MTA team for this ...
  5. MTA: SA Deathmatch 1.0 Development Preview 1 is very good mod for people that are boring usually game ... but if someone love only race, that nothings is better than old MTA:SA Race 1.1.1 ... it is not only my opinion, that what I hear if I asking gamer playing on my server ... and one more things, many of user have old computers and they can play MTA:SA Race, but can't play MTA:SA DM ... __________________________ MTA:SA Race 1.1.1
  6. I hope that new race gamemode will be looking like MTA:SA Race 1.1.1 ... but with out any bugs and with my suggestion I wrote before ... .... but how long me must wait
  7. I know that MTA team work very hard on MTA:SA DM, but most people are thinking that first we see GTA IV ... It's not only me opinion, but that it's real so hard to do something with MTA:SA Race? It's very very very good mod - why did you write off this mod? That was I posted before ... Re-connect sugestion - https://forum.multitheftauto.com/viewtopic.php?f=16&t=20438 2 sugestion for MTA:SA Race - https://forum.multitheftauto.com/viewtopic.php?f=16&t=19370 30 seconds at end of race..... https://forum.multitheftauto.com/viewtopic.php?f=54&t=19784 ... and good think was be that admin could by able to configuration anty-cheat (for exaple can define else that original legal handling)
  8. Please say, what different is between: !.timer and .timer ? I use in this script !.timer and I don't know that is good ... its only timer to mta.text and script works but not wrote part of message ...
  9. my English can be better yes, I ask for this because I remember that I read that in MTA:SA DM we could play Race like now in MTA:SA Race What with the scripting i mirc?? Also be work in MYA:SA DM??
  10. Have you ever play long race map? Play for example 25 minutes / 30 minutes (or longer) and you lost connection, you were first and if you could re-connect to the same place you could win this race, but you only connect and start from the beginning ... DM = Race?? It can be done in race mode??
  11. Good thing in MTA:SA Race will by that when someone was disconnected form server, then when he re-connect* (connect again) he could by able to play from the same place that he was when lose connection with server. For example when you play long map (more then 10 minute) and something goes wrong, you lose connection with the server, now you re-connect and must wait to end of race because you don't have chance to win or only to end this race. *) re-connect to the same map
  12. it work's --> that what I posted in my last post I only posted this, because fore someone that can by useful - I was learn scripting only form this forum on base of mistakes everybody else
  13. alias findmap { var %a = 0 var %b = $replace($2,$chr(95),$chr(32)) while (%a < $mta.races($1)) { if (%b == $mta.races($1,%a)) !return = $mta.races($1,%a) !inc %a } !return } line 5 - "=" between !return & $mta.races($1,%a) alias findmap { var %a = 0 var %b = $replace($2,$chr(95),$chr(32)) while (%a < $mta.races($1)) { if (%b == $mta.races($1,%a)) !return $mta.races($1,%a) !inc %a } !return } And change this: elseif ($5 != $null) { var %del.time.compare.map = $findmap($1,$5) var %del.time.compare.name = $replace($5,$chr(95),$chr(32)) if (%del.time.compare.map == %del.time.compare.name) var %del.race.time = %del.time.compare.map else { mta.pm $1 $2 Error - Syntax: $3 <1-20> <full_map_name> mta.pm $1 $2 Replace character " " (space) with this "_" !! if ($5 != $null) mta.pm $1 $2 $5 isn't full_map_name } } Now working: elseif (($3 == !10del) || ($3 == !20del)) { if ($gus.level($1,$2) >= 7) { if (!$4) { mta.pm $1 $2 Error - missing parameter! mta.pm $1 $2 Error - Syntax: $3 <1-20> <full_map_name> } elseif ($4 isnum) { if ((0 > $4 ) || ($4 > 20)) mta.pm $1 $2 Error - parameter must by a number between 1-20! else { if (!$5) var %del.race.time = $mta.race($1) elseif ($5 != $null) { var %del.time.compare.map = $findmap($1,$5) var %del.time.compare.name = $replace($5,$chr(95),$chr(32)) if (%del.time.compare.map == %del.time.compare.name) var %del.race.time = %del.time.compare.map else { mta.pm $1 $2 Error - Syntax: $3 <1-20> <full_map_name> mta.pm $1 $2 Replace character " " (space) with this "_" !! if ($5 != $null) mta.pm $1 $2 $5 isn't full_map_name } } if (%del.race.time != $null) { delete part of script } mta.pm $1 $2 Time $4 erased! } } } else mta.pm $1 $2 Error - parameter must by a number between 1-20! } else mta.pm $1 $2 Error - You must be level 7 to use this command. }
  14. elseif (($3 == !10del) || ($3 == !20del)) { if ($gus.level($1,$2) >= 7) { if (!$4) mta.pm $1 $2 Error - missing parameter! elseif ($4 isnum) { if ((0 > $4 ) || ($4 > 20)) mta.pm $1 $2 Error - parameter must by a number between 1-20! else { if (!$5) var %del.race.time = $mta.race($1) elseif ($5 != $null && $findmap($1,$5) == $replace($5,$chr(95),$chr(32))) var %del.race.time = $findmap($1,$5) else { mta.pm $1 $2 Error - Syntax: $3 <1-20> <full_map_name> mta.pm $1 $2 Replace character " " (space) with this "_" !! if ($5 != $null) mta.pm $1 $2 $5 isn't full_map_name } if (%del.race.time != $null) { part that delete time's mta.pm $1 $2 Time $4 erased! } } } else mta.pm $1 $2 Error - parameter must by a number between 1-20! } else mta.pm $1 $2 Error - You must be level 7 to use this command. } alias findmap { var %a = 0 var %b = $replace($2,$chr(95),$chr(32)) while (%a < $mta.races($1)) { if (%b == $mta.races($1,%a)) !return = $mta.races($1,%a) !inc %a } !return } and this not work ...
  15. hmm I think it help me ...
  16. I wrote script when I need, if it's working I don't change it ... I wrote because I need, not because I like to do this ... line 8 in script posted above but:
  17. viewtopic.php?f=30&t=19384
  18. I have script that delete time from TOP20 by you must by on the map, that you wont to delete time ... But now I need script that delete time form map I wont, not this which I play on. Script that I wrote, work: - !del OK Error - parameter must by a number between 1-20! - !del <1-20> OK Time $4 erased! - !10del <1-20> OK Error - Syntax: $3 <1-20> Replace character " " (space) with this "_" !! - !10del <1-20> Doesn't work! Do nothing! I need that only when you wrote full_name_of_map this script erase cheating time! elseif (($3 == !10del) || ($3 == !20del)) { if ($gus.level($1,$2) >= 7) { if (!$4) mta.pm $1 $2 Error - missing parameter! elseif ($4 isnum) { if ((0 > $4 ) || ($4 > 20)) mta.pm $1 $2 Error - parameter must by a number between 1-20! else { if (!$5) var %del.race.time = $mta.race($1) elseif ($5 != $null && $5 == $replace($readini($scriptdir $+ 1.ini,Races,$mta.races($1,$replace($5,$chr(95),$chr(32)))),$chr(32),$chr(95))) var %del.race.time = $readini($scriptdir $+ 1.ini,Races,$mta.races($1,$replace($5,$chr(95),$chr(32)))) else { mta.pm $1 $2 Error - Syntax: $3 <1-20> <full map name> mta.pm $1 $2 Replace character " " (space) with this "_" !! } if (%del.race.time != $null) { var %nick01 = $iif($readini($scriptdir $+ 10times.ini,NICK01,$replace(%del.race.time,$chr(32),-)),$v1,-1) var %nick02 = $iif($readini($scriptdir $+ 10times.ini,NICK02,$replace(%del.race.time,$chr(32),-)),$v1,-1) var %nick03 = $iif($readini($scriptdir $+ 10times.ini,NICK03,$replace(%del.race.time,$chr(32),-)),$v1,-1) var %nick04 = $iif($readini($scriptdir $+ 10times.ini,NICK04,$replace(%del.race.time,$chr(32),-)),$v1,-1) var %nick05 = $iif($readini($scriptdir $+ 10times.ini,NICK05,$replace(%del.race.time,$chr(32),-)),$v1,-1) var %nick06 = $iif($readini($scriptdir $+ 10times.ini,NICK06,$replace(%del.race.time,$chr(32),-)),$v1,-1) var %nick07 = $iif($readini($scriptdir $+ 10times.ini,NICK07,$replace(%del.race.time,$chr(32),-)),$v1,-1) var %nick08 = $iif($readini($scriptdir $+ 10times.ini,NICK08,$replace(%del.race.time,$chr(32),-)),$v1,-1) var %nick09 = $iif($readini($scriptdir $+ 10times.ini,NICK09,$replace(%del.race.time,$chr(32),-)),$v1,-1) var %nick10 = $iif($readini($scriptdir $+ 10times.ini,NICK10,$replace(%del.race.time,$chr(32),-)),$v1,-1) var %nick11 = $iif($readini($scriptdir $+ 10times.ini,NICK11,$replace(%del.race.time,$chr(32),-)),$v1,-1) var %nick12 = $iif($readini($scriptdir $+ 10times.ini,NICK12,$replace(%del.race.time,$chr(32),-)),$v1,-1) var %nick13 = $iif($readini($scriptdir $+ 10times.ini,NICK13,$replace(%del.race.time,$chr(32),-)),$v1,-1) var %nick14 = $iif($readini($scriptdir $+ 10times.ini,NICK14,$replace(%del.race.time,$chr(32),-)),$v1,-1) var %nick15 = $iif($readini($scriptdir $+ 10times.ini,NICK15,$replace(%del.race.time,$chr(32),-)),$v1,-1) var %nick16 = $iif($readini($scriptdir $+ 10times.ini,NICK16,$replace(%del.race.time,$chr(32),-)),$v1,-1) var %nick17 = $iif($readini($scriptdir $+ 10times.ini,NICK17,$replace(%del.race.time,$chr(32),-)),$v1,-1) var %nick18 = $iif($readini($scriptdir $+ 10times.ini,NICK18,$replace(%del.race.time,$chr(32),-)),$v1,-1) var %nick19 = $iif($readini($scriptdir $+ 10times.ini,NICK19,$replace(%del.race.time,$chr(32),-)),$v1,-1) var %nick20 = $iif($readini($scriptdir $+ 10times.ini,NICK20,$replace(%del.race.time,$chr(32),-)),$v1,-1) var %time01 = $iif($readini($scriptdir $+ 10times.ini,TOPT01,$replace(%del.race.time,$chr(32),-)),$v1,-1) var %time02 = $iif($readini($scriptdir $+ 10times.ini,TOPT02,$replace(%del.race.time,$chr(32),-)),$v1,-1) var %time03 = $iif($readini($scriptdir $+ 10times.ini,TOPT03,$replace(%del.race.time,$chr(32),-)),$v1,-1) var %time04 = $iif($readini($scriptdir $+ 10times.ini,TOPT04,$replace(%del.race.time,$chr(32),-)),$v1,-1) var %time05 = $iif($readini($scriptdir $+ 10times.ini,TOPT05,$replace(%del.race.time,$chr(32),-)),$v1,-1) var %time06 = $iif($readini($scriptdir $+ 10times.ini,TOPT06,$replace(%del.race.time,$chr(32),-)),$v1,-1) var %time07 = $iif($readini($scriptdir $+ 10times.ini,TOPT07,$replace(%del.race.time,$chr(32),-)),$v1,-1) var %time08 = $iif($readini($scriptdir $+ 10times.ini,TOPT08,$replace(%del.race.time,$chr(32),-)),$v1,-1) var %time09 = $iif($readini($scriptdir $+ 10times.ini,TOPT09,$replace(%del.race.time,$chr(32),-)),$v1,-1) var %time10 = $iif($readini($scriptdir $+ 10times.ini,TOPT10,$replace(%del.race.time,$chr(32),-)),$v1,-1) var %time11 = $iif($readini($scriptdir $+ 10times.ini,TOPT11,$replace(%del.race.time,$chr(32),-)),$v1,-1) var %time12 = $iif($readini($scriptdir $+ 10times.ini,TOPT12,$replace(%del.race.time,$chr(32),-)),$v1,-1) var %time13 = $iif($readini($scriptdir $+ 10times.ini,TOPT13,$replace(%del.race.time,$chr(32),-)),$v1,-1) var %time14 = $iif($readini($scriptdir $+ 10times.ini,TOPT14,$replace(%del.race.time,$chr(32),-)),$v1,-1) var %time15 = $iif($readini($scriptdir $+ 10times.ini,TOPT15,$replace(%del.race.time,$chr(32),-)),$v1,-1) var %time16 = $iif($readini($scriptdir $+ 10times.ini,TOPT16,$replace(%del.race.time,$chr(32),-)),$v1,-1) var %time17 = $iif($readini($scriptdir $+ 10times.ini,TOPT17,$replace(%del.race.time,$chr(32),-)),$v1,-1) var %time18 = $iif($readini($scriptdir $+ 10times.ini,TOPT18,$replace(%del.race.time,$chr(32),-)),$v1,-1) var %time19 = $iif($readini($scriptdir $+ 10times.ini,TOPT19,$replace(%del.race.time,$chr(32),-)),$v1,-1) var %time20 = $iif($readini($scriptdir $+ 10times.ini,TOPT20,$replace(%del.race.time,$chr(32),-)),$v1,-1) if ($4 == 1) { %nick01 = %nick02 %time01 = %time02 !writeini -n " $+ $scriptdir $+ 10times.ini" TOPT01 $replace(%del.race.time,$chr(32),-) %time01 !writeini -n " $+ $scriptdir $+ 10times.ini" NICK01 $replace(%del.race.time,$chr(32),-) %nick01 } if ($4 <= 2) { %nick02 = %nick03 %time02 = %time03 !writeini -n " $+ $scriptdir $+ 10times.ini" TOPT02 $replace(%del.race.time,$chr(32),-) %time02 !writeini -n " $+ $scriptdir $+ 10times.ini" NICK02 $replace(%del.race.time,$chr(32),-) %nick02 } if ($4 <= 3) { %nick03 = %nick04 %time03 = %time04 !writeini -n " $+ $scriptdir $+ 10times.ini" TOPT03 $replace(%del.race.time,$chr(32),-) %time03 !writeini -n " $+ $scriptdir $+ 10times.ini" NICK03 $replace(%del.race.time,$chr(32),-) %nick03 } if ($4 <= 4) { %nick04 = %nick05 %time04 = %time05 !writeini -n " $+ $scriptdir $+ 10times.ini" TOPT04 $replace(%del.race.time,$chr(32),-) %time04 !writeini -n " $+ $scriptdir $+ 10times.ini" NICK04 $replace(%del.race.time,$chr(32),-) %nick04 } if ($4 <= 5) { %nick05 = %nick06 %time05 = %time06 !writeini -n " $+ $scriptdir $+ 10times.ini" TOPT05 $replace(%del.race.time,$chr(32),-) %time05 !writeini -n " $+ $scriptdir $+ 10times.ini" NICK05 $replace(%del.race.time,$chr(32),-) %nick05 } if ($4 <= 6) { %nick06 = %nick07 %time06 = %time07 !writeini -n " $+ $scriptdir $+ 10times.ini" TOPT06 $replace(%del.race.time,$chr(32),-) %time06 !writeini -n " $+ $scriptdir $+ 10times.ini" NICK06 $replace(%del.race.time,$chr(32),-) %nick06 } if ($4 <= 7) { %nick07 = %nick08 %time07 = %time08 !writeini -n " $+ $scriptdir $+ 10times.ini" TOPT07 $replace(%del.race.time,$chr(32),-) %time07 !writeini -n " $+ $scriptdir $+ 10times.ini" NICK07 $replace(%del.race.time,$chr(32),-) %nick07 } if ($4 <= { %nick08 = %nick09 %time08 = %time09 !writeini -n " $+ $scriptdir $+ 10times.ini" TOPT08 $replace(%del.race.time,$chr(32),-) %time08 !writeini -n " $+ $scriptdir $+ 10times.ini" NICK08 $replace(%del.race.time,$chr(32),-) %nick08 } if ($4 <= 9) { %nick09 = %nick10 %time09 = %time10 !writeini -n " $+ $scriptdir $+ 10times.ini" TOPT09 $replace(%del.race.time,$chr(32),-) %time09 !writeini -n " $+ $scriptdir $+ 10times.ini" NICK09 $replace(%del.race.time,$chr(32),-) %nick09 } if ($4 <= 10) { %nick10 = %nick11 %time10 = %time11 !writeini -n " $+ $scriptdir $+ 10times.ini" TOPT10 $replace(%del.race.time,$chr(32),-) %time10 !writeini -n " $+ $scriptdir $+ 10times.ini" NICK10 $replace(%del.race.time,$chr(32),-) %nick10 } if ($4 <= 11) { %nick11 = %nick12 %time11 = %time12 !writeini -n " $+ $scriptdir $+ 10times.ini" TOPT11 $replace(%del.race.time,$chr(32),-) %time11 !writeini -n " $+ $scriptdir $+ 10times.ini" NICK11 $replace(%del.race.time,$chr(32),-) %nick11 } if ($4 <= 12) { %nick12 = %nick13 %time12 = %time13 !writeini -n " $+ $scriptdir $+ 10times.ini" TOPT12 $replace(%del.race.time,$chr(32),-) %time12 !writeini -n " $+ $scriptdir $+ 10times.ini" NICK12 $replace(%del.race.time,$chr(32),-) %nick12 } if ($4 <= 13) { %nick13 = %nick14 %time13 = %time14 !writeini -n " $+ $scriptdir $+ 10times.ini" TOPT13 $replace(%del.race.time,$chr(32),-) %time13 !writeini -n " $+ $scriptdir $+ 10times.ini" NICK13 $replace(%del.race.time,$chr(32),-) %nick13 } if ($4 <= 14) { %nick14 = %nick15 %time14 = %time15 !writeini -n " $+ $scriptdir $+ 10times.ini" TOPT14 $replace(%del.race.time,$chr(32),-) %time14 !writeini -n " $+ $scriptdir $+ 10times.ini" NICK14 $replace(%del.race.time,$chr(32),-) %nick14 } if ($4 <= 15) { %nick15 = %nick16 %time15 = %time16 !writeini -n " $+ $scriptdir $+ 10times.ini" TOPT15 $replace(%del.race.time,$chr(32),-) %time15 !writeini -n " $+ $scriptdir $+ 10times.ini" NICK15 $replace(%del.race.time,$chr(32),-) %nick15 } if ($4 <= 16) { %nick16 = %nick17 %time16 = %time17 !writeini -n " $+ $scriptdir $+ 10times.ini" TOPT16 $replace(%del.race.time,$chr(32),-) %time16 !writeini -n " $+ $scriptdir $+ 10times.ini" NICK16 $replace(%del.race.time,$chr(32),-) %nick16 } if ($4 <= 17) { %nick17 = %nick18 %time17 = %time18 !writeini -n " $+ $scriptdir $+ 10times.ini" TOPT17 $replace(%del.race.time,$chr(32),-) %time17 !writeini -n " $+ $scriptdir $+ 10times.ini" NICK17 $replace(%del.race.time,$chr(32),-) %nick17 } if ($4 <= 18) { %nick18 = %nick19 %time18 = %time19 !writeini -n " $+ $scriptdir $+ 10times.ini" TOPT18 $replace(%del.race.time,$chr(32),-) %time18 !writeini -n " $+ $scriptdir $+ 10times.ini" NICK18 $replace(%del.race.time,$chr(32),-) %nick18 } if ($4 <= 19) { %nick19 = %nick20 %time19 = %time20 !writeini -n " $+ $scriptdir $+ 10times.ini" TOPT19 $replace(%del.race.time,$chr(32),-) %time19 !writeini -n " $+ $scriptdir $+ 10times.ini" NICK19 $replace(%del.race.time,$chr(32),-) %nick19 } if ($4 <= 20) { %nick20 = -1 %time20 = -1 !writeini -n " $+ $scriptdir $+ 10times.ini" TOPT20 $replace(%del.race.time,$chr(32),-) %time20 !writeini -n " $+ $scriptdir $+ 10times.ini" NICK20 $replace(%del.race.time,$chr(32),-) %nick20 } mta.pm $1 $2 Time $4 erased! } } } else mta.pm $1 $2 Error - parameter must by a number between 1-20! } else mta.pm $1 $2 Error - You must be level 7 to use this command. }
  19. I post the same sugestion 3 month's ago: http://forum.mtavc.com/viewtopic.php?t=19370
  20. As many of you have own server and points or cash script? As many of you wait on end of race that someone else could earn some points / cash? As many of you want to have pasibility to change time from fihish first player to end race? 1. 2paq 2. deter (he post that want) 3. ...
  21. Sorry I can't edit my post's ... Edit: It's look like that $findtok doesn't check more then 10 parameters ... When Code: %time01 - %time10 are != -1 $findtok return $null
  22. what is wrong witch this?? else { mta.text $1 $mta.nick($1,%a) on $mta.race($1) doesn't have time in TOP20 var %lasttime = $findtok(%time01 %time02 %time03 %time04 %time05 %time06 %time07 %time08 %time09 %time10 %time11 %time12 %time13 %time14 %time15 %time16 %time17 %time18 %time19 %time20,-1,1,32) if (%lasttime == $null) mta.text $1 Last time in TOP20 on map $mta.race($1) $+ : %time20mins $+ mins %time20sec $+ sec %time20ms $+ ms elseif (%lasttime == 1) mta.text $1 NO Best Time on map $mta.race($1) $+ ! else mta.text $1 On the list are only $calc(%lasttime - 1) $+ /20 top time's } It's look like that $findtok doesn't check more then 10 parameters ... When %time01 - %time02 are != -1 $findtok return $null
  23. You have problem with read and understand what you had been read?? I say that this is the bug: You won the race - you are last player alive <-- more read in my first post This is only what I want (sugestion), not for my becouse in 95% races I won - I need this for people that playing on my serwer! Wait for end race - more than 30 second Play with my on my server and we will see who come last zion, you fink only your self - you don't fit (match) to my serwer ...
  24. I need anti-cheat which verify only handling.cfg when someone connect to serwer!! Nothing more!!
  25. Yesterady to idiot had been spaming on my serwer and I wrote this: on *:SIGNAL:mta.command: { spam.check $1 $2 } on *:SIGNAL:mta.text: { spam.check $1 $2 } alias spam.check { var %spam = $iif($readini($scriptdir $+ spamtemp.ini,SPAM,$mta.nick($1,$2)),$v1,0) if (%spam > 10) { mta.mute $1 $2 $+(!.timer.spam.pm,$2) 1 5 mta.pm $1 $2 WARNING - DO NO SPAM (MUTE 180s) $+(!.timer.spam.attack,$2) 1 180 spam.errase $1 $2 } !writeini -n " $+ $scriptdir $+ spamtemp.ini" SPAM $mta.nick($1,$2) $iif($readini($scriptdir $+ spamtemp.ini,SPAM,$mta.nick($1,$2)),$calc($v1 + 1),1) $+(!.timer.spam.check,$2) 1 2 !writeini -n " $+ $scriptdir $+ spamtemp.ini" SPAM $mta.nick($1,$2) $iif($readini($scriptdir $+ spamtemp.ini,SPAM,$mta.nick($1,$2)),$calc($v1 - 1),0) } alias spam.errase { mta.unmute $1 $2 !writeini -n " $+ $scriptdir $+ spamtemp.ini" SPAM $mta.nick($1,$2) $iif($readini($scriptdir $+ spamtemp.ini,SPAM,$mta.nick($1,$2)),0,0) } It work similary as Sc00bY script but a litle difrent Edit: This works better but sometime in mIRC say: * /writeini: insufficient parameters (line 25, spamattack.mrc) This is the line (midle): alias spam.dec { !writeini -n " $+ $scriptdir $+ spamtemp.ini" SPAM $mta.nick($1,$2) $iif($readini($scriptdir $+ spamtemp.ini,SPAM,$mta.nick($1,$2)),$calc($v1 - 1),0) } This is all code: on *:SIGNAL:mta.command: { spam.check $1 $2 } on *:SIGNAL:mta.text: { spam.check $1 $2 } on *:SIGNAL:mta.part: { !writeini -n " $+ $scriptdir $+ spamtemp.ini" SPAM $mta.nick($1,$2) 0 } alias spam.check { var %spam = $iif($readini($scriptdir $+ spamtemp.ini,SPAM,$mta.nick($1,$2)),$v1,0) if (%spam > 10) { mta.mute $1 $2 $+(!.timer.spam.pm,$2) 1 5 mta.pm $1 $2 WARNING - DO NO SPAM (MUTE 180s) $+(!.timer.spam.attack,$2) 1 180 spam.errase $1 $2 } !writeini -n " $+ $scriptdir $+ spamtemp.ini" SPAM $mta.nick($1,$2) $iif($readini($scriptdir $+ spamtemp.ini,SPAM,$mta.nick($1,$2)),$calc($v1 + 1),1) $+(!.timer.spam.check,$2,$rand(1,99)) 1 2 spam.dec $1 $2 } alias spam.errase { mta.unmute $1 $2 !writeini -n " $+ $scriptdir $+ spamtemp.ini" SPAM $mta.nick($1,$2) $iif($readini($scriptdir $+ spamtemp.ini,SPAM,$mta.nick($1,$2)),0,0) } alias spam.dec { !writeini -n " $+ $scriptdir $+ spamtemp.ini" SPAM $mta.nick($1,$2) $iif($readini($scriptdir $+ spamtemp.ini,SPAM,$mta.nick($1,$2)),$calc($v1 - 1),0) }
×
×
  • Create New...