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

Okay the idea..

let members logg ip's off suspected cheates in a ini file.. so that a admin can check it later on and take action.

Ive come this far:

elseif (($3 == !suspect) &&  (%ismember. [ $+ [ $1 ] $+ . $+ [ $2 ] ] == true)) {
  writeini "mtasuspect.ini" suspect $mta.name($1,$2) + $mta.name($1,$4) $+ 's ip: $mta.ip($1,$4) $4-
  mta.say $1 $mta.name($1,$4) $+ 's ip: $mta.ip($1,$4) is noted as a suspected cheater.
}

it works but it overwrites it when they logg a next suspect later on...

and I don't know how to make it so that it returns an error when they don't give a id or/and reason

any idea's would be handy

greetz

ill add this to MTA:mA:GRS v2.30 along with the newest Scripts Wizard u ppl r gonna love so much Wink

you gonna add that..?? it's not even working..:) that's why I posted and I hoped for an answer.. :?

Link to comment

hahha.. okay..

got it this far with a lot of help.. :shock:

if (($3 == !suspect) && (%ismember. [ $+ [ $1 ] $+ . $+ [ $2 ] ] == true)) {
 if ($4 == $null) {
   mta.say $1 Error! !suspect 
 }
 if ($mta.name($1,$4) == Unknown) {
   mta.say $1 ID Not Present!
 }
 if ($5 == $null) {
   mta.say $1 Please giv a reason!
 }
 else {
   mta.say $1 $mta.name($1,$4) $+ 's IP: $mta.ip($1,$4) added to the suspect list !
   write mtasuspect.txt Name: $mta.name($1,$2) Suspect: $mta.name($1,$4) Ip: $mta.ip($1,$4) Reason: $5- Date: $date
 }
}

Edit

problem solved by changing it to a txt file..

thanks aeron.. 8)

Link to comment

Oli, (Harry), All that is needed initially is a variation on the standard X minute rounds team script.

Needs to support two and three teams (perhaps make that an easily settable variable? this would cover for future 4 and 5 team games)

The scores will be calculated slightly differently, it is Kills minus Deaths, not just Kills and should ignore 'player died (vehicle)' altogether.

Hope thats clear enough, if not then i can elaborate on any area. Thanks

Link to comment
  • 3 weeks later...
Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.

×
×
  • Create New...