Jump to content

Someone Please Help Me ASAP! I Have Just Opened A Server!


Guest Damike(Wcc)

Recommended Posts

:D First Of All These Scripts Are Not Mine! And They Belong To There Respective Owners I Dont Want To Claim Work For Other Peoples Hard Work!

Also I Have Just Opened A Server In MTA 0.5 NAME: WizzoDM IP: 71.48.215.180 Port#: 2003!

These Are The Known Issues I Have Realized!

Ok When I Use This Script Below The Event Script = Its Suppose To Let People No New/Envents When They Login It Does or When They type !news once again it does but I Have Seen That you can type anything and it shows it example:

Johnsmith: hey

Damike: hey

JohnSmith:!cash

John Smith's Cash $1999

News: We Need Admins & Scripters! If You Are Interested Please Ask!

Johnsmith: lol

Damike:!sdshfdkg

News: We Need Admins & Scripters! If You Are Interested Please Ask!

Damike: lmfao :o)

JohnSmith: lol xD

This Is The Script Can U PLeazz Stop That From Happening!

on *:SIGNAL:mta.join:{

mta.say $1 Welcome To WizzoDM Server! Please Type !news To See Our Recent News! %mta.event. [ $+ [ $1 ] ]

}

on *:SIGNAL:mta.command: {

if ($3 == !news) {

if ($4 != $null) {

%mta.event. [ $+ [ $1 ] ] = $read($scriptdir $+ events.txt,$4)

}

else {

%mta.event. [ $+ [ $1 ] ] = $read($scriptdir $+ events.txt,$rand(1,$lines($scriptdir $+ events.txt)))

}

}

mta.say $1 News: Admins Needed! Ask Now! Scripters Also Needed! %mta.event. [ $+ [ $1 ] ]

}

Link to comment

Ok Now This Is A Admin Script I DIDNT MAKE IT! IT BELONGS TO RESPECTIVE OWNER!

TO MAKE IT EASIER IF YOU DONT WANT TO LOOK AT THE HUGE ADMIN SCRIPT.....CAN U PLEAZZ GIVE ME A SIMPLE 1 BY CHANCE~As i said i do not take credit for these scripts!

But The Problem Is Here I Cant Make Any1 Admin! It Looks Like It Does it says Damike Has set JohnSmith from 4 to 5 level admin or whatever but they cant use commands or nothing And when they login it says Has Logged in as a member with their name at the beggining. I cant figure this out at all. And when i first pasted the script in mIRC Script Editor It Had me choose a username and password but i dont know how to use that to log in!

PLEAZZ HELP ME SOMEONE!!!!!!!!!!!!!!!!

Thank You To All Who Do!

HERE IS THE SCREWY SCRIPT THAT I PROB> SCREWED UP LOL

on *:SIGNAL:mta.join: {

;Begin Nick-Server

if ($findtok(login logout register help,$mta.name($1,$2),1,32)) {

mta.msg $1 $2 The name $+(',$mta.name($1,$2),') is a forbidden name.

mta.kick $1 $2

}

elseif ($ini(nickserv.ini,$mta.name($1,$2))) {

mta.msg $1 $2 The name $+(',$mta.name($1,$2),') is a registerd name. You have 30 seconds to login.

mta.msg $1 $2 To login type "/msg login ".

$+(!.timer,$1,.,$2) 1 30 mta.kick $1 $2

}

else {

mta.msg $1 $2 This server has Nick-Server enabled. Register your nickname today!

mta.msg $1 $2 For more infomation type "/msg help".

}

;End Nick-Server

}

on *:SIGNAL:mta.start: {

;Begin Ping-Kicker

if (!%ping.max) %ping.max = 200

!.timerpingkick 0 10 pingkick

;End Ping-Kicker

}

on *:SIGNAL:mta.quit: {

;Begin Ping-Kicker

!.timerpingkick off

;End Ping-Kicker

}

on *:SIGNAL:mta.part: {

;Begin Nick-Server

$+(!.timer,$1,.,$2) off

;End Nick-Server

;Begin Ping-Kicker

!hdel Ping. $+ $1 $2

;End Ping-Kicker

}

