Jump to content

Help doing !resetstat


Guest [L4T]Flores

Recommended Posts

tried deleting the ini files manually :D lol

edit :o sorry , i first thought you wanted to reset ALL the stats

(i cant find a reason why a player should be able to reset his stats so i didnt consider is as question :o:D )

Edited by Guest
Link to comment

on *:SIGNAL:mta.command:{
 if ($3 == !resetstats) {
   set %resetstats [ $+ [ $1 ] $+ [ $2 ] ] 1
   $+(.timer,reset,$mta.name($1,$2)) 1 30 reset.fail $1 $2
   mta.say $1 $mta.name($1,$2) $+ , you really want to reset your stats? Type !yes/!no
 }
 elseif (%resetstats [ $+ [ $1 ] $+ [ $2 ] ]) {
   if ($3 == !yes) {
     unset %resetstats [ $+ [ $1 ] $+ [ $2 ] ]
     mta.say $1 $mta.name($1,$2) $+ , your stats removed.
     !hdel kills $mta.name($1,$2)
     !hdel deaths $mta.name($1,$2)
     !remini " $+ $grs.dir $+ mta.kills.ini" hashtable $mta.name($1,$2)
     !remini " $+ $grs.dir $+ mta.deaths.ini" hashtable $mta.name($1,$2)
   }
   elseif ($3 == !no) reset.fail $1 $2
 }
}
alias reset.fail {
 unset %resetstats [ $+ [ $1 ] $+ [ $2 ] ]
 mta.say $1 $mta.name($1,$2) $+ , your stats haven't been reset
}

and it will take long to reset stats in GRS manualy :P you need to remove kills/deaths in diff inis, and the same kills/deaths in diff hashtables

Link to comment
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...