Ford

Members
  • Content Count

    52
  • Joined

  • Last visited

Community Reputation

0 Neutral

About Ford

  • Rank
    Snitch

Details

  • Location
    Poland
  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. Ford

    Script for team playing

    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. Ford

    hackers :(

    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.