on *:SIGNAL:mta.pm: {

;Begin Nick-Server

if ($3 == login) {

if ($ini(nickserv.ini,$mta.name($1,$2))) {

if ($readini($mta.dir $+ $1.ini,ID $+ $2,level) == $null) {

if ($readini(nickserv.ini,$mta.name($1,$2),pass) == $4-) {

if ($readini(nickserv.ini,$mta.name($1,$2),level)) {

mta.say $1 $+(',$mta.name($1,$2),') logged in as an admin. (Admin level: $readini(nickserv.ini,$mta.name($1,$2),level) $+ )

}

else {

mta.say $1 $+(',$mta.name($1,$2),') logged in as a member.

}

!writeini nickserv.ini $mta.name($1,$2) logintry 3

!writeini $+(",$nofile($script(mta.mrc)),$1.ini,") ID $+ $2 level $readini(nickserv.ini,$mta.name($1,$2),level)

$+(!.timer,$1,.,$2) off

}

else {

if ($readini(nickserv.ini,$mta.name($1,$2),logintry) > 0) {

!writeini nickserv.ini $mta.name($1,$2) logintry $calc($readini(nickserv.ini,$mta.name($1,$2),logintry)-1)

mta.msg $1 $2 Incorrect password for $+(',$mta.name($1,$2),'.) ( $+ $readini(nickserv.ini,$mta.name($1,$2),logintry) try(s) left.)

}

else {

mta.say $1 $+(',$mta.name($1,$2),'.) is banned by Nick-Server: To much incorrect passwords.

mta.ban $1 $2 Nick-Server: To much incorrect passwords.

!writeini nickserv.ini $mta.name($1,$2) logintry 3

$+(!.timer,$1,.,$2) off

}

}

}

else {

mta.msg $1 $2 You are already logged in.

}

}

else {

mta.msg $1 $2 $+(',$mta.name($1,$2),') is not a registerd name.

}

}

elseif ($3 == help) {

if ($4 == commands) {

mta.msg $1 $2 Help-commands:

mta.msg $1 $2 "/msg login " Login command to log in.

mta.msg $1 $2 "/msg logout" Logout command to log out.

mta.msg $1 $2 "/msg register " Register command to register a nick.

mta.msg $1 $2 "/msg set " Set command to change email or password.

}

else {

mta.msg $1 $2 Help:

mta.msg $1 $2 Nick-Server allows you to register your nick, preventing others from using it.

mta.msg $1 $2 Type "/msg help commands" for information over commands.

}

}

if ($3 == logout) {

if ($ini(nickserv.ini,$mta.name($1,$2))) {

if ($readini($mta.dir $+ $1.ini,ID $+ $2,level) != $null) {

if ($readini(nickserv.ini,$mta.name($1,$2),level)) {

mta.say $1 $+(',$mta.name($1,$2),'.) logged out as an admin. (Admin level: $readini(nickserv.ini,$mta.name($1,$2),level) $+ )

}

else {

mta.say $1 $+(',$mta.name($1,$2),'.) logged out as a member.

}

!remini $+(",$nofile($script(mta.mrc)),$1.ini,") ID $+ $2 level

}

else {

mta.msg $1 $2 You are not logged in.

}

}

else {

mta.msg $1 $2 $+(',$mta.name($1,$2),') is not a registerd name.

}

}

elseif ($3 == register) {

if ($ini(nickserv.ini,$mta.name($1,$2))) {

mta.msg $1 $2 $+(',$mta.name($1,$2),'.) already registerd.

}

elseif ($5 == $null) {

mta.msg $1 $2 Syntax: "/msg register "

}

elseif (*@*.* !iswm $4) {

mta.msg $1 $2 Invalid email. "/msg register "

}

else {

!writeini nickserv.ini $mta.name($1,$2) logintry 3

!writeini nickserv.ini $mta.name($1,$2) ip $mta.ip($1,$2)

!writeini nickserv.ini $mta.name($1,$2) email $4

!writeini nickserv.ini $mta.name($1,$2) pass $5-

mta.msg $1 $2 $+(',$mta.name($1,$2),'.) has been registerd as a member.

mta.msg $1 $2 Account info - Name: $mta.name($1,$2) $+ , Password: $5-, IP: $mta.ip($1,$2) $+ , Email: $4.

mta.msg $1 $2 Type "/msg login " to login, "/msg set " to edit account.

}

}

elseif ($3 == set) {

if ($ini(nickserv.ini,$mta.name($1,$2))) {

if ($readini($mta.dir $+ $1.ini,ID $+ $2,level) != $null) {

if ($5 == $null) || (($4 != email) && ($4 != password)) {

mta.msg $1 $2 Syntax: "/msg set "

}

elseif ($4 == email) {

if (*@*.* !iswm $5) {

mta.msg $1 $2 Invalid email. "/msg set "

}

else {

!writeini nickserv.ini $mta.name($1,$2) email $5

mta.msg $1 $2 Account info - Name: $mta.name($1,$2) $+ , Password: $readini(nickserv.ini,$mta.name($1,$2),pass) $+ , IP: $readini(nickserv.ini,$mta.name($1,$2),ip) $+ , Email: $readini(nickserv.ini,$mta.name($1,$2),email) $+ .

}

}

elseif ($4 == password) {

!writeini nickserv.ini $mta.name($1,$2) pass $5-

mta.msg $1 $2 Account info - Name: $mta.name($1,$2) $+ , Password: $readini(nickserv.ini,$mta.name($1,$2),pass) $+ , IP: $readini(nickserv.ini,$mta.name($1,$2),ip) $+ , Email: $readini(nickserv.ini,$mta.name($1,$2),email) $+ .

}

}

else {

mta.msg $1 $2 You are not logged in.

}

}

else {

mta.msg $1 $2 $+(',$mta.name($1,$2),') is not a registerd name.

}

}

;End Nick-Server

}

