Jump to content

kheelo

Members
  • Posts

    62
  • Joined

  • Last visited

Everything posted by kheelo

  1. kheelo

    toplist

    the top5 version also mixes up names so can u plz look through ur script just to make sure it ok. thx.
  2. kheelo

    toplist

    it shows 4 and 5 th but doesent show second .-.- edit: there is something wrong with this script. points.ini: [POINTS] OneManArmy|DmA=7 DarDevil(Rus)=2.4 ~RevC~puuks=8 Ristov=2 Player=1 random_noob=4 testing_noob1=20 testing_noob2=19 testing_noob3=18 testing_noob4=17 testing_noob5=16 Sancop=2 it showed 1. 3. 4. and 5. before now it shows 1. 2. 3. and 4. edit2:the first script with top 3 works correctly but the top 5 script has errors in list and it skips one or two places.
  3. kheelo

    toplist

    nice but what i need to add to get top 5? or the script gets too long? anyway thx alot man!
  4. kheelo

    toplist

    ($scriptdir $+ points.ini,POINTS) now there are names and points like that: name = points So can someone please make me script that reads 3 or 5 best players from points.ini and show them on server when someone types !rank ? or atleast give me some hints thx.
  5. i dont think that will read points.ini and post top 5 players from there =/
  6. kheelo

    Multiplication

    thx alot it works fine now ^^
  7. kheelo

    Multiplication

    on *:SIGNAL:mta.finish: { var %rank = $mta.rank($1,$2) if (%rank == 1) { mta.text $1 $mta.nick($1,$2) finished first, points earned: 1 * $mta.server($1).players !writeini -n " $+ $scriptdir $+ points.ini" POINTS $mta.nick($1,$2) $calc($iif($readini($scriptdir $+ points.ini,POINTS,$mta.nick($1,$2)),$readini($scriptdir $+ points.ini,POINTS,$mta.nick($1,$2)),0) + 1 * $mta.server($1).players) } How to make it work so it multiplies 1 * number of players? edit:acutally it saves points correctly but if i win it tells : kheelo finished first, points earned: 1 * $mta.server($1).players =/
  8. just incase: http://img53.imageshack.us/img53/6311/pointsme3.jpg
  9. when i type !rank it displays rank name of mine. but i need it to display top 5 players and points behind names like so: i type !toplist it shows: 1.[playername] - [points] 2.[playername] - [points] 3.[playername] - [points] 4.[playername] - [points] 5.[playername] - [points] thx in advance ^^
  10. on *:SIGNAL:mta.finish: { var %rank = $mta.rank($1,$2) if (%rank == 1) { mta.text $1 $mta.nick($1,$2) finished first, points earned: 10 !writeini -n " $+ $scriptdir $+ points.ini" POINTS $mta.nick($1,$2) $calc($iif($readini($scriptdir $+ points.ini,POINTS,$mta.nick($1,$2)),$readini($scriptdir $+ points.ini,POINTS,$mta.nick($1,$2)),0) + 10) } elseif (%rank == 2) { mta.text $1 $mta.nick($1,$2) finished second, points earned: 8 !writeini -n " $+ $scriptdir $+ points.ini" POINTS $mta.nick($1,$2) $calc($iif($readini($scriptdir $+ points.ini,POINTS,$mta.nick($1,$2)),$readini($scriptdir $+ points.ini,POINTS,$mta.nick($1,$2)),0) + } elseif (%rank == 3) { mta.text $1 $mta.nick($1,$2) finished third, points earned: 6 !writeini -n " $+ $scriptdir $+ points.ini" POINTS $mta.nick($1,$2) $calc($iif($readini($scriptdir $+ points.ini,POINTS,$mta.nick($1,$2)),$readini($scriptdir $+ points.ini,POINTS,$mta.nick($1,$2)),0) + 6) } elseif (%rank == 4) { mta.text $1 $mta.nick($1,$2) finished fourth, points earned: 5 !writeini -n " $+ $scriptdir $+ points.ini" POINTS $mta.nick($1,$2) $calc($iif($readini($scriptdir $+ points.ini,POINTS,$mta.nick($1,$2)),$readini($scriptdir $+ points.ini,POINTS,$mta.nick($1,$2)),0) + 4) } elseif (%rank == 5) { mta.text $1 $mta.nick($1,$2) finished fifth, points earned: 4 !writeini -n " $+ $scriptdir $+ points.ini" POINTS $mta.nick($1,$2) $calc($iif($readini($scriptdir $+ points.ini,POINTS,$mta.nick($1,$2)),$readini($scriptdir $+ points.ini,POINTS,$mta.nick($1,$2)),0) + 3) } } on *:SIGNAL:mta.join: { if ($readini($scriptdir $+ points.ini,POINTS,$mta.nick($1,$2)) >= 1000) mta.text $1 $mta.nick($1,$2) has the title of Ultimate User! elseif ($readini($scriptdir $+ points.ini,POINTS,$mta.nick($1,$2)) >= 20000) mta.text $1 $mta.nick($1,$2) has racing level 20! elseif ($readini($scriptdir $+ points.ini,POINTS,$mta.nick($1,$2)) >= 18000) mta.text $1 $mta.nick($1,$2) has racing level 19! elseif ($readini($scriptdir $+ points.ini,POINTS,$mta.nick($1,$2)) >= 16000) mta.text $1 $mta.nick($1,$2) has racing level 18! elseif ($readini($scriptdir $+ points.ini,POINTS,$mta.nick($1,$2)) >= 14000) mta.text $1 $mta.nick($1,$2) has racing level 17! elseif ($readini($scriptdir $+ points.ini,POINTS,$mta.nick($1,$2)) >= 12000) mta.text $1 $mta.nick($1,$2) has racing level 16! elseif ($readini($scriptdir $+ points.ini,POINTS,$mta.nick($1,$2)) >= 10000) mta.text $1 $mta.nick($1,$2) has racing level 15! elseif ($readini($scriptdir $+ points.ini,POINTS,$mta.nick($1,$2)) >= 8000) mta.text $1 $mta.nick($1,$2) has racing level 14! elseif ($readini($scriptdir $+ points.ini,POINTS,$mta.nick($1,$2)) >= 6000) mta.text $1 $mta.nick($1,$2) has racing level 13! elseif ($readini($scriptdir $+ points.ini,POINTS,$mta.nick($1,$2)) >= 4000) mta.text $1 $mta.nick($1,$2) has racing level 12! elseif ($readini($scriptdir $+ points.ini,POINTS,$mta.nick($1,$2)) >= 2000) mta.text $1 $mta.nick($1,$2) has racing level 11! elseif ($readini($scriptdir $+ points.ini,POINTS,$mta.nick($1,$2)) >= 1400) mta.text $1 $mta.nick($1,$2) has racing level 10! elseif ($readini($scriptdir $+ points.ini,POINTS,$mta.nick($1,$2)) >= 900) mta.text $1 $mta.nick($1,$2) has racing level 9! elseif ($readini($scriptdir $+ points.ini,POINTS,$mta.nick($1,$2)) >= 600) mta.text $1 $mta.nick($1,$2) has racing level 8! elseif ($readini($scriptdir $+ points.ini,POINTS,$mta.nick($1,$2)) >= 400) mta.text $1 $mta.nick($1,$2) has racing level 7! elseif ($readini($scriptdir $+ points.ini,POINTS,$mta.nick($1,$2)) >= 250) mta.text $1 $mta.nick($1,$2) has racing level 6! elseif ($readini($scriptdir $+ points.ini,POINTS,$mta.nick($1,$2)) >= 150) mta.text $1 $mta.nick($1,$2) has racing level 5! elseif ($readini($scriptdir $+ points.ini,POINTS,$mta.nick($1,$2)) >= 100) mta.text $1 $mta.nick($1,$2) has racing level 4! elseif ($readini($scriptdir $+ points.ini,POINTS,$mta.nick($1,$2)) >= 60) mta.text $1 $mta.nick($1,$2) has racing level 3! elseif ($readini($scriptdir $+ points.ini,POINTS,$mta.nick($1,$2)) >= 25) mta.text $1 $mta.nick($1,$2) has racing level 2! elseif ($readini($scriptdir $+ points.ini,POINTS,$mta.nick($1,$2)) >= 1) mta.text $1 $mta.nick($1,$2) has racing level 1! else mta.text $1 $mta.nick($1,$2) has no rank! } 1. so how can i make it say level up? example: i get 60 points and it says :kheelo has now racing level 3 2. how to add command !toplist so it shows top 5 points from points.ini file
  11. kheelo

    Trivia Bot

    is there any way i can make trivia bot post questions on my mta server and make it read answers from there too ^^
×
×
  • Create New...