Jump to content

Plz help, i have my script :D, but i dnt kno were to put it


Guest Willy!

Recommended Posts

welcome to the forum

first of

caps and BOLD are not a good way to ask questions

but ill be friendly

the simple explenation

1make sure server runs smooth

2get mirc

l3oad script

4execute script

5connect to server

which part goes wrong on your end ?

Link to comment

sorry mate, its jus im really desprate, basicly i have my server running i have MTA:MA running i just want to kno where to put my new script

on *:SIGNAL:mta.command:{

if ($3 == !jail) {

var %a = $iif($4,$iif($mta.name($1,$4) != Unknown,$4,$mta.getid($1,$4)),$2)

if ((Cop* iswm $mta.skin($1,$2).name) && ($rpg.criminal($1,%a) == $true) && ($2 != %a) && (%a != -1) && ($5 isnum)) {

if (($rpg.area($1,%a) == Jail-Cells) || ($rpg.area($1,%a) == Big-Cell)) {

mta.msg $1 $2 You jailed a criminal. Here's your reward. $100

mta.msg $1 %a Someone in the jail made you drop soap. Poor bastard.

mta.say $1 $mta.name($1,%a) has been jailed for $5 Minutes!

.timer 1 1 mta.msg $1 $2 You have earned $calc(1700 * $rpg.wantedlvl($1,%a)) $+ !

!writeini -n " $+ $scriptdir $+ suspectlist.ini" $mta.name($1,$2) cash $calc($rpg.cash($1,$2) + 100)

!writeini -n " $+ $scriptdir $+ suspectlist.ini" $mta.name($1,%a) criminal 0

!writeini -n " $+ $scriptdir $+ suspectlist.ini" $mta.name($1,%a) Jailed Yes

!.timer 1 $calc($calc($5 * 60) + 1) mta.say $1 $mta.name($1,%a) is now a free man!

!.timer 1 $calc($5 * 60) !writeini -n " $+ $scriptdir $+ suspectlist.ini" $mta.name($1,%a) Jailed No

}

}

}

elseif (!suspect == $3) {

var %a = $iif($4,$iif($mta.name($1,$4) != Unknown,$4,$mta.getid($1,$4)),$2)

if (Cop* iswm $mta.skin($1,$2).name) {

if (%a == -1) mta.msg $1 $2 Error - Absent ID/Name

if (%a == $2) mta.msg $1 $2 Error - Can't suspect yourself

else {

!writeini " $+ $scriptdir $+ suspectlist.ini" List $mta.name($1,%a) 1

!writeini " $+ $scriptdir $+ suspectlist.ini" Reasons $mta.name($1,%a) $iif($5,$5-,No Reason)

mta.say $1 Server: $mta.name($1,%a) has been suspected by $mta.name($1,$2) : Reason: $iif($5,$5-,None)

}

}

else mta.msg $1 $2 Server: You are not a cop.

}

elseif ($3 == !crime) {

var %a = 0,%b

while (%a <= $mta.maxplayers($1)) {

if ($readini($scriptdir $+ suspectlist.ini,list,$mta.name($1,%a)) == 1) {

mta.say $1 Wanted: $mta.name($1,%a) $+ , Reason: $readini($scriptdir $+ suspectlist.ini,reasons,$mta.name($1,%a))

}

inc %a

}

}

elseif (!wanted == $3) {

var %a = 0,%b

while (%a <= $mta.maxplayers($1)) {

if ($readini($scriptdir $+ suspectlist.ini,list,$mta.name($1,%a)) == 1) {

if (!%b) %b = $mta.name($1,%a)

elseif (%b) %b = %b $+ , $mta.name($1,%a)

}

inc %a

}

mta.say $1 Wanted Players: $iif(%b,%b,None)

}

}

on *:SIGNAL:mta.kill:{

if ($readini($scriptdir $+ suspectlist.ini,list,$mta.name($1,$2)) == 1) {

if (Cop* iswm $mta.skin($1,$3).name) {

mta.msg $1 $3 Killed a wanted player and u get 100$ of his bounty.

!writeini rpg.ini cash mta.name($1,$32) $calc($readini(rpg.ini,cash,$mta.name($1,$2)) + 100)

!remini " $+ $scriptdir $+ suspectlist.ini" List $mta.name($1,$2)

!remini " $+ $scriptdir $+ suspectlist.ini" Reasons $mta.name($1,$2)

!writeini rpg.ini cash $mta.name($1,$3) $calc($readini(rpg.ini,cash,$mta.name($1,$3)) + 100)

}

} please help

Link to comment

In mIRC, press ALT+R and then ALT+R again and it should open up the Script Editor with the Remote tab selected. Click File->New, paste your script in there and then hit File->Save.

Edited by Guest
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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