Jump to content

Scooby

MTA Contributors
  • Posts

    976
  • Joined

  • Last visited

Everything posted by Scooby

  1. hmm what is the 'RS of a map'? or do u mean the command for if a player respawns? on *:SIGNAL:mta.respawn: { ;$1 = Server ;$2 = ID } or do u mean is there a way to detect if the map has respawns on? Answer: no
  2. no, i mean that once the next map starts, theres already 5 lines of text, race name, top 3 times, and race rating. adding another 3-4 lines of text saying who won the last map, would just make it miles worse. dont get me wrong, im not saying its not possible, coz i can think of a few ways of doing it. The best way i can think of is, to set the map duration when u set the map as a survival map, eg, u !setmode survival, then !setduration this is the only way i can think of where it wont effect the next map, this is ok i guess if u only have a few maps to set. but it relys on the admin setting the map time limit correctly for each map, or its not gonna work. but once set properly, it would work perfectly and not interfere with the next map. All in all its still a lot of work to do just to have this other type of mode what do u think? Also, it would be nice to hear from anyone else on this matter.. would anyone else want this kind of mode adding?
  3. Ok Ive looked into it, But it seems with no cp's the only way to detect the end of the race is at the start of the next race, so showing points would only show after the next race had started and i think this'll be really messy. I cant see any other way of detecting this so it looks like a no go.
  4. I make scripts for both, so do a lot of us, its just most of the peoples problems are for SA, many scripts are already available for VC. Even tho the differences between the two are very minor.
  5. U could go on forever trying to make it better, but the fact is, people can ban people even if theyre not doing anything wrong. if u really wanna go ahead with vote banning, then u should do what i did on my old script, the ban is for a set time, eg: 1 hour, that way it could keep out annoying cheaters, plus if some1 is accidentally banned, its only for an hour. Of course, its not a simple thing to make if ur a beginner, u cant really just have a timer running to unban them in case ur mirc crashes, its not hard tho, maybe something for u to look at... it'll keep u busy:) just add the name, ip and time to an ini, then get a timer checking the ini for unbans. when the time is reached, the player is unbanned. this will work even after mirc has been reset. problem solved.
  6. just working is ok for a start, but once u make a complete script and u check mirc's cpu usage, u will see the difference between just working and working well. u should always try to make things efficiently, i mean ur votekick script was like twice as big as any id seen, imagine a complete script like that. voteban sounds a silly idea, what do u do if a few friends join and decide they wanna ban some random player. if theres only them in the server, then ur poor random player just got banned for nothing. and as for it being any bigger, u can make it the same size, all but a few lines... but like i said, sounds kinda pointless.
  7. Ahh yeah my bad, i didnt notice u save both... must be coz its the biggest votekick script ive ever seen.
  8. looks kinda big, i can see many ways u could make it smaller tho, u should use player id's or people can just change their names and revote, also the player ur voting on can just change names. Also, u could put all the !remini lines in 1 alias or just delete the ini totally, that u would shorten it by about 18 lines. gj anyway, keep at it
  9. Some sweet flying there Wheelburner, nice vid
  10. Ahh thanks for reminding me, ive been doing some updates and was about to upload a new version, id forgot all about ur respawnable dm's, yeah i'll see what i can do, shouldnt take me too long.
  11. Why are u asking that here? shesh! U cant write a $null so u get that error. also, %d will never be $null, ur alias returns an id number, how about u do it like this: on *:SIGNAL:mta.startrace: { san.jugadores $1- } alias san.jugadores { var %a = 0,%nick while (%a < $mta.server($1).cmax) { %nick = $mta.nick($1,%a) if (%nick != $null) && (%nick != Player) !writeini -n " $+ $scriptdirstats.ini" RACES %nick $gus.add($gus.races($1,%a),1) !inc %a } }
  12. Sorry, didn't see your post until now. Basically, you can hold an unlimited amount of items. These items are made by other users who own factories, etc. When a factory owner produces an item, they specify which category the item goes into. These item categories are stored in things.ini and everything has already been scripted. The reason I posted here was because I needed a script to find all items owned by a person, which are in the 'food' category- all my scripting attempts worked fine on my pc but kept causing mtama to time out on the scripts host pc when someone typed !food - i think the script took up a lot of cpu usage when run, and that's why I posted here, to try and find a better way to do it. how much food do u have in ur ini? i have a list of about 400 items in mine and it works fine. hmm im not sure why u should have a problem either way. so u add all players items indivudually? eg: [Dave] food=1 drink=3 money=437586 etc... or are the items randomly added too? theres a few ways u can do it, none of them are too hard. might be better to chat on msn, im sure one way or another i can help u out. add my email if u do get stuck. [email protected] im on quite a lot.
  13. Scooby

    Help Plz

    hehe yeah as i said^ in my previous post. .timer 5 0 mta.slap $1 $2 was an easy quick fix. i dont get any packet loss in 0.5, so id use that. adding tons of checks to see if a player is spawned, in game, unpaused, still alive, etc.. u can go on...seems a bit extreme. i have so many checks in mine, it even checks for armour glitching althought thats not needed in gta3 my advice would be to just kick them if they try to spawn b4 they register. a lot less spammy.
  14. Scooby

    Help Plz

    well ur script will just slap them 1 time after 30 secs if they arent registered, and those who are registered and their ip matches, will get a pm saying they logged in automatically everytime they spawn. maybe u need to take a look at ur login function.
  15. Scooby

    Help Plz

    i never had no packet loss probs in 0.5 (maybe ur server sux:P), ud have to also be careful in case he exits game, or ul get unlimited slaps which would make everyone time out u can go on for ever doing checks, this was just a simple resolution. He could always use: on *:SIGNAL:mta.spawn:{ if ($mta.level($1,$2) < 1) { while ($mta.health($1,$2) > 0) { mta.slap $1 $2 } } } although, if u ask me, why kill an unregistered player, seems pointless.
  16. Scooby

    Help Plz

    this should work every time, although i think in some early versions of one of the dll's 2 of the robber spawns we're missing, so if its as a robber that ur talking about, maybe u need to update. if thats not the case, i dont think its due to lag, but u could add a delay.. on *:SIGNAL:mta.spawn:{ if ($mta.level($1,$2) < 1) .timer 1 3 unregistered $1 $2 } alias unregistered { .timer 5 0 mta.slap $1 $2 mta.msg $1 $2 Please register your name before spawning! type /msg register } let me know how it goes
  17. Scooby

    Help Plz

    well i'd need to know what u use for a registered player, i know some use $mta.level, so i'll add it with that for now. on *:SIGNAL:mta.spawn:{ if ($mta.level($1,$2) < 1) { .timer 5 0 mta.slap $1 $2 mta.msg $1 $2 Please register your name before spawning! type /msg register } } of course, im guessing u use $mta.level for ur admin levels, if not, just replace this for whatever u use.
  18. Scooby

    Help Plz

    Did u fix this yet? be careful if u plan on trying to disable the crusader, or u will give the armour glitch to anyone trying to spawn as a crusader, making all players who spawn after this, have 100% armour.
  19. if u just have %d = %d + 1 u said var %d = 0, so after adding + 1, %d then becomes '0 + 1', then u add another + 1, so %d becomes '0 + 1 + 1' and so on, u need to use: %d = $calc(%d + 1) or !inc %d i dont quite understand really what ur trying to do here, im guessing u can only hold different 5 items, but an unlimited amount of each? i have a similar thing in one of my rpg scripts, but i added all items in 1 list, i have around 400 items. if u tell me what u want, maybe i can suggest an easier way to do what ur trying to do.
  20. 2-,58 use mirc, help, search $gettok, it explains it in full. the trace script is fine, i tested it, i dont see why u need another
  21. if u need to ask how to make it, then theres no point u even trying, u should use the !trace script that's already out there.
  22. im not sure if i added individual wins per map, but u can always add a win ratio with, mta.text $1 $mta.nick($1,%a) $+ 's Win Ratio: $round($calc($prs.rank1($1,%a) / $prs.finishes($1,%a)),2) However, people might be reluctant to finish a race if theyre not 1st, since it will ruin their win ratio. maybe u need to use wins / starts? if so, mta.text $1 $mta.nick($1,%a) $+ 's Win Ratio: $round($calc($prs.rank1($1,%a) / $prs.racestarts($1,%a)),2)
  23. race finishes / race starts = race ratio
  24. VC or SA? Theres a few ways u can do it, either b4 the line that kicks the player, u can add a reason for kicking them. or like here in mta.part, from SA on *:SIGNAL:mta.part:command This event is triggerd when a player leaves. Parameters: $1 = Server, $2 = PlayerID, $3 = 0/1/2/3 (parted/kicked/banned/timed-out) i havent tested this but, from what it says, u could add: if ($3 != 0) mta.text $1 $mta.nick($1,$2) Parted: $replacex($3,1,Kicked,2,Banned,3,Timed-Out) Although this would only show after the player leaves, So most people just add a reason, b4 the line that kicks them. u could just go thru ur script and add the reasons b4 all the lines that say mta.kick
×
×
  • Create New...