on *:SIGNAL:mta.command: {

var %a = $readini($nofile($script(mta.mrc)) $+ $1.ini,ID $+ $2,level),%b

if (%a > -1) {

if (%a > 0) {

if (%a > 1) {

if (%a > 2) {

if (%a > 3) {

if (%a > 4) {

;Begin Admin level 5 commands

;End Admin level 5 commands

}

;Begin Admin level 4 and up commands

;End Admin level 4 and up commands

}

;Begin Admin level 3 and up commands

if ($3 == !setlevel) {

%b = $iif($4 isnum,$4,$mta.getid($1,$4))

if ($ini(nickserv.ini,$mta.name($1,%b))) {

if ($2 == %b) mta.msg $1 $2 You can not change your level yourself.

else {

if ($5 < 1) || ($5 > 6) mta.msg $1 $2 Invalid Admin level.

else {

if ($readini($nofile($script(mta.mrc)) $+ $1.ini,ID $+ %b,level) > %a) {

mta.msg $1 $2 Can not change level of admin with higher Admin level.

mta.msg $1 %b Admin $+(',$mta.name($1,$2),') was trying to change your level to: $5

}

else {

mta.say $1 $+(',$mta.name($1,%b),''s) level is changed from $readini(nickserv.ini,$mta.name($1,$2),level) to $5 by admin $+(',$mta.name($1,$2),'.)

!writeini nickserv.ini $mta.name($1,$2) level $5

}

}

}

}

else {

mta.msg $1 $2 $+(',$mta.name($1,%b),') is not a registerd name.

}

}

;End Admin level 3 and up commands

}

;Begin Admin level 2 and up commands

if ($3 == !setping) {

%ping.max $4

mta.say $1 Maximum ping set to: $4

}

if ($3 == !ban) {

%b = $iif($4 isnum,$4,$mta.getid($1,$4))

if ($2 == %b) mta.msg $1 $2 You can not ban yourself.

else {

if ($readini($nofile($script(mta.mrc)) $+ $1.ini,ID $+ %b,level) > %a) {

mta.msg $1 $2 Can not ban admin with higher Admin level.

mta.msg $1 %b Admin $+(',$mta.name($1,$2),') was trying to ban you: $iif($5,$5-,No reason.)

}

else {

mta.say $1 $+(',$mta.name($1,%b),') is banned by admin $+(',$mta.name($1,$2),':) $iif($5,$5-,No reason.)

mta.ban $1 %b

}

}

}

;End Admin level 2 and up commands

}

;Begin Admin level 1 and up commands

if ($3 == !kick) {

%b = $iif($4 isnum,$4,$mta.getid($1,$4))

if ($2 == %b) mta.msg $1 $2 You can not kick yourself.

else {

if ($readini($nofile($script(mta.mrc)) $+ $1.ini,ID $+ %b,level) > %a) {

mta.msg $1 $2 Can not kick admin with higher Admin level.

mta.msg $1 %b Admin $+(',$mta.name($1,$2),') was trying to kick you: $iif($5,$5-,No reason.)

}

else {

mta.say $1 $+(',$mta.name($1,%b),') is kicked by admin $+(',$mta.name($1,$2),':) $iif($5,$5-,No reason.)

mta.kick $1 %b

}

}

}

;End Admin level 1 and up commands

}

;Begin Member and up commands

;End Member and up commands

}

;Begin Non-member and up commands

if ($3 == !admin) {

var %a = 0

while (%a < 33) {

if ($readini($mta.dir $+ $1.ini,ID $+ %a,level)) {

%b = %b $mta.name($1,%a) (Level: $+ $readini($mta.dir $+ $1.ini,ID $+ %a,level) $+ )

}

!inc %a

}

mta.say $1 Admins logged in: %b

}

;End Non-member and up commands

}

alias pingkick {

var %a = 1,%b

while %a < 9 {

if ($sock(mta. $+ %a)) {

%b = $readini($nofile($script(mta.mrc)) $+ mta.ini,%a,max)

while %b >= 0 {

!tokenize 32 $hget(Ping. $+ %a,%b)

!hadd -m Ping. $+ %a %b $calc($mta.ping(%a,%b) +$1) $calc(1+$2)

if $2 > 5 {

if $calc($1 /$2) > %ping.max {

if (!$readini($nofile($script(mta.mrc)) $+ $1.ini,ID $+ $2,level)) {

mta.say %a $+(',$mta.name(%a,%b),') is kicked: High ping. (Max: %ping.max $+ , Average: $calc($1 /$2) $+ )

mta.kick %a %b

}

}

!hadd -m Ping. $+ %a %b $mta.ping(%a,%b) 1

}

!dec %b

}

}

!inc %a

}

}

on *:UNLOAD: {

!.timerpingkick off

}

on *:LOAD: {

if ($dialog(mta)) {

if (!%ping.max) %ping.max = 200

!.timerpingkick 0 10 pingkick

}

if (!$exists(nickserv.ini)) {

var %a = $input(Welcome to the Admin-Sytem setup $lf $+ Enter your nickname to login with:,eod,Admin-System),%b = $input(Enter your password:,eod,Admin-System),%c = $input(Admin-System configured! $lf $+ Nickname: %a $+ , Password: %b ,od,Admin-System)

!writeini nickserv.ini %a pass %b

!writeini nickserv.ini %a level 5

!writeini nickserv.ini $mta.name($1,$2) logintry 3

}

}

OR IF YOU CAN CAN SOMEONE PLEAZZ GIVE ME A WORKING ADMIN SCRIPT!

I NEED Kick, Ban, Slap, Tempban, IP, Etc Usal Ones!

Edited by Guest
Link to comment
:D First Of All These Scripts Are Not Mine! And They Belong To There Respective Owners I Dont Want To Claim Work For Other Peoples Hard Work!

Also I Have Just Opened A Server In MTA 0.5 NAME: WizzoDM IP: 71.48.215.180 Port#: 2003!

on *:SIGNAL:mta.join:{

mta.say $1 Welcome To WizzoDM Server! Please Type !news To See Our Recent News! %mta.event. [ $+ [ $1 ] ]

}

on *:SIGNAL:mta.command: {

if ($3 == !news) {

if ($4 != $null) {

%mta.event. [ $+ [ $1 ] ] = $read($scriptdir $+ events.txt,$4)

}

else {

%mta.event. [ $+ [ $1 ] ] = $read($scriptdir $+ events.txt,$rand(1,$lines($scriptdir $+ events.txt)))

}

}

mta.say $1 News: Admins Needed! Ask Now! Scripters Also Needed! %mta.event. [ $+ [ $1 ] ]

}

1. put the news line where it is supposed to be in the events.txt file

2. move the line to right under the %mta.event. line and remove one closing bracket.

Get a better editor that shows you where the open and close brackets for a statement are.

Link to comment

For the news:

on *:SIGNAL:mta.command: {
 if ($3 == !news) {
   if (!$4) %mta.event. [ $+ [ $1 ] ] = $read($scriptdir $+ events.txt,$rand(1,$lines($scriptdir $+ events.txt)))
   elseif ($4 isnum) %mta.event. [ $+ [ $1 ] ] = $read($scriptdir $+ events.txt,$4)
   mta.say $1 News: Admins Needed! Ask Now! Scripters Also Needed! %mta.event. [ $+ [ $1 ] ]
 }
}

And the admins system is made by Aeron and has always been working fine. Does it return any errors?

Link to comment

Thank You Very Much For Fixing The News/Events Scripts You All Are Awsome! That Was Fast! I Am So Pleazzed Thank You Thank You!

Can Someone Give Me A Working Link By Chance To A Lvl 1-5 Admin Script! I Could Really Use & Appreciate One ATM. Cause I Can Only Use Admin+ On My Server And My Close Pal WestCoast And I Have To Use Admin+ Cause The Admin System Someone Edited Doesnt Work Right!

Have A Good Night Ya'll!

:o) Server Name Change

Name: Damike's Racing, RPG, & Deathmatch Server!

Same IP And Port As Above. Working On Getting A Dedicated Server One That Is Not My IP And Is 24/7 Lol :o) C U All Later!

Link to comment
  • 2 weeks later...
  • Recently Browsing   0 members

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