Guest Posted October 31, 2006 Share Posted October 31, 2006 Hello! I wanted to write a script, that give these Guy points, that live as the last in a Deathmatch. But how i can find out, if a map is a Deathmatch? I have to read the map, if the -Tagg is set on 'none', or is there an other way? Here my Code, to give the points: on *:SIGNAL:mta.death:{ !writeini -n $+(",$scriptdir,death.ini") DEAD $mta.nick($1,$2) 1 var %counter = 0 var %spieler = $calc($mta.server($1).players - 1) var %lebende = 0 while (%counter <= %spieler) { if ($readini($scriptdir $+ death.ini,DEAD,$mta.nick($1,%counter)) == 0) { !inc %lebende var %letzter = $mta.nick($1,%counter) } !inc %counter } if (%lebende == 1) { mta.text $1 Letzter Lebender: %letzter bekommt 10 Punkte !writeini -n " $+ $scriptdir $+ points.ini" POINTS %letzter $calc($iif($readini($scriptdir $+ points.ini,POINTS,%letzter),$readini($scriptdir $+ points.ini,POINTS,%letzter),0) + 10) mta.text $1 %letzter hat jetzt $readini($scriptdir $+ points.ini,POINTS,%letzter) Punkte! } } on *:SIGNAL:mta.respawn:{ if ($2 <= $mta.server($1).players) !writeini -n $+(",$scriptdir,death.ini") DEAD $mta.nick($1,$2) 0 } on *:SIGNAL:mta.startrace: { if ($2 <= $mta.server($1).players) !writeini -n $+(",$scriptdir,death.ini") DEAD $mta.nick($1,$2) 0 } ^^ Its my first Script, i have wrote! I need much help!! BR Nine-Ball Link to comment
Recommended Posts