Jump to content

Mania-92

Members
  • Content Count

    22
  • Joined

  • Last visited

Community Reputation

0 Neutral

About Mania-92

  • Rank
    Civilian
  1. Mania-92

    Trivia Bot

    It is easy to make actually.
  2. Mania-92

    im lost

    i have v 6.16 i think mIRC Try this: on *:SIGNAL:mta.join:{ ;Parameters: ;$1 = Server ;$2 = ID ;$3 = Command ;$4- = Parameters mta.say $1 Events: %mta.event. [ $+ [ $1 ] ] }
  3. on *:SIGNAL:mta.command: { if ($3 == !alarm) { if (($mta.vehicle($1,$2).name == foot) || ($mta.vehicle($1,$2).name == Unknown)) mta.msg $1 $2 Error - you need to be in a car elseif ($4 == on) { mta.say $1 Alarm Activated !writeini " $+ $scriptdir $+ alarm.ini" alarm $mta.vehicle($1,$2) on } elseif ($4 == off) { mta.say $1 Alarm DeActivated !writeini " $+ $scriptdir $+ alarm.ini" alarm $mta.vehicle($1,$2) off } } } on *:SIGNAL:mta.enter:{ if ($readini($scriptdir $+ alarm.ini,alarm,$mta.vehicle($1,$2)) == on) { mta.msg $1 $2 You got 5 seconds to get out o
  4. If it isn't done tomorrow around 3 o clock GMT +1 I will do it. on *:SIGNAL:mta.finish: { ;Parameters: ;$1 = Server ;$2 = ID var %rank = $mta.rank($1,$2) if (%rank == 1) { mta.text $1 $mta.nick($1,$2) came first, points earned: 5 !writeini -n " $+ $scriptdir $+ points.ini" POINTS $mta.ip($1,$2) $calc($iif($readini($scriptdir $+ points.ini,POINTS,$mta.ip($1,$2)),$readini($scriptdir $+ points.ini,POINTS,$mta.ip($1,$2)),0) + 5) } elseif (%rank == 2) { mta.text $1 $mta.nick($1,$2) came second, points earned: 4 !writeini -n " $+ $scriptdir $+ points.ini" POINTS $mta.ip($1,$
  5. It might read entry number 451, try forcing it as a text with the 't'-switch, (/help $readini) Sorry what is the t-switch? Do you mean: if ($readini($scriptdir $+ vehicle.ini,VEHICLES,%a) == 1) { mta text $1 $mta.vehicle($1,$2) }
  6. Mania-92

    lastvisit

    Probably something like this: on *:SIGNAL:mta.disconnect:command: { ;Parameters: ;$1 = Server ;$2- = Reason var %time = $mta.time($1) !writeini -n " $+ $scriptdir $+ last.ini" LASTVISIT $mta.ip($1,$2) %time } on *:SIGNAL:mta.join:command: { ;Parameters: ;$1 = Server ;$2 = PlayerID mta.text $1 Last visit on $+ : $iif($readini($scriptdir $+ last.ini,LASTVISIT,$mta.ip($1,$2)),$readini($scriptdir $+ last.ini,LASTVISIT,$mta.ip($1,$2)),Not Found) } Or something similair, but i don't know if mta.time is ingame or outgame time.
  7. It might read entry number 451, try forcing it as a text with the 't'-switch, (/help $readini) Sorry what is the t-switch?
  8. var %a = $mta.vehicle($1,$2) if ($readini($scriptdir $+ vehicle.ini,VEHICLES,%a) == 1) { [VEHICLES] 451=1 And when in bullet (id 451 isn't it?) nothing happens. Under the if command there is a mta.text command.
  9. Why doesn't it work with me than.
  10. If for example joke 5 is the last one, it sticks on joke 5 isn't it?
  11. Where i need to put the mops in that code? PS, anyway thanx.
  12. I want on !mop to show a mop 1/5. But not on the same time for example: Test: !mop Admin: mop 1 Test1: !mop Admin: mop 2 Enz.
  13. I have a problem with my script. On !mop there is no mop1 but mop 1 till 5. if ($3 == !mop) { if ($readini($scriptdir $+ mop.ini,MOPS,1) == 1) { mta.text $1 mop 1 !writeini -n " $+ $scriptdir $+ mop.ini" MOPS 1 2 } else if ($readini($scriptdir $+ mop.ini,MOPS,2) == 1) { mta.text $1 mop 2 !writeini -n " $+ $scriptdir $+ mop.ini" MOPS 2 2 } else if ($readini($scriptdir $+ mop.ini,MOPS,3) == 1) { mta.text $1 mop 3 !writeini -n " $+ $scriptdir $+ mop.ini" MOPS 3 2 } else if ($readini($scrip
  14. !players still doesn't work.
×
×
  • Create New...