Jump to content

A little help!


(OVG)Santi

Recommended Posts

Posted

i need have this scrip

 if ($3 == !ty) {
   mta.text $1 $mta.nick($1,$2) say to $mta.getid($1,$4) thanks you!
 }

is that correct? because dont say the name of the other player!

Posted

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) $+ !!
 }
}

Posted
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) $+ !!
 }
}

Posted

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]

Posted

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!

  • 1 month later...
Posted
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

Posted
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?

  • Recently Browsing   0 members

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