Jump to content

Help doing !resetstat


Guest [L4T]Flores

Recommended Posts

Posted

I tried to do the !resetstat. :( but I cannot do that script erase or not stats after the answer is !yes or !no.

Pls help me :cry:

Posted
:( I use the kills and death ini files in the grs directory . Spacibo :D
Posted (edited)

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

coz_sig_oob.png

Server Blog | Server quickinfo

STFU and dont bug the mta team with ''when is DM comming''

or risk theyre spending more time explaining they're still working on DM than actually getting work done :shock:

Posted

ehm lol i know manually i can. but i wanted a script :S

Posted

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

Do not PM me, im not going to read it anyway.

  • Recently Browsing   0 members

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