Jump to content

lil Toady

Retired Staff
  • Posts

    2,318
  • Joined

  • Last visited

Posts posted by lil Toady

  1. mistake m8 :P part is when player leaves the server, exit when he leaves a car

    Right, it's needed on both events, if he leaves and someone else joins with the same id, the poor bugger who just joint is gonna get booted :P

    true, so here's the final code:

    on *:SIGNAL:mta.enter: {
      if (Robber* iswm $mta.skin($1,$2).name) {
        if ($mta.vehicle($1,$2).name == Police) {
         if (!$mta.passenger($1,$2)) {
           mta.msg $1 $2 Please Step Out Of The Police Car
           $+(!.timercopcar,$1,.,$2) 1 30 mta.kick $1 $2
         }
       }
     }
    }
    on *:SIGNAL:mta.exit:{
     $+(!.timercopcar,$1,.,$2) off
    } 
    on *:SIGNAL:mta.part:{
     $+(!.timercopcar,$1,.,$2) off
    }

  2. i want to give a scripts to my friend, but i'm afraid to he will edit him and tell everybady its his script xD and i want to protect them like a MTAMA or GuS, now how to use this DLL? xD

    gus is free to edit, it doesn't have any kind of protection as far as i know

  3. Well, we've had a few competitions where you've been able to win servers for a month or two...

    oh true, forgot about that, one more way to get a free server :P

  4. on *:SIGNAL:mta.enter: {
      if (Robber* iswm $mta.skin($1,$2).name) { 
        if ($mta.vehicle($1,$2).name == Police) {
         if (!$mta.passenger($1,$2)) {
           mta.msg $1 $2 Please Step Out Of The Police Car
           $+(!.timercopcar,$1,.,$2) 1 30 mta.kick $1 $2
         }
       } 
     }
    }
    
    on *:SIGNAL:mta.part:{
     $+(!.timercopcar,$1,.,$2) off
    }
    

    mistake m8 :P part is when player leaves the server, exit when he leaves a car

    on *:SIGNAL:mta.enter: {
      if (Robber* iswm $mta.skin($1,$2).name) {
        if ($mta.vehicle($1,$2).name == Police) {
         if (!$mta.passenger($1,$2)) {
           mta.msg $1 $2 Please Step Out Of The Police Car
           $+(!.timercopcar,$1,.,$2) 1 30 mta.kick $1 $2
         }
       }
     }
    }
    
    on *:SIGNAL:mta.exit:{
     $+(!.timercopcar,$1,.,$2) off
    }
    
    

  5. /me had a free server for few months :roll:

    But i got it cause i made some scripts for some clan, so they hosted it for me. You can have a free server only if you have a friend in a hosting company or if you do good for somebody who can host you a server. Dunno other ways, but doesnt mean there are none ;)

  6. try puting in commands

    on *:SIGNAL:mta.command:{
     if ($3 == !give) {
       var %a = $iif($4 == $null,$2,$iif($mta.name($1,$4) != Unknown,$4,$mta.getid($1,$4)))
       if %a != -1 && %a != $2 {
         if (($5) && ($5 isnum) && ($5 > 0)) {
           if ($readini(rpg.ini,$mta.name($1,$2),cash) >= $5) {
             mta.say $1 $mta.name($1,$2) gave $chr(36) $+ $5 to $mta.name($1,%a)
             !writeini -n "rpg.ini" $mta.name($1,%a) cash $calc($rpg.cash($1,%a) + $5)
             !writeini -n "rpg.ini" $mta.name($1,$2) cash $calc($rpg.cash($1,$2) - $5)
           }
           else mta.msg $1 $2 Error - You have not enough cash!
         }
         else mta.say $1 Syntax: !give 
       }
       else mta.msg $1 $2 Cannot give urself/invalid person money
     }
    }

  7. alias rpg.give {
     var %a = $iif($4 == $null,$2,$iif($mta.name($1,$4) != Unknown,$4,$mta.getid($1,$4)))
     if %a != -1 && %a != $2 {
       if (($5) && ($5 isnum) && ($5 > 0)) {
         if ($readini(rpg.ini,$mta.name($1,$2),cash) >= $5) {
           mta.say $1 $mta.name($1,$2) gave $chr(36) $+ $5 to $mta.name($1,%a)
           !writeini -n "rpg.ini" $mta.name($1,%a) cash $calc($rpg.cash($1,%a) + $5)
           !writeini -n "rpg.ini" $mta.name($1,$2) cash $calc($rpg.cash($1,$2) - $5)
         }
         else mta.msg $1 $2 Error - You have not enough cash!
       }
       else mta.say $1 Syntax: !give 
     }
     else mta.msg $1 $2 Cannot give urself/invalid person money
    }
    

  8. on *:SIGNAL:mta.command:{
     if ($3 == !taxi) {
       if ($mta.status($1,$2) == 2) mta.say $1 $mta.name($1,$2) needs a Taxi at $mta.area($1,$2)
       else mta.msg $1 $2 Error - You need to be ingame to call for a taxi!
     }
     if ($3 == !info) mta.say $1 Taxi Scripts By > [XE]Tommis
     }
    

    ahh.. alwayz thought that i made this lil piece of shit scripty tommis :(

    here i've just made better one for you :D

    on *:SIGNAL:mta.command:{
     if ($3 == !taxi) {
       if ($mta.status($1,$2) != 2) mta.msg $1 $2 You need to be in game to call a taxi!
       else {
         var %a = 0,%b
         while (%a < $mta.maxplayers($1))  {
           if ($taxi.driver($1,%a) == 1) {
             mta.msg $1 %a $mta.name($1,$2) needs a taxi at $mta.area($1,$2)
             if (!%b) %b = $mta.name($1,%a)
             else %b = %b $+ , $mta.name($1,%a)
           }
           !inc %a
         }
         if (%b) mta.msg $1 $2 Taxi Drivers: %b Notified.
         else mta.msg $1 $2 There are no Taxi Drivers in Server.
       }
     }
     elseif ($3 == !drivers) {
       var %a = 0,%b
       while (%a < $mta.maxplayers($1))  {
         if ($taxi.driver($1,%a) == 1) {
           if (!%b) %b = $mta.name($1,%a)
           else %b = %b $+ , $mta.name($1,%a)
         }
         !inc %a
       }
       if (%b) mta.say $1 Taxi Drivers in Server: %b
       else mta.say $1 There are no Taxi Drivers in Server.
     }
     elseif ($3 == !help) mta.msg $1 $2 Taxi Script Commands: !taxi, !drivers, '/msg taxi on/off'
    }
    on *:SIGNAL:mta.pm:{
     if ($3 == taxi) {
       if ($4 == on) {
         !writeini " $+ $scriptdir $+ taxi.ini" Drivers $mta.name($1,$2) 1
         mta.msg $1 $2 You are now a taxi Driver. (to stop being a driver do /msg taxi off)
       }
       elseif ($4 == off) {
         !remini " $+ $scriptdir $+ taxi.ini" Drivers $mta.name($1,$2)
         mta.msg $1 $2 You are not a taxi Driver any more.
       }
       else mta.msg $1 $2 Error - Syntax: /msg taxi on/off
     }
    }
    on *:SIGNAL:mta.part:{
     if ($taxi.driver($1,$2) == 1) !remini " $+ $scriptdir $+ taxi.ini" Drivers $mta.name($1,$2)
    }
    alias taxi.driver !return $readini($scriptdir $+ taxi.ini,Drivers,$mta.name($1,$2))
    

    Commands: !taxi, !drivers, '/msg taxi on/off'

  9. here u go

    on *:SIGNAL:mta.command:{
     if ($3 == !in) {
       var %in = $mta.ingame($1)
       mta.say $1 There $iif(%in == 1,is,are) %in $iif(%in == 1,player,players) in game.
     }
     elseif ($3 == !out) {
       var %out = $mta.outgame($1)
       mta.say $1 There $iif(%in == 1,is,are) %out $iif(%in == 1,player,players) out game.
     }
     elseif ($3 == !list) {
       if ($4 == in) {
         var %aa = 0,%in
         while (%aa <= $mta.maxplayers($1)) {
           if ($mta.status($1,%aa) == 2) {
             if (!%in) %in = $mta.name($1,%aa)
             else %in = %in $+ , $mta.name($1,%aa)
           }
           !inc %aa
         }
         mta.say $1 $iif(%in,Players In-game: %in,There are currently no players In-game)
       }
       elseif ($4 == out) {
         var %aa = 0,%out
         while (%aa <= $mta.maxplayers($1)) {
           if ($mta.status($1,%aa) == 1) {
             if (!%out) %out = $mta.name($1,%aa)
             else %out = %out $+ , $mta.name($1,%aa)
           }
           !inc %aa
         }
         mta.say $1 $iif(%out,Players Out-game: %out,There are currently no players Out-game)
       }
     }
    }
    alias mta.ingame {
     var %a = 0,%b = 0
     while (%a <= $mta.maxplayers($1)) { 
       if ($mta.status($1,%a) == 2) %b = %b + 1
       !inc %a
     }
     !return %b
    }
    alias mta.outgame { 
     var %a = 0,%b = 0 
     while (%a <= $mta.maxplayers($1)) { 
       if ($mta.status($1,%a) == 1) %b = %b + 1
       !inc %a
     }
     !return %b
    }
    

  10. I think its possible. U can just write down in da scrit the color of every vehicle id so the script will tell ya color of the car by gettin its id...

×
×
  • Create New...