Jump to content

MTAMA Scripting


Si|ent

Recommended Posts

  • Replies 1.3k
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

dan, THINK about what you are writing, and LOOK at it once you've written it. There dont actually need to be ANY brackets or braces in that statement, it can be just how i wrote it, but in yours there is clearly one too many (

Link to comment

Ok guys, i want your thoughts on this. As Harry said, it would be a wise idea to have a seperate forum/site on just the scripts. I am prepared to do this with hosting it on my computer. The host is on about 23 hours a day. Now if I am to go ahead with this i need about 5-6 helpers. If you would like to help out then post in here. Thanks.

BTW :: Please post your thoughts on whether it should be site/forum if it does go ahead.. :P

Personally i think site would be better because the login/register script is completely mashed on my host, so i think website is better.

Link to comment

I think a website like that sould have 24/7 hosting.. 23 h/day is nice, but i know several ways to provide 24/7 hosting...

Furthermore, this is only one topic.. why do you need 5 or 6 helpers??? Just give Aeron a forum, let oli and some other guy be admins and all problems can be solved.... Why choosing the hard way?

Link to comment
Ok guys, i want your thoughts on this. As Harry said, it would be a wise idea to have a seperate forum/site on just the scripts. I am prepared to do this with hosting it on my computer. The host is on about 23 hours a day. Now if I am to go ahead with this i need about 5-6 helpers. If you would like to help out then post in here. Thanks.

BTW :: Please post your thoughts on whether it should be site/forum if it does go ahead.. :P

Personally i think site would be better because the login/register script is completely mashed on my host, so i think website is better.

PNphpbb is the way to go, post nuke

*drools

Link to comment
I think a website like that sould have 24/7 hosting.. 23 h/day is nice, but i know several ways to provide 24/7 hosting...

Furthermore, this is only one topic.. why do you need 5 or 6 helpers??? Just give Aeron a forum, let oli and some other guy be admins and all problems can be solved.... Why choosing the hard way?

i offered 24/7 hosting, and i still do, i can set up a forum and give aeron, oli admin rights and whoever else you think should have admin

i dont need helpers to set up the site, just moderators once it is set up. but if you want to help your more than welcome.

can i also point out, this is web hosting that i pay for so your not getting some doddgy connection to a doddgy server

Link to comment
I think a website like that sould have 24/7 hosting.. 23 h/day is nice, but i know several ways to provide 24/7 hosting...

Furthermore, this is only one topic.. why do you need 5 or 6 helpers??? Just give Aeron a forum, let oli and some other guy be admins and all problems can be solved.... Why choosing the hard way?

i offered 24/7 hosting, and i still do, i can set up a forum and give aeron, oli admin rights and whoever else you think should have admin

i dont need helpers to set up the site, just moderators once it is set up. but if you want to help your more than welcome.

can i also point out, this is web hosting that i pay for so your not getting some doddgy connection to a doddgy server

im free to get for a mod job :)

Link to comment

i decided to use post nuke with a forum module, the pnphpbb2 module seems to be the best out there at the moment but if you know better please tell me.

i have also started adding a 'archive' module, so all the scripts like votekick etc can be in there and found easily.

Link to comment

HM.. I don't like to have my scripts posted on someone else's server, mainly because i like to see how many times it is downloaded. That's why i never posted my complete script in this thread... I will place it on my server soon

Link to comment
ok so im a huge noob, I read all this shit and stole a code posted here to get the countdown working, and it does, I tried to modify the code so that if I typed !rules it would list the rules, but its not seaming to work.

I cut out part of the script, its right under the countdown that does work.

  } 

 if (!count* iswm $3) { 
   mta.say $1 Countdown! 
   .timerc1 1 1 mta.say $1 5 
   .timerc2 1 2 mta.say $1 4 
   .timerc3 1 3 mta.say $1 3 
   .timerc4 1 4 mta.say $1 2 
   .timerc5 1 5 mta.say $1 1 
   .timerc6 1 6 mta.say $1 GO GO GO! 
 } 

 if (!rules* iswm $3) { 
   mta.say $1 Rules 
   .timerc1 1 1 mta.say $1 No Killing
   .timerc2 1 2 mta.say $1 No Jacking
   .timerc3 1 3 mta.say $1 Dont Be an Ass
   .timerc4 1 4 mta.say $1 Have Fun
   .timerc5 1 5 mta.say $1 Mod all you want

 } 

shouldnt that work?

Ok this is simple and im a noob...

