Jump to content

MrJax

Retired Staff
  • Posts

    1,078
  • Joined

  • Last visited

Everything posted by MrJax

  1. alias gus.rpgwin { %players = $mta.server($1).players %rank = $mta.rank($1,$2) if (%rank == 1) { if (2 >= %players) { mta.text $1 $mta.nick($1,$2) has beaten %players Players $+ ! (Rank: First $+ ) (Money Earned: $chr(36) $+ $calc(30 * %players) $+ ) !writeini -n " $+ $scriptdir $+ RPG.ini" CASH $mta.nick($1,$2) $gus.add($gus.cash($1,$2),$calc(30 * %players)) } } elseif (%rank == 2) { if (3 >= %players) { mta.pm $1 $2 You Came Second! (Money Earned: $chr(36) $+ $calc(25 * %players) $+ ) !writeini -n " $+ $scriptdir $+ RPG.ini" CASH $mta.nick($1,$2) $gus.add($gus.cash($1,$2),$calc(25 * %players)) } } elseif (%rank == 3) { if (4 >= %players) { mta.pm $1 $2 You Came Third! (Money Earned: $chr(36) $+ $calc(30 * %players) $+ ) !writeini -n " $+ $scriptdir $+ RPG.ini" CASH $mta.nick($1,$2) $gus.add($gus.cash($1,$2),$calc(15 * %players)) } } elseif (%rank == 4) { if (5 >= %players) { mta.pm $1 $2 You Came Fourth! (Money Earned: $chr(36) $+ $calc(10 * %players) $+ ) !writeini -n " $+ $scriptdir $+ RPG.ini" CASH $mta.nick($1,$2) $gus.add($gus.cash($1,$2),$calc(10 * %players)) } } } alias gus.rpgwin { var %a = $mta.server($1).players, %b = $mta.rank($1,$2) if (%a > %b && %b isnum 1-4) { var %c = $iif(%b == 2,Second!,$iif(%b == 3,Third!,Fourth!)), %d = $iif(%b == 1,30,$iif(%b == 2,25,$iif(%b == 3,15,10))) $iif(%b == 1,mta.text $1 $mta.nick($1,$2) has beaten %a Players $+ ! (Rank: First $+ ),mta.pm $1 $2 You Came %c) (Money Earned: $chr(36) $+ $calc(%d * %a) $+ ) !writeini -n $+(",$scriptdirRPG.ini,") CASH $mta.nick($1,$2) $calc($gus.cash($1,$2) + $calc(%d * %a)) } } alias gus.cash { if ($readini($scriptdir $+ RPG.ini,CASH,$mta.nick($1,$2)) != $null) !return $readini($scriptdir $+ RPG.ini,CASH,$mta.nick($1,$2)) else !return 0 } alias gus.cash !return $iif($readini($scriptdir $+ RPG.ini,CASH,$mta.nick($1,$2)),$v1,0)
  2. # ServerPassword # Required: Yes (Yes if server should be passworded) # Purpose: Defines the server password # Format - ServerPassword ServerPassword goaway
  3. MrJax

    MTA:MA Scripting

    1 too many brackets at the end there
  4. Myriad Islands is a total map convert, not just an extra island.. and it was just for VC last time i checked.
  5. MrJax

    MTA:MA Scripting

    Yeah.. and what the hell is wrong with my clanscan alias!
  6. ..and what do you those health check scripts do? If you do check if someones cheating like that, player health isn't sync'd while they're in a car, so it won't go down.
  7. MrJax

    !givecash

    Haha, dont edit it to make me look like an ass, it was a complete mess before
  8. Except for the issues in 0.4 that were fixed for 0.4.1, it was the weapon "balancing" in it that, i think, made 0.3 better. There were a few nice additions besides that though That core kept me and alot of others playing for around 2 years, the good 'old times' have to end some time in each game, and this one's outdone any other i know for keeping them alive. Look to the future, not the past
  9. MrJax

    !givecash

    Don't ever script again!! LeetCraig, to add to a value in an ini.. var %a = $readini(rpg.ini,cash,$mta.name($1,$2)) (get the value) %a = $calc(%a + 1) (add to the value) !writeini -n rpg.ini cash $mta.name($1,$2) %a (write the value) !writeini -n rpg.ini cash $mta.name($1,$2) $calc($iif($readini(rpg.ini,cash,$mta.name($1,$2)),$v1,0) + 1)
  10. MrJax

    How do you screenshot?

    F11 for screenshots
  11. Jesus.. you don't have to copy the whole script into your post, to do what you want, you'd just have to remove the 1 IF that checks if you own it first, and if people can't find that they're too stupid to be editing scripts. Why do people still bother with this, its crap and very very old.
  12. You know you don't have to check their admin level in every command right? ..and that you can add that big ugly line into an alias. alias mta.adminlevel !return $readini($scriptdir $+ admin.ini,ADMIN,$mta.name($1,$2)) on *:SIGNAL:mta.command:{ if ($mta.adminlevel($1,$2) >= 1) { if ($3 == !command) { } elseif ($3 == !command2) { } elseif ($mta.adminlevel($1,$2) >= 2) { if ($3 == !command3) { } } } } ...etc
  13. You could check if there were 2 with the same name and use case sensitivity then.
  14. on *:SIGNAL:mta.part:{ !writeini -n rpg.ini cash $mta.name($1,$2) 5 } on *:SIGNAL:mta.join:{ mta.say $1 $mta.name($1,$2) has $iif($readini(rpg.ini,cash,$mta.name($1,$2)),$v1,0) moneyz } ::$readini(,) - returns value or null ::!writeini - writes value
  15. Sounds like this is your problem and your not fixing it properly.. uninstall mta, reinstall vc, install mta (cus it sounds like uve totally messed the files up )
  16. MrJax

    Look at me!

    Software Development Kit
  17. It's probably xfires fault, something in their hook, if it is you'd have to bitch at them
  18. No such thing as "un-moddable", they just made it alot harder to do the stuff multiplayer mods need to do
  19. It means only version 1.0, when theres 1.0 the original, 1.1 being the patched original and 2.0 the re-released version. You don't have to reinstall a 1.0 game, the only difference is in the gta_sa.exe, you can find a 1.0 version with google
  20. /load -rs .mrc That's all mtama does, except make sure theyre further down the list so it gets the packets first
  21. Ah rite, forgot you can't launch with your own params using MTA. Just download THIS one and stick it in your SA folder
  22. Theres a few directX hooks around where you can just launch the game with a -window parameter. Check out GTAForums
  23. Well the game still runs while its windowed, so no it doesn't.
  24. I've had that alot messing with SA, could be anything.
×
×
  • Create New...