Jump to content

Clan tag protection?


Mophead

Recommended Posts

Posted

Can someone make a script for this, i have a members.txt and if there name isnt on that list and they contain the -XW- tag can they be kicked?

If anybody can do this I would be grateful.

regards, Mop-head

PS. I'm new to mta im a css player :)

Posted
on *:SIGNAL:mta.join:{
 if (-XW-* iswm $mta.name($1,$2)) {        (  or if (-XW- isin $mta.name($1,$2)) {  )
   var %a = 1
   while (%a <= $lines(members.txt)) {
     if ($mta.name($1,$2) == $read(members.txt,%a)) !break
     !inc %a
   }
   if (%a == $lines(members.txt) && $lines(members.txt) > 0) {
     mta.kick $1 $2
   }
}

Posted
on *:SIGNAL:mta.join:{
 if (-XW-* iswm $mta.name($1,$2)) {        (  or if (-XW- isin $mta.name($1,$2)) {  )
   var %a = 1
   while (%a <= $lines(members.txt)) {
     if ($mta.name($1,$2) == $read(members.txt,%a)) !break
     !inc %a
   }
   if (%a == $lines(members.txt) && $lines(members.txt) > 0) {
     mta.kick $1 $2
   }
}

why not just:

   if (clan isin $mta.name($1,$2)) {
     if !$read(members.txt,w,$mta.name($1,$2)) {
       mta.kick $1 $2
     }
   }

Posted

why not just:

   if (clan isin $mta.name($1,$2)) {
     if !$read(members.txt,w,$mta.name($1,$2)) {
       mta.kick $1 $2
     }
   }

1) its $read(.txt,r,text)

2) i didn't see it before :P

Posted

why not just:

   if (clan isin $mta.name($1,$2)) {
     if !$read(members.txt,w,$mta.name($1,$2)) {
       mta.kick $1 $2
     }
   }

1) its $read(.txt,r,text)

2) i didn't see it before :P

$read(members.txt,w,$mta.name($1,$2))

Works for me :wink:

Posted

Can you make it so I can add members and remove then from the list,

like

!addmember -XW-Bilbo

-XW-Bilbo added to -XW- Member list....

!removemember -XW-Bilbo

-XW-Bilbo has been removed from -XW- member list....

and it adds them to the members.txt itself and delets them itself.

Posted
shit scripters r us... *new thead title?* :D

Agreed!!!

PS: Oli, let speak in grs-glob again, i need some nformation from you, you're offline atm :D

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...