Jump to content

andeh

Members
  • Posts

    314
  • Joined

  • Last visited

Posts posted by andeh

  1. or

    on *:SIGNAL:mta.enter: {
      if ($mta.skin($1,$2) == 2)  && ($mta.vehicle($1,$2).name == Police) &&  (!$mta.passenger($1,$2)) {
           mta.msg $1 $2 Please Step Out Of The Police Car! $chr(126) 30 Secs Left!
           $+(!.timercopcar,$1,.,$2) 5 30 mta.slap $1 $2
     }
    }
    on *:SIGNAL:mta.exit:{ $+(!.timercopcar,$1,.,$2) off }
    on *:SIGNAL:mta.part:{ $+(!.timercopcar,$1,.,$2) off }
    

  2. on *:SIGNAL:mta.command: {
     var %a = $iif($4,$iif($mta.name($1,$4) != Unknown,$4,$mta.getid($1,$4)),$2)
     if ($3 == !skin) {
       if (%a != $null) {
         mta.say $1 $mta.name($1,%a)  Skin: $mta.skin($1,%a).name
       }
       else {
         mta.say $1 Error, ID Not Present!
       }
     }
    }

    although im not even sure you would still need the else

    on *:SIGNAL:mta.command: {
     var %a = $iif($4,$iif($mta.name($1,$4) != Unknown,$4,$mta.getid($1,$4)),$2)
     if ($3 == !skin) { mta.say $1 $mta.name($1,%a)  Skin: $mta.skin($1,%a).name }
    }

    or just ^^.

    or

    on *:SIGNAL:mta.command: {
     var %a = $iif($4,$iif($mta.name($1,$4) != Unknown,$4,$mta.getid($1,$4)),$2)
     if ($3 == !skin) {
    if (%a == -1) mta.say $1 Error, ID Not Present!
    else mta.say $1 $mta.name($1,%a)  Skin: $mta.skin($1,%a).name 
    }
    }

  3. Theres so many things wrong with that script, i tell you few now.

    Use:

    if

    elseif

    elseif

    elseif

    etc

    Also don't use "|" in mta.say use $chr(124)

    Finaly change things like this:

    if ($3 == !limitations) {
     mta.msg $1 Army Enlisters have exclusive access Stubby Shotgun Use. Non Enlisted Users will be killed immediatly after the death of their victim.
    }
    if ($3 == !armystatus) { 
     mta.say $1 ||Army Script: $readini(Army.ini, Status, Script_is) ||Army Lock: $readini(Army.ini, Lock, Lock_is) ||
    }
    

    for example:

    if ($3 == !limitations) mta.msg $1 Say something here!!!!!!
    elseif ($3 == !armystatus) mta.say $1 Say Something HERE!!!!!
    elseif ($3 == !armystatus) mta.say $1 Say Something HERE!!!
    elseif ($3 == !armystatus) mta.say $1 Say Something HEREE!!!!!
    

    And so on...

  4. i could theoretically get the server to send admin a packet when someone has actually been idle for say 5mins

    that be great, becuase u can't go by mta.idle becuase its only counts when a player has said something. Not everyone speaks every 5 mins, specially when racing.

  5. i could theoretically get the server to send admin a packet when someone has actually been idle for say 5mins

    that be great, becuase u can't go by mta.idle becuase its only counts when a player has said something. Not everyone speaks every 5 mins, specially when racing.

  6. MTAMA CPU usage is down to the script loaded, if the script is well wrote and uses hash tables and limited amount of timers the CPU usage drops down loads. I host TLR Scripts on 2.2 Celly and highest CPU usage is 60%.

  7. MTAMA CPU usage is down to the script loaded, if the script is well wrote and uses hash tables and limited amount of timers the CPU usage drops down loads. I host TLR Scripts on 2.2 Celly and highest CPU usage is 60%.

×
×
  • Create New...