Jump to content

Ford

Members
  • Posts

    52
  • Joined

  • Last visited

Everything posted by Ford

  1. Hi, I have the same problem and so my friend does. I have ports 27900 and 28023 forwarded, firewall is not blocking connection. Ppl can join my server with no problems, can someone help?
  2. Ford

    Using $rand

    elseif ($3 == !roll) { var %n = $mta.nick($1,$2) if ($readini(prscommand.ini,delay,%n) == yes) mta.pm $1 $2 Error: You can use this script once every 30 secs. else { writeini prscommand.ini delay %n yes var %a = $rand(1,6) if (%a == 1) { var %b = $rand(100,2000) pgs.add $mta.nick($1,$2) %b mta.pm $1 $2 You've won $ $+ %b $+ ! Total cash: $ $+ $pgs.cash($1,$2) .timerremove +$ $2 1 30 writeini prscommand.ini delay %n no } Why doesn't it work? Works for the 1st time and then always "Error: You can use this script once every 30 secs."..? I guess the %n var gets overwritten? Could someone confirm that? The script is kind a massive so I won't change it everywhere each time ;p
  3. Yes but if someone leaves the game or changes team I think it won't work unless theres a way to remove the number=nick value from ini file but then there will be gap between numbers eg. 1=nick1 2=nick2 4=nick4 I don't know how does loop work so i'm not sure. Could you give me an example of how does loop work and how to remove number=nick if someone leaves/changes team?
  4. Hello, I want to make script for team playing (two teams, red and blue) so it would count team and player stats on the end of each map. alias bluepoints !return $readini(prsmix.ini,points,blue) alias redpoints !return $readini(prsmix.ini,points,red) on *:SIGNAL:mta.command: { elseif ($3 == !addmered) { var %p = $mta.nick($1,$2) if ($readini(prsmix.ini,red,%p) == yes) mta.text $1 %p $+ : youre already in Red Team. else { mta.text $1 %p added to Red Team writeini prsmix.ini red %p yes writeini prsmix.ini blue %p no } } elseif ($3 == !addmeblue) { var %p = $mta.nick($1,$2) if ($readini(prsmix.ini,blue,%p) == yes) mta.text $1 %p $+ : youre already in Blue Team. else { mta.text $1 %p added to Blue Team writeini prsmix.ini blue %p yes writeini prsmix.ini red %p no } } elseif ($3 == !resetmix) { mta.text $1 Wszystkie zapisane informacje nt. biezacego mixa usuniete. remini prsmix.ini blue remini prsmix.ini red writeini prsmix.ini points blue 0 writeini prsmix.ini points red 0 } elseif ($3 == !mixpoints) { .timermix1 1 1 mta.text $1 Staty $+ : .timermix2 1 1 mta.text $1 Blue Team $+ : $bluepoints($1) punktow .timermix3 1 1 mta.text $1 Red Team $+ : $redpoints($1) punktow } elseif ($3 == !endmix) { if ($bluepoints($1) > $redpoints($1)) mta.text $1 Blue Team wygrywa przewaga $calc($bluepoints($1) - $redpoints($1)) punktow elseif ($redpoints($1) > $bluepoints($1)) mta.text $1 Red Team wygrywa przewaga $calc($redpoints($1) - $bluepoints($1)) punktow elseif ($bluepoints($1) == $redpoints($1)) mta.text $1 Remis! Oba Teamy maja tyle samo punktow! } } on *:SIGNAL:mta.finish: { var %p = $mta.nick($1,$2) if ($mta.rank($1,$2) == 1) { if ($readini(prsmix.ini,blue,%p) == yes) { mta.text $1 Blue Team zdobywa 3 punkty! writeini prsmix.ini points blue $calc($bluepoints($1) + 3) } elseif ($readini(prsmix.ini,red,%p) == yes) { mta.text $1 Red Team zdobywa 3 punkty! writeini prsmix.ini points red $calc($redpoints($1) + 3) } } if ($mta.rank($1,$2) == 2) { if ($readini(prsmix.ini,blue,%p) == yes) { mta.text $1 Blue Team zdobywa 2 punkty! writeini prsmix.ini points blue $calc($bluepoints($1) + 2) } elseif ($readini(prsmix.ini,red,%p) == yes) { mta.text $1 Red Team zdobywa 2 punkty! writeini prsmix.ini points red $calc($redpoints($1) + 2) } } if ($mta.rank($1,$2) == 3) { if ($readini(prsmix.ini,blue,%p) == yes) { mta.text $1 Blue Team zdobywa 1 punkt! writeini prsmix.ini points blue $calc($bluepoints($1) + 1) } elseif ($readini(prsmix.ini,red,%p) == yes) { mta.text $1 Red Team zdobywa 1 punkt! writeini prsmix.ini points red $calc($redpoints($1) + 1) } } (so far it works great and sryy for only partial translation but Im in a bit hurry) and now I need general info regarding: saving 1st, 2nd and 3rd places into ini file (so i could use $calc to calculate each team's score) counting how many players is in each team (I wanted to make it with if but it's just too many possibilities like player leaves etc. so maybe theres simpler way). and most important: !redsquad and !bluesquad must show who is in each team Is there a FAQ with commands available and their descriptions? Thanks
  5. elseif ($3 == !bannan) mta.text $1 mta.nick($1,%a) bannaned by mta.nick($1,$2) If your nick is admin, and the other person is player, after writing !bannan player it will display: player bannaned by admin elseif ($3 == !bannan) - name of the command mta.text $1 - this displays a text on server visible to all players (if you want PM, use mta.pm $1 $2) mta.nick($1,%a) - nick of the person you used it on (player) mta.nick($1,$2) - nick of the person who wrote the command (admin)
  6. Ford

    Using $rand

    elseif ($3 == !roll) { var %a = $rand(1.,6) if (%a == 1) { mta.pm $1 $2 You receive additional cash, total $ $+ $pgs.cash($1,$2) pgs.add $mta.nick($1,$2) 500 } elseif (%a == 2) { mta.pm $1 $2 You lost some cash, total $ $+ $pgs.cash($1,$2) pgs.sub $mta.nick($1,$2) 500 } elseif (%a == 3) { mta.pm $1 $2 You receive mute for 1min... mta.mute $1 $2 .timerunmuteroll 1 60 mta.unmute $1 $2 } elseif (%a == 4) { mta.pm $1 $2 You receive freeze for 20 secs! if ($prs.mode($1) == deathmatch) mta.pm $1 $2 But since it's DM map you won't get it:) else { mta.freeze $1 $2 .timerfreezeroll 1 20 mta.unfreeze $1 $2 } } elseif (%a == 5) { mta.pm $1 $2 You receive 10 points! !hadd prsrank $mta.nick($1,$2) $calc($prs.points($1,$2) + 10) } elseif (%a == 6) { mta.pm $1 $2 You lost 10 points! !hadd prsrank $mta.nick($1,$2) $calc($prs.points($1,$2) - 10) } } Why isn't it working?
  7. After uninstalling GTA and MTA, and installing GTA everything works great, so it's 100% MTA fault.
  8. Well, I don't have any problems with playing COD4 online (PB req). I don't have any viruses, I've scanned HDD by NOD32 and some other software.
  9. Yes, I'm using account with administrator privileges.
  10. Oh, sorry, I forgot. Windows XP SP2.
  11. Hi! There goes another problem: game shuts down after splash screen.. Well It doesn't matter I run GTA: SA, or MTA. After splash screen disappears I see my desktop. I tried reinstall, removing gta_sa.set file, applying no-cd.. I have no mods installed. I have no idea what could cause the problem because 3 days ago it worked fine. Antivirus program: NOD32 but I tried to close it. My computer: Pentium D 2,66GHz, 1GB RAM, Galaxy Geforce 7600GS not overlocked. Please help
  12. Hi, I've got smilar problem... It worked well yesterday but I unistalled it to play Race Mod, but today wanted to play DM again and while I'm trying to run it... I will ask your first question here: YES I reinstalled it 57348957839 times and tried to install with/without account, one time it removed my whole GTA SA folder
  13. Just make protection that prevents running MTA with d3dx9.dll file in GTA SA dir.. Minimizer won't work but i think it's a small sacrifice in compare to the permanental anti-hack protection.. BTW. Why the game is "jumping" while MTA DM playing? It's just great speed, I haven't had that much fps ever in GTA but it's just annoying .. Many people is complaining about that.. And the final thing - playing race maps.. It's just impossible becouse people with slow PCs (~80%) have to wait until map loads/downloads and other players are long time gone from start..
  14. Ford

    New DM Script!

    Well I can't edit my previous post so.. Here the script i've made.. in fact i've found a script on forum and remade it a bit. So it's (if map is marked as dd) adding a dd wins to file, and it's displayed in !stats, script works with gus. Standalone file: alias gus.level !return $iif($readini($scriptdir $+ admin.ini,ADMIN,$mta.nick($1,$2)),$readini($scriptdir $+ admin.ini,ADMIN,$mta.nick($1,$2)),0) alias mta.end { if ($readini($scriptdir $+ ddraces.ini,MAP,$replace($mta.race($1),$chr(32),-)) == DD) { if (%cplayers == 1) { var %a = 0 while (%a < $mta.server($1).cmax) { if (!$mta.dead($1,%a)) { mta.text $1 $mta.nick($1,%a) won! mta.freeze $1 %a !writeini -n " $+ $scriptdir $+ stats.ini" DDWINS $mta.nick($1,%a) $gus.add($gus.wins($1,%a),1) !halt } !inc %a } } } } on *:SIGNAL:mta.startrace: { set %cplayers $mta.server($1).players } on *:SIGNAL:mta.part: { if (!$mta.dead($1,$2) set %cplayers $calc(%cplayers - 1) mta.end $1 $2 } on *:SIGNAL:mta.death: { set %cplayers $calc(%cplayers - 1) mta.end $1 $2 } on *:SIGNAL:mta.connect: { set %cplayers 0 } on *:SIGNAL:mta.command: { if ($3 == !setmodedd) { if ($gus.level($1,$2) >= 7) { !writeini -n " $+ $scriptdir $+ ddraces.ini" MAP $replace($mta.race($1),$chr(32),-) DD mta.text $1 Map $mta.race($1) marked as DD } else mta.pm $1 $2 You need 7 lvl. } elseif ($3 == !setmoderace) { if ($gus.level($1,$2) >= 7) { !writeini -n " $+ $scriptdir $+ ddraces.ini" MAP $replace($mta.race($1),$chr(32),-) RACE mta.text $1 Map $mta.race($1) marked as Race } else mta.pm $1 $2 You need 7 lvl. } } To add in mtagus.mrc file alias gus.ddwins !return $iif($readini($scriptdir $+ stats.ini,DDWINS,$mta.nick($1,$2)),$readini($scriptdir $+ stats.ini,DDWINS,$mta.nick($1,$2)),0) Now: Find: elseif (!stat* iswm $3) { if (%a == -1) mta.pm $1 $2 Error - Absent ID else mta.text $1 $mta.nick($1,%a) $+ 's Stats - Level: $gus.level($1,%a) - Deaths: $gus.deaths($1,%a) - Visits: $gus.visits($1,%a) - Wins: $gus.wins($1,%a) - Spawns: $gus.spawns($1,%a) - Races: $gus.races($1,%a) } Change to: elseif (!stat* iswm $3) { if (%a == -1) mta.pm $1 $2 Error - Absent ID else mta.text $1 $mta.nick($1,%a) $+ 's Stats - Level: $gus.level($1,%a) - Deaths: $gus.deaths($1,%a) - Visits: $gus.visits($1,%a) - Wins: $gus.wins($1,%a) - Spawns: $gus.spawns($1,%a) - Races: $gus.races($1,%a) - DD wins $gus.ddwins($1,%a) } !setmodedd - mark map as dd (7 lvl needed) !setmoderace - mark map as race (7 lvl needed) Enjoy
  15. Ford

    New DM Script!

    Damn, always so simple solutions... Thanks.
  16. Yes it's very helpful during clan matches when 10 people are racing one by one on 10 maps. It could take 5 hours. Eh...
  17. Ford

    New DM Script!

    Hi, first - nice script, but it;s missing few options like !alive !dead etc. And most important it doesn't care if it's dd or race map. So, here's the thing i've made an upgrade that makes it possible to mark which maps are dd and which are race but as always there is a problem, now it doesn't says who won the map... Well i'm out of options and i have to ask you for help alias cplayers !return $numtok($readini(Alive.ini,alive,ids),32) alias players.server !return $did(mta,$1 $+ 02).lines alias gus.getid { var %a = 0 while (%a <= $mta.server($1).cmax) { if ($+(*,$2,*) iswm $mta.nick($1,%a)) !return %a !inc %a } !return -1 } alias mta.end { [b]if ($readini($scriptdir $+ ddraces.ini,MAP,$replace($mta.race($1),$chr(32),-)) == DD {[/b] if ($cplayers($1) == 1) && (players.server($1) >= 1) && (%mta.endwinner == $null) { var %a = $readini(Alive.ini,alive,ids) mta.text $1 $mta.nick($1,%a) is winner! !writeini -n stats.ini WINS $mta.nick($1,%a) $calc($readini(stats.ini,WINS,$mta.nick($1,%a)) + 1) set %mta.endwinner 1 !halt } } } [b] on *:SIGNAL:mta.command: { if ($3 == !setmodedd) { !writeini -n " $+ $scriptdir $+ ddraces.ini" MAP $replace($mta.race($1),$chr(32),-) DD mta.text $1 Map $mta.race($1) set as dd } elseif ($3 == !setmoderace) { !writeini -n " $+ $scriptdir $+ ddraces.ini" MAP $replace($mta.race($1),$chr(32),-) RACE mta.text $1 Map $mta.race($1) set as race } } [/b] on *:SIGNAL:mta.startrace: { var %a = 0,%b = ffs unset %mta.endwinner !remini -n Alive.ini Alive IDs while (%a <= $mta.server($1).cmax) { if ($mta.nick($1,%a) != $null) { if (%b == ffs) %b = %a else %b = %b %a } !inc %a } !writeini alive.ini alive ids %b } on *:SIGNAL:mta.part: { var %b = $readini(Alive.ini,alive,ids) if ($findtok(%b,$2,1,32) != $null) { !writeini -n alive.ini alive ids $deltok(%b,$findtok(%b,$2,1,32),32) mta.end $1 } } on *:SIGNAL:mta.death: { var %b = $readini(Alive.ini,alive,ids) !writeini -n alive.ini alive ids $deltok(%b,$findtok(%b,$2,1,32),32) mta.end $1 } Well script isn't too big then you can see what i've changed... Any help ? THX
  18. Could you put a possibility of turning it on in admin panel in the new version of MTA?
  19. Hi, I've got a question; is that possible to make ghost mode in MTA: Race Mod ? Meaning cars can't hit each other, they just go through other cars. It isn't any fun to race when cars are jumping forwards and backwards crashing other cars off the road ;/ Thx for answer
  20. Yes I know... I've changed it a bit so it looks like that: if ($3 == !unbannick) { if ($gus.level($1,$2) > 6) { if ($readini($scriptdir $+ bannednick.ini,NICK,%x) == $null) { mta.pm $1 $2 Error - Nick %x isnt banned. } else { if ($readini($scriptdir $+ bannednick.ini,NICK,$4) = False) { mta.pm $1 $2 Error - Nick $4 isnt banned. } else { mta.text $1 %x - nick unbanned. !remini -n " $+ $scriptdir $+ bannednick.ini" NICK %x } } else mta.pm $1 $2 Error - You need 7 lvl. } Now !bannick works fine, but this script still says "Nick 5 isnt banned". And yes I have var %x = $iif(($4 == $null),$2,$iif(($mta.getid($1,$4) == $null),$2,$v1)) script pasted.
  21. OK now it doesnt work at all... I dont know, I checked all } and they match. No idea. Both !bannick and !unbannick dont work.
  22. Uff thanks But still one small thing that is making me upset, I wrote !unbannick script that looks like: I can write !unbannick dd all night and it still will reply with "dd - nick unbanned" As you see I tried to fix that (bold part) but it doesn't work (what a suprise!) Help?
  23. Yes, so I've made veeeery simple script for banning nicknames. Well.. Problem is it isn't kicking banned players when they join.. I know probably there's 943948433 mistakes So: Part that is working: Part that isn't working: Thx for fixing the problem.
  24. Of course it is so simple.. ($gus.level($1,$2) should be: ($gus.level($1,%a) and on *:SIGNAL:mta.join:{ should be: on *:SIGNAL:mta.join: { Thx
×
×
  • Create New...