Jump to content

Scooby

MTA Contributors
  • Posts

    976
  • Joined

  • Last visited

Everything posted by Scooby

  1. Scooby

    MTA automessages.

    Sure, but i dont think theres a way to stop individual unnamed timers. coz as it was b4, everytime u connect, a new timer is started, the old one didnt get stopped. so u would end up with tons of timers running and eventually loads of messages.
  2. No it wont, u need to use $calc(bla + bla), so it should look something like this: on *:SIGNAL:mta.kill: { !writeini -n " $+ $Dm.dir $+ Dm.ini" Level $mta.name($1,$2) $calc($readini($dm.dirdm.ini,level,$mta.name($1,$2)) + 1) mta.say $1 $mta.name($1,$2) Just Gained 1 Level } this would add 1, of course to subtract, u would just replace the + with a - Also, ur pic seems a little on the large size
  3. As it is, they would have to use Rcon commands, although it could be altered. look for this line: alias gus.level !return $iif($readini($scriptdir $+ admin.ini,ADMIN,$mta.nick($1,$2)),$readini($scriptdir $+ admin.ini,ADMIN,$mta.nick($1,$2)),0) and replace it with: alias gus.level !return $iif($readini($scriptdir $+ admin.ini,ADMIN,$mta.nick($1,$2)) == $null,$calc($mta.level($1,$2) * 2),$v1) This should return rcon admin level if ur not logged in on gus admin but logged into rcon admin, ive doubled it so it should work for all the commands. if u get anymore problems or questions or need a faster reply my msn is: [email protected] Add me and i'll see what i can do
  4. Ive never done any scripting on GTA3, but i know in VC, there is no way to get or alter the cash showing in the game. im guessing this is the same for GTA3 aswell.
  5. Scooby

    MTA automessages.

    U should name the timer, or on connect, ul get loads of timers running. .timerspam1 0 600 mta.text $1 bla... .timerspam2 0 900 mta.text $1 bla... this way u can only have 1 timer called 'timerspam1' whereas u can have unlimited 'timer's
  6. U have to add ur name as admin to the server config, along with ur pass and admin level, quite a simple job. then in game, f8 brings up the console, type in the console: rcon_login yourpass
  7. thats huge I'll let toady sort this one out for ya be better to rewrite the whole lot tho. The problem with having 10 names and times, is displaying them They dont fit in the chat.
  8. they too will get invalid ip and get kicked maybe? i dont know... u cant use this admin system with dynamic ip's, ul have to use rcon. or manually edit the ini where ur ip is stored. im sure i read this somewhere once b4 if u ask me, mta went to the trouble of making a perfectly decent admin login system, so why make another, especially one that doesnt work fully.
  9. Scooby

    !creator script

    elseif ($3 == !addcreator) && ($mta.level($1,$2) > 2) { if (!$4) mta.pm $1 $2 Error: Specify Details. else { !writeini -n auth.ini details $replace($mta.race($1),$chr(32),$chr(45)) $4- mta.pm $1 $2 Details Saved. } } elseif ($3 == !remcreator) && ($mta.level($1,$2) > 2) { !remini -n auth.ini details $replace($mta.race($1),$chr(32),$chr(45)) mta.pm $1 $2 Details Removed. } elseif (!creator* iswm $3) mta.text $1 $iif($readini(auth.ini,details,$replace($mta.race($1),$chr(32),$chr(45))) == $null,No Details Saved,Details: $v1) U mean something like this? Also, If ur using gus, change mta.level to gus.level
  10. Scooby

    !addsus script

    edit what u like, i made it so it only works for level 3 and above already anyway.
  11. this: # ASE # Required: No # Purpose: Defines whether the server should report to the All Seeing Eye (can be seen in the Server Browser) # Format - ASE # Notes: # Set to 1 to enable, anything else to disable ASE 1
  12. There is a part in the server config that has to be set in order for it to show.
  13. Thats the whole idea of the script. if u got it working, u just need to add ur admins and thats it. everything else should work.
  14. Scooby

    !rank script

    i can say that it works, it works fast on my pc, and as long as it works i dont care about any criticism made, i like my $iif statements as they don't make a lot of difference when processing and the script still works perfectly, the only thing someone might find a headache is when scripting the statement as there are so many brackets, but that's also not hard. At first, i thought it looked kinda messy too however i know things look a lot more bunched up when u add them too a post, in a script it probably doesnt look half as bad. U should always try to make the script effcient tho, its ok saying 'well it works' but when u add all these things together by the time u have a full script, it could be over 20 times slower.
  15. Scooby

    !rank script

    u cant use mta.rank since its already used for ur race rank. so u should name it something else. not sure why u would call join's a rank tho, people will just join and quit loadsa times to get a higher rank.
  16. Look in ur script for the bit thats to do with !admin, is should look like: elseif ($3 == !admin) || ($3 == !admins) { var %aa = 0,%bb,%cc,%dd while (%aa <= $mta.server($1).cmax) { if ($readini($scriptdir $+ admin.ini,ADMIN,$mta.nick($1,%aa)) >= 2) { if (!%bb) %bb = $mta.nick($1,%aa) elseif ($numtok(%bb,32) <= 7) %bb = %bb $mta.nick($1,%aa) elseif (!%cc) %cc = $mta.nick($1,%aa) elseif ($numtok(%cc,32) <= 7) %cc = %cc $mta.nick($1,%aa) elseif (!%dd) %dd = $mta.nick($1,%aa) elseif ($numtok(%dd,32) <= 7) %dd = %dd $mta.nick($1,%aa) } !inc %aa } if (%bb) { mta.text $1 Online Admin(s): %bb if (%cc) mta.text $1 %cc if (%dd) mta.text $1 %dd } else mta.text $1 There are no online admins. } and change it to this: elseif (!admin* iswm $3) { var %a = 0, %b = None while (%a < $mta.server($1).cmax) { var %c = $readini($scriptdir $+ admin.ini,ADMIN,$mta.nick($1,%a)) if (%c > 2) { if (%b == None) %b = $mta.nick($1,%a) $+ ( $+ %c $+ ) else %b = %b $+ , $mta.nick($1,%a) $+ ( $+ %c $+ ) } !inc %a } mta.text $1 Current Admins: %b $+ . } I think this should work, i dont use GUS, but i took this from the PRS, it seems to have these things u ask for
  17. Scooby

    !addsus script

    on *:SIGNAL:mta.command: { var %a = $iif((!$4),$2,$iif(($mta.getid($1,$+(*,$4,*)) == $null),$2,$v1)) if ($3 == !addsus) && ($mta.level($1,$2) > 2) { if (%a == $2) mta.pm $1 $2 Error: Invalid Name. else { !writeini -n sus.ini sus $mta.nick($1,%a) 1 mta.pm $1 $2 Suspect $mta.nick($1,%a) Added. } } elseif ($3 == !remsus) && ($mta.level($1,$2) > 2) { if (%a == $2) mta.pm $1 $2 Error: Invalid Name. else { !remini -n sus.ini sus $mta.nick($1,%a) mta.pm $1 $2 Suspect $mta.nick($1,%a) Removed. } } } on *:SIGNAL:mta.join: { if ($readini(sus.ini,sus,$mta.nick($1,$2)) == 1) { !msg #YOUR-IRC-CHANNEL-NAME Warning: Suspect $mta.nick($1,$2) Has Joined! } } Something like that i guess Of course, ur script mirc needs to be connected to ur channel, but that should work ok for u
  18. Scooby

    !creator script

    There's no way of knowing who made the map, it would be easy enough to add a command to manually add the makers details tho.
  19. First of all make sure the script is loaded, in game, type !info and see if it says MTA:MA:GUS..... if this doesnt show, then ur script isnt loaded and u should go thru the steps in the first post again. however if this does show, im guessing u just have to set the script up, which also should be easy enough, typing !set should give u some kind of message.
  20. To me it would have been just as easy to do !setmap and save the details in a file script side. does this exe then send the details to his script or just make a list of all the maps that has respawns in the maps folder? Edit: ok i think see what u mean now.
  21. Well, some of us play MTA:SA everyday, we'd be lost without it. If u like VC then chances are ul like SA too. U should get it or at least try it out Im sure u could get it if u tried.
  22. it would take too long, so no. set them manually
  23. The map files arent usually with the scripts tho. i suppose theres ways of doing it but nothing simple. Move on to something else.
  24. umm... RS = Respawn Maps dont respawn
×
×
  • Create New...