Jump to content

!car


Niels

Recommended Posts

Posted

if (!car == $3) {
   %b = $iif($4 isnum,$4,$mta.getid($1,$4))
   if ($4 !== $null) { 
     if ($mta.vehicle($1,%b).name != Unknown) mta.say $1 $mta.name($1,%b) is in/on $mta.vehicle($1,%b).name - Damage: $calc(100 - $mta.health($1,%b).vehicle) %manhunt %
     else mta.say $1 $mta.name($1,%b) is out of game! 
   } 
   else { 
     if ($mta.vehicle($1,$2).name != Unknown) mta.say $1 $mta.name($1,$2) is in/on $mta.vehicle($1,$2).name - Damage: $calc(100 - $mta.health($1,$2).vehicle) %manhunt %
     else mta.say $1 You are out of game!
if ($mta.name($1,%b).name == Unknown) mta.say $1 User ID Failed.
   }
}

Why is it User ID Failed. not working ???

can somone fix it ?

OMG!

Posted (edited)

Dude, first this should be in mta scripting. Second, you already asked me on irc and i helped you.

Edited by Guest
Posted

if ($3 == !car) {
%b = $iif($4 isnum,$4,$mta.getid($1,$4))
if ($4 !== $null) {
mta.say $1 $mta.name($1,%b) is in/on $mta.vehicle($1,%b).name Damage: $calc(100 - $mta.health($1,%b).vehicle) %manhunt %
elseif ($mta.vehicle($1,%b).name == Foot && Unknown) mta.say $1 Unable to get in what car $mta.name($1,%b) are in!
}
else {
mta.say $1 $mta.name($1,$2) is in/on $mta.vehicle($1,$2).name Damage: $calc(100 - $mta.health($1,$2).vehicle) %manhunt %
elseif ($mta.vehicle($1,$2).name == Foot && Unknown) mta.say $1 Unable to get in what car you are in!
}
}

Why is this don't work (car script edit)

OMG!

Posted

if ($3 == !car) {
   %b = $iif($4 isnum,$4,$mta.getid($1,$4))
   if ($4 !== $null) {
     if (($mta.vehicle($1,%b).name == Foot) || ($mta.vehicle($1,%b).name == Unknown)) mta.say $1 Unable to get in what car $mta.name($1,%b) are in!
     else mta.say $1 $mta.name($1,%b) is in/on $mta.vehicle($1,%b).name Damage: $calc(100 - $mta.health($1,%b).vehicle) %manhunt %
   }
   else {
     if (($mta.vehicle($1,$2).name == Foot) || ($mta.vehicle($1,$2).name == Unknown)) mta.say $1 Unable to get in what car you are in.
     else mta.say $1 $mta.name($1,$2) is in/on $mta.vehicle($1,$2).name Damage: $calc(100 - $mta.health($1,$2).vehicle) %manhunt %
   }
 }

it's works :P

OMG!

Posted

I think you can remove the "%manhunt %" as you don't even know what it's supposed to do :?

Also, may be useful to add

if ($mta.admin+ == $true) {

before it and then

}
else mta.say $1 No admin+ connection

after it ;)

Posted

Well he fixed his own problem. I dont understand why people cant wait for alittle bit longer and get it.

When people die the ghost is still with us but you just can't see it. That equals suprise attack.

Posted

 if ($3 == !car) {
   %b = $iif($4 isnum,$4,$mta.getid($1,$4))
   if ($4 !== $null) {
     if (($mta.vehicle($1,%b).name == Foot) || ($mta.vehicle($1,%b).name == Unknown)) mta.say $1 Unable to get in what car $mta.name($1,%b) are in!
if ($mta.name($1,%b).name == Unknown) mta.say $1 Failed ID.
     else mta.say $1 $mta.name($1,%b) is in/on $mta.vehicle($1,%b).name - Damage: $calc(100 - $mta.health($1,%b).vehicle) %manhunt %
   }
   else {
     if (($mta.vehicle($1,$2).name == Foot) || ($mta.vehicle($1,$2).name == Unknown)) mta.say $1 Unable to get in what car u are in.
     else mta.say $1 $mta.name($1,$2) is in/on $mta.vehicle($1,$2).name - Damage: $calc(100 - $mta.health($1,$2).vehicle) %manhunt %
   }
 }

Why is that failed id not working ??

OMG!

Posted
 if ($3 == !car) {
   %b = $iif($4 isnum,$4,$mta.getid($1,$4))
   if ($4 !== $null) {
     if (($mta.vehicle($1,%b).name == Foot) || ($mta.vehicle($1,%b).name == Unknown)) mta.say $1 Unable to get in what car $mta.name($1,%b) are in!
if ($mta.name($1,%b).name == Unknown) mta.say $1 Failed ID.
     else mta.say $1 $mta.name($1,%b) is in/on $mta.vehicle($1,%b).name - Damage: $calc(100 - $mta.health($1,%b).vehicle) %manhunt %
   }
   else {
     if (($mta.vehicle($1,$2).name == Foot) || ($mta.vehicle($1,$2).name == Unknown)) mta.say $1 Unable to get in what car u are in.
     else mta.say $1 $mta.name($1,$2) is in/on $mta.vehicle($1,$2).name - Damage: $calc(100 - $mta.health($1,$2).vehicle) %manhunt %
   }
 }

Why is that failed id not working ??

Try this:

if ($3 == !car) {
 %b = $iif($4 isnum,$4,$mta.getid($1,$4))
 if ($4 != $null) {
   if ($mta.name($1,%b) == Unknown) mta.say $1 Failed ID.
   elseif (($mta.vehicle($1,%b).name == Foot) || ($mta.vehicle($1,%b).name == Unknown)) mta.say $1 Unable to get in what car $mta.name($1,%b) is in!
   else mta.say $1 $mta.name($1,%b) is in/on $mta.vehicle($1,%b).name - Damage: $calc(100 - $mta.health($1,%b).vehicle)
 }
 else {
   if (($mta.vehicle($1,$2).name == Foot) || ($mta.vehicle($1,$2).name == Unknown)) mta.say $1 Unable to get in what car you are in.
   else mta.say $1 $mta.name($1,$2) is in/on $mta.vehicle($1,$2).name - Damage: $calc(100 - $mta.health($1,$2).vehicle)
 }
}

Posted

/me drops dead

"Never argue with an idiot. They bring you down to their level and beat you with experience."

"Arguing on the internet is like the Special Olympics. Even if you win, you're still retarded."

signature.gif

  • Recently Browsing   0 members

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