Guest Posted October 7, 2006 Posted October 7, 2006 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
lil Toady Posted October 7, 2006 Posted October 7, 2006 if you tell me where and how you store stats i can do that....
Guest Posted October 7, 2006 Posted October 7, 2006 I use the kills and death ini files in the grs directory . Spacibo
CoZ Posted October 7, 2006 Posted October 7, 2006 (edited) tried deleting the ini files manually lol edit 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 ) Edited October 8, 2006 by Guest
Guest Posted October 7, 2006 Posted October 7, 2006 ehm lol i know manually i can. but i wanted a script
lil Toady Posted October 7, 2006 Posted October 7, 2006 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 you need to remove kills/deaths in diff inis, and the same kills/deaths in diff hashtables
Recommended Posts