Jump to content

A little help!


(OVG)Santi

Recommended Posts

No, it's not correct. with mta.getid it shows the ID..

this will be correct:

alias mta.getnick {
 var %a = 0
 while (%a <= $mta.server($1).cmax) {
   if ($2 isin $mta.nick($1,%a)) !return %a
   !inc %a
 }
 !return -1
}
on *:SIGNAL:mta.command: {
 var %a = $iif($4,$iif($mta.nick($1,$4) != $null,$4,$mta.getnick($1,$4)),$2)
 if ($3 == !ty) {
   if (%a == -1) mta.pm $1 $2 Error - Absent ID
   else mta.text $1 $mta.nick($1,$2) $+ :: Thank you, $mta.nick($1,%a) $+ !!
 }
}

Link to comment
No, it's not correct. with mta.getid it shows the ID..

this will be correct:

alias mta.getnick {
 var %a = 0
 while (%a <= $mta.server($1).cmax) {
   if ($2 isin $mta.nick($1,%a)) !return %a
   !inc %a
 }
 !return -1
}
on *:SIGNAL:mta.command: {
 var %a = $iif($4,$iif($mta.nick($1,$4) != $null,$4,$mta.getnick($1,$4)),$2)
 if ($3 == !ty) {
   if (%a == -1) mta.pm $1 $2 Error - Absent ID
   else mta.text $1 $mta.nick($1,$2) $+ :: Thank you, $mta.nick($1,%a) $+ !!
 }
}

there is a func to get id in mtama already, called mta.getid ;)

on *:SIGNAL:mta.command: {
 var %a = $iif($4,$iif($mta.nick($1,$4) != $null,$4,$mta.getid($1,$4)),$2)
 if ($3 == !ty) {
   if (%a == -1) mta.pm $1 $2 Error - Absent ID
   else mta.text $1 $mta.nick($1,$2) $+ : Thank you, $mta.nick($1,%a) $+ !!
 }
}

Link to comment

was a error in that script when you dont put nothigs dont send the pm

var %a = $iif($4,$iif($mta.nick($1,$4) != $null,$4,$mta.getnick($1,$4)),$2) 
 if ($3 == !ty) { 
   if (%a == -1) mta.pm $1 $2 Error - Absent ID 
   else mta.text $1 $mta.nick($1,$2) $+ :: Thank you, $mta.nick($1,%a) $+ !! 
 } 

but here yes i fix that

var %a = $iif($4,$iif($mta.nick($1,$4) != $null,$4,$mta.getnick($1,$4)),$2) 
 if ($3 == !ty) { 
   if ($4) {  
     mta.text $1 $mta.nick($1,$2) $+ :: Thank you, $mta.nick($1,%a) $+ !! 
   } 
   else mta.pm $1 $2 Error - Sintaxis: !ty 
 }  
[quote][/quote]

Link to comment
  • 1 month later...
hi i need more help i need this commands:

when a player join to mtasa wicth the name "player" i need the consola say hi player press "t" adn type "/nick " thaks you and if he dont change her name in 15 seconds say that again and in other 15 if he dont change her name kick to he!

thx for the help i create this, but one things why this scrip is soo long

var %a = $iif($4,$iif($mta.nick($1,$4) != $null,$4,$mta.getnick($1,$4)),$2) 
 if ($3 == !ty) { 
   if ($4) {  
     mta.text $1 $mta.nick($1,$2) $+ :: Thank you, $mta.nick($1,%a) $+ !! 
   } 
   else mta.pm $1 $2 Error - Sintaxis: !ty 
 }  

if you here put

 
$mta.name($1,$mta.getid($1,$4))

this work perfect i use thos for MTA:Vc because lol this dont work but my scripts for get the name for MTA:VC is good or exist somethins scrips best

Link to comment
hi i need more help i need this commands:

when a player join to mtasa wicth the name "player" i need the consola say hi player press "t" adn type "/nick " thaks you and if he dont change her name in 15 seconds say that again and in other 15 if he dont change her name kick to he!

thx for the help i create this, but one things why this scrip is soo long

var %a = $iif($4,$iif($mta.nick($1,$4) != $null,$4,$mta.getnick($1,$4)),$2) 
 if ($3 == !ty) { 
   if ($4) {  
     mta.text $1 $mta.nick($1,$2) $+ :: Thank you, $mta.nick($1,%a) $+ !! 
   } 
   else mta.pm $1 $2 Error - Sintaxis: !ty 
 }  

if you here put

 
$mta.name($1,$mta.getid($1,$4))

this work perfect i use thos for MTA:Vc because lol this dont work but my scripts for get the name for MTA:VC is good or exist somethins scrips best

say != $null and for mta:vc is != Unkoun

and the other is mta.server.cmax change for mta.players lol

but what i must put in the remote.ini for wheni start mirc auto load mta.mrc and conenct to tthe server?

Link to comment
  • Recently Browsing   0 members

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