Jump to content

Scooby

MTA Contributors
  • Posts

    976
  • Joined

  • Last visited

Everything posted by Scooby

  1. Fixed: wlidcard not working 100% !toptimes plus a few small bugs pointed out. Thanks. Link Updated on first post.
  2. Thats some ugly scripting.. lol so u want an !admin command to show admins who are away, along with a reason? i dont know about anyone else but on my race server, people dont tend to idle, especially admins. it was easy to idle back in VC because of the client. I find people tend to leave the server now since u cant do anything else other than race. If u still really want to add this, just say and i'll post u the script.
  3. whats it not doing? its supposed to show u the name of a random map to start it, type !map random
  4. u all seemed to miss out mta.part so it will never work fully with what ur trying. if some1 leaves the server half way thru ur DM then the counter will never reach 1 the only real way to check the winner is to check how many are stll alive on each death and on some1 leaving the server. a simple while loop counting the alive players on both will do the trick. my script has individual stats for both races and dm's and works fine for both.
  5. i think we all needed it if we had over 200 maps. i know some people on the forums have said they have thousands of maps uploaded and around 800 missing. u might want to run it a few times just to be sure its got them all. i tried it on the tmm server, they had around 80 missing out of 350, took 3 times to get them all updated.
  6. Things are looking good now, b4 we got this working i was getting around 10-15 missing maps on my server, and i know some are getting like 50-100 missing, this fixes the problem dont waste ur time reading this... download it! - load it - and connect job done. unknown maps = 0
  7. Scooby

    MTA:MA Scripting

    ok thx, i'll try it out next time.
  8. just paste copys of the 140 that come with the server
  9. Argh... what is it with the forums... cant post code wtf! half the text dissapears. [email protected] ^ add my msn, i wrote u a reply but cant post it here, the code wont show after the while loop.
  10. ok nice, also, u could always host one... wouldnt take u long just fire up a server and stick about 1000 maps in:P
  11. if u mean is it possible to have stats for deathmatch style maps then yes. but its not as simple as just adding a few writeini's its too late for me to try and make anything out of that mess also, u cant do it by a few lines in the startrace alias.
  12. OK, ive posted a link for the download on the 1st post, at the bottom. Any problems, post here.
  13. Scooby

    MTA:MA Scripting

    ok seems its not possible to paste the entire command, if u look after the bit: while (%a the rest is missing, including the var %b = part i tried to paste a reply and after trying for about an hour.. i now give up. looks like lil_toadys script, edited, to read thru an ini rather than the players. /me slaps lil_toady the problem seems to be in your first if statement, its not showing above^ coz its not pasted properly, but if u read what its doing its something like: if %b > 1st { 1st becomes 2nd - and the new 1st becomes %b } ur missing 2nd becomes 3rd, so ur 3rd place will mess up. if (%b > %c) { %g = %e %h = %f %e = %c %f = %d %c = %b %d = $ini($scriptdir $+ points.ini,POINTS,%a) } i think thats right:P confusing choice of variables wow eventually i got it to post something thats readable!
  14. well my original intention was to make something similar to what i run there, but not quite as good, basically coz some people were having problems with their current scripts, but as it turns out, its pretty much the same, the only major difference is, i havent added the 3 top times, ive only got it showing the top 1. it has some extra things that mine doesnt have but the main thing is every stat is recorded, so anything u might wanna do to it will be possible. also i added a dialog so u can customise the admin level required for a command on most of the major admin commands.thers also a points system and a rank system that i dont have on mine.
  15. ok ive added a few more extras, nothing major, i'll see if i can find somewhere to host it later on and post the link up when i do.
  16. ok good luck. also if u do have any more questions and need a quicker answer, im usually on the #mta.scripting channel on irc. (irc.multitheftauto.com)
  17. so the info u get from ur ini is in ticks? if so then yes it would work. but u would need to convert it to a time format to display. wouldnt it have been quicker to just try it?
  18. u can use $time to show current time if thats what u mean like: if ($3 == !time) mta.text $1 The Time is: $time im not sure how ur time is stored in ur ini, im guessing its like 1min 45secs - but even if u store both time format and ticks format, i dont think theres a way of returning an exact split time unless u write an alias to do that. u can of course return a time down to the exact second, but ur calc is wrong. $mta.time($1,$2) will return the current ticks since the start of the race, and ur using the info in the ini which i think is stored in time format it is possible to do what ur trying tho, but only down to the second using that format. all u need to do is split ur stored time like u have done, but also split ur current time then work out the difference. which u could do in a seperate alias. in my script i store all time in ticks format, so i can just calc 1 from the other, then i have my own alias that converts ticks into time down to 1/100th second. eg: u finsish a race with the time 1:30.555 and ur best ever might be 1:30.554 so it would show ur split time as +0:00:001 im not sure what info u store to ur ini, and talking like this on the forums could take u days/weeks to get it right its all kinda hard to explain on a forum, so if u do wanna go ahead, just add my msn and i'll help u thru it or sort u out one way or another. also, u said u have no access to any lists? have u looked in mirc help files? also the SA-scripting.html file that came with mtama? they are the only lists we all use and u have access to both... im sure:)
  19. sry my bad, u need to also add a $+ between $mta.nick($1,$2) and .ini so its: !writeini -n " $+ $scriptdirrecords\ $+ $mta.nick($1,$2) $+ .ini" race mapname time have fun:)
  20. yea u just need to add a $+ between the backslash and the $mta.nick !writeini -n " $+ $scriptdirrecords\ $+ $mta.nick($1,$2).ini" race mapname time that should do the trick and get u individual ini's per player in the folder named records.
  21. Thx, i'll be posting a link to download it in a day or 2. i want to make sure its working ok first They do have a betting script there too, so if u do visit the server, plz note this is not part of the PRS.
  22. ok ive added a few more requested commands and the script is running on the =TmM=/GTAMP server. As far as i can tell, seems to be bug free, if anyone wants to go check it out, the ip is: 213.246.63.110:22003 I wont be making many updates to this script, so if anyone is considering using it and requires more commands adding plz post asap.
  23. if u didnt need help why would u try it? this code is for mtavc^ and yes it has an error, its missing a } i think u were trying to do this: on *:SIGNAL:mta.command: { if ($3 == !hello) { mta.say $1 Hello all! } } to use in race, u would need to change it to: on *:SIGNAL:mta.command: { if ($3 == !hello) mta.text $1 Hello all! } remember, u cant just paste this into ur existing script, because more than likely u will already have an alias called: on *:SIGNAL:mta.command: { if thats the case, then u would only need to add this line: if ($3 == !hello) mta.text $1 Hello all! btw: sorry i didnt try the full setup im just explaining the error in the code above.
  24. the one i posted was for sa, note: mta.nick($1,$2) the one above it is for vc, note: mta.name($1,$2) if u want it for VC remember to fix the error in this line: if (country-rirdata isin %trace) { to: if (country-rirdata isin %t) { have fun:)
  25. all u need do is save the data to the ini in the format: nick + race name = time u can specify the location in the line that reads and writes this: !writeini -n " $+ $scriptdir $+ times.ini" followed by ur info this will save all times to 1 ini, from what ur saying u want to have 1 file per map? not sure why, since u can add it all to 1 file, ur gonna end up with 100's of ini's. if this is still a little beyond ur skills, or youre still not sure what to do, u can add my msn and i'l help u out from there. [email protected]
×
×
  • Create New...