alias mta.text {
  if (!count* iswm $3) { 
   mta.say $1 Countdown! 
   .timerc1 1 1 mta.say $1 5 
   .timerc2 1 2 mta.say $1 4 
   .timerc3 1 3 mta.say $1 3 
   .timerc4 1 4 mta.say $1 2 
   .timerc5 1 5 mta.say $1 1 
   .timerc6 1 6 mta.say $1 GO GO GO! 
 } 
 if (!rules* iswm $3) { 
   mta.say $1 Rules 
   .timerc1 1 1 mta.say $1 No Killing 
   .timerc2 1 2 mta.say $1 No Jacking 
   .timerc3 1 3 mta.say $1 Dont Be an Ass 
   .timerc4 1 4 mta.say $1 Have Fun 
   .timerc5 1 5 mta.say $1 Mod all you want 
}

Hope it works :P it did for me!

Link to comment
does somebody has a complete script for me ?

whith the following fucntions :

- !stats

- !admin

- !info

- !votekick

- !ping

- !kick

kind regards

Ok, here ya go..

alias mta.text {
 if (!admin isin $3-) { 
   mta.say $1 The admin has been alerted. Please be patient 
   /run c:\mp3/mp3.mp3
 }
 if ($3 == !info) {
  mta.say $1 Your message
 }
 if (!stats == $3) { 
     mta.say $1 Name: $mta.name($1,$2) - ID: $2 - Ping: $mta.ping($1,$2) - Kills: $mta.kills($1,$2) - Deaths: $mta.deaths($1,$2) - Online: $duration($mta.online($1,$2)) - Status: $iif($mta.game($1,$2) == 1,Out Game,In Game)
 }
 if ($3 == !ping) {
   mta.say $1 $mta.name($1,$2) your ping is: $mta.ping($1,$2)
 }
 if ($3 == !votekick) {
   if (%vote.nick. [ $+ [ $1 ] ] == $null) {
     if ($ini($+(",$scriptdir,$1,.ini"),ID $+ $4)) {
       set %vote.nick. [ $+ [ $1 ] ] $4
       set %vote.voters. [ $+ [ $1 ] ] $null
       mta.say $1 Votekick "!vote" if u want that $mta.name($1,$4) shall be kicked. [ $calc($left($did(mta,$1 $+ 21),2) / 2) votes needed][30 sec]
       .timervote [ $+ [ $1 ] ] 1 30 mta.vote $1
     }
     else mta.say $1 Give up an existing ID-number: "!votekick "
   }
   else mta.say $1 Another votekick is running: $mta.name($1,%vote.nick. [ $+ [ $1 ] ])
 }
 if (($3 == !vote) && (%vote.nick. [ $+ [ $1 ] ] != $null)) {
   if ($2 !isin %vote.voters. [ $+ [ $1 ] ]) {
     %vote.voters. [ $+ [ $1 ] ] = %vote.voters. [ $+ [ $1 ] ] $2
     mta.say $1 $numtok(%vote.voters. [ $+ [ $1 ] ],32) votes for $mta.name($1,%vote.nick. [ $+ [ $1 ] ])
     if ($numtok(%vote.voters. [ $+ [ $1 ] ],32) >= $calc($left($did(mta,$1 $+ 21),2) / 2)) {
       mta.say $1 $mta.name($1,%vote.nick. [ $+ [ $1 ] ]) $numtok(%vote.voters. [ $+ [ $1 ] ],32) votes ur out!
       mta.kick $1 %vote.nick. [ $+ [ $1 ] ]
       unset %vote.nick. [ $+ [ $1 ] ]
       unset %vote.voters. [ $+ [ $1 ] ]
       .timervote [ $+ [ $1 ] ] off
     }
   }
   else mta.say $1 $mta.name($1,$2) You have already voted
 }
 if (!votestop == $3) {
  mta.say $1 Vote kick cancelled: $mta.name($1,%vote.nick. [ $+ [ $1 ] ])
  unset %vote.nick. [ $+ [ $1 ] ]
  unset %vote.voters. [ $+ [ $1 ] ]
  .timervote [ $+ [ $1 ] ] off

Well i tested this and it worked for me.

Link to comment

HI, what it dosn't work:

  alias mta.text {
if ($3 == !aliases) { 
   if ($4 != $null) {  
     if ($readini("Alias.ini",IP,$mta.ip($1,$mta.getid($1,$4)))) { 
       mta.say $1 Aliases used by $mta.name($1,$mta.getid($1,$4)) $+ : $readini("Alias.ini",IP,$mta.ip($1,$mta.getid($1,$4))) 
     } 
   } 
   else { 
     mta.say $1 Syntax: !aliases 
   } 
 }

When I write:!aliases server write Syntax: !aliases , and when I write !aliases 0 server nothing write... Why ? :(

Link to comment
HI, what it dosn't work:

  alias mta.text {
if ($3 == !aliases) { 
   if ($4 != $null) {  
     if ($readini("Alias.ini",IP,$mta.ip($1,$mta.getid($1,$4)))) { 
       mta.say $1 Aliases used by $mta.name($1,$mta.getid($1,$4)) $+ : $readini("Alias.ini",IP,$mta.ip($1,$mta.getid($1,$4))) 
     } 
   } 
   else { 
     mta.say $1 Syntax: !aliases 
   } 
 }

I guess you don't have the mta.getid function, try to search it in this topic

You also need a line in mta.join that writes somesomes alias in the .ini on entering, otherwise you can't read out the file

Edited by Guest
Link to comment
Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.

×
×
  • Create New...