(OVG)Santi Posted December 12, 2006 Share Posted December 12, 2006 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! Link to comment
BetaDevil Posted December 12, 2006 Share Posted December 12, 2006 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
lil Toady Posted December 12, 2006 Share Posted December 12, 2006 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
(OVG)Santi Posted December 13, 2006 Author Share Posted December 13, 2006 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
BetaDevil Posted December 13, 2006 Share Posted December 13, 2006 no it isn't... if you don't insert a name it shows your own name... Link to comment
(OVG)Santi Posted December 13, 2006 Author Share Posted December 13, 2006 the bug was when you type only !ty the scrips dont send to you the pm and in my version yes! Link to comment
(OVG)Santi Posted December 13, 2006 Author Share Posted December 13, 2006 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! Link to comment
Convirion Posted December 13, 2006 Share Posted December 13, 2006 man, we are here to help you with a script or a bug in a script. not to make a script for you! Link to comment
(OVG)Santi Posted December 14, 2006 Author Share Posted December 14, 2006 man, we are here to help you with a script or a bug in a script.not to make a script for you! thx! Link to comment
(OVG)Santi Posted January 26, 2007 Author Share Posted January 26, 2007 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
(OVG)Santi Posted January 27, 2007 Author Share Posted January 27, 2007 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
(OVG)Santi Posted January 29, 2007 Author Share Posted January 29, 2007 if ($wildtokcs($3-,*sh*t*,1,*) != $null) { i need add more words, what i must to do? use what? Link to comment
Recommended Posts