Jump to content

MeanpantheR

MTA Contributors
  • Posts

    247
  • Joined

  • Last visited

Everything posted by MeanpantheR

  1. nice one I'll test it out properly later and leave some feedback for you
  2. Search mta.data.ini for the word 'Bank' (Quoted from mta.data.ini)
  3. This should have been posted in the scriptinf forum (Addons). Also Post all of the script if you can
  4. anything new for MTA 0.5 is good. I think this will give people a starting boost in learning lua ready for MTA:SA/DM
  5. it tells you with the readme files that come with MTA:mA
  6. on *:SIGNAL:mta.command:{ if ($3 == !sellcar) { if ($mta.area($1,$2) == Sunshine-Autos) { if ($mta.vehicle($1,$2).name != foot && $mta.vehicle($1,$2).name != Unknown) { mta.say $1 $mta.name($1,$2) Sold $mta.vehicle($1,$2).name for $rpg.worth($1,$2) !writeini -n " $+ $scriptdir $+ Bank.ini" Bank $mta.name($1,$2) $calc($mta.bank($1,$2) + $rpg.worth($1,$2)) !writeini -n " $+ $scriptdir $+ BuySell.ini" Sell $mta.name($1,$2) $mta.vehicle($1,$2)) } else mta.msg $1 $2 You need to be in a car } else mta.msg $1 $2 You're not at Sunshine Autos! } } try that, havn't scripted in awhile but should do what you want - you had the if's and else's messed up in your script
  7. !buypizza? why not ask VRocker for his
  8. MeanpantheR

    Big Script

    on *:SIGNAL:mta.join:{ mta.msg $1 $2 Hello , this server is currently running the scripts of mtavc.com forums ! } on *:SIGNAL:mta.command: { if ($3 == !aeron) { mta.say $1 The l33t mIRC Wizard } } on *:SIGNAL:mta.spawn:{ mta.say $1 $mta.name($1,$2) spawned as ' $+ $mta.skin($1,$2).name $+ ' }
  9. people shouldnt have to pay to learn this, that would be stupid... Stormax, msn me whenever you want to know something or need some help
  10. someone made a php script maker awhile ago, you go through pages and tick what you want added, like 'ping kicker' and so on. i havnt tried this yet but im sure if you work on it you could add things like ping kicker, votekick and so on
  11. MeanpantheR

    PLEAZZ!

    me, other topic he wanted help and for people to add him on msn, I replied saying how I added him awhile back and he tried sending me a virus.. funny, but this topic should realy be locked
  12. I'm sorry, didn't I add you a few weeks back, and you sent me a virus ?
  13. guessing this is going to be a connection to the client port- all data is encrypted, getting a bot ingame so others see it would be hard, making it run about would be even harder. making it so it dosnt run through rules would be extreamly hard - I just wouldn't bother - there are bots already out there that can follow people about shooting at them constantly...
  14. Fixed, I had a $4 insted of $5 elseif ($3 == !give) { if ($2 != %a && $5 != $null) { if ($5 <= $mta.cash($1,$2)) { if ($5 isnum && $chr(46) !isin $5) { writeini MTAScript.ini Cash $mta.name($1,%a) $calc($mta.cash($1,%a) + $5) writeini MTAScript.ini Cash $mta.name($1,$2) $calc($mta.cash($1,$2) - $5) mta.say $1 $mta.name($1,$2) gave $mta.name($1,%a) $5 } else mta.msg $1 $2 Error $5 must be numbers without points } else mta.msg $1 $2 You don't have that much cash to give } else mta.msg $1 $2 Synax: $3 } ^ that should work (updated on first post aswell)
  15. few things 1. your writting to [Name] Cash=x insted of [Cash] Name=x 2. your doing things like $7500 insted of $ $+ 7500 if you want, go on irc when im on and il talk you through how to make scripts like this. Just about to format the PC so might not be on until later today
  16. I don't mind if you make it I might add some things to the script later, maybe !buyhouse and stuff like that
  17. give me some suggestions / ideas
  18. http://forum.mtavc.com/viewtopic.php?t=17998
  19. Havn't tested it, just the second wrote it... on *:SIGNAL:mta.command:{ var %a = $iif($4 == $null,$2,$iff($mta.getid($1,$4) == -1,$2,$mta.getid($1,$4))) if ($3 == !info) mta.say $1 MeanpantheR's Bank System elseif ($3 == !cash) mta.say $1 $mta.name($1,%a) $+ 's Cash: $mta.cash($1,%a) elseif ($3 == !bank) mta.say $1 $mta.name($1,%a) $+ 's Bank: $mta.bank($1,%a) elseif ($3 == !bank+) { if ($mta.area($1,$2) == Bank && $mta.health($1,$2) > 0) { if ($mta.cash($1,$2) > 0) { if ($4 != $null) { if ($4 <= $mta.cash($1,$2)) { if ($4 isnum && $chr(46) !isin $4) { mta.say $1 $mta.name($1,$2) put $4 into their bank! writeini MTAScript.ini Bank $mta.name($1,$2) $calc($mta.bank($1,$2) + $4) writeini MTAScript.ini Cash $mta.name($1,$2) $calc($mta.cash($1,$2) - $4) } else mta.msg $1 $2 Error $4 must be numbers without points } else mta.msg $1 $2 You don't have that much money on hand } else { mta.say $1 $mta.name($1,$2) put $mta.cash($1,$2) into their bank! writeini MTAScript.ini Bank $mta.name($1,$2) $calc($mta.bank($1,$2) + $mta.cash($1,$2)) writeini MTAScript.ini Cash $mta.name($1,$2) 0 } } else mta.msg $1 $2 You havn't got any money... } else mta.msg $1 $2 To use a !bank command you must be at the bank } elseif ($3 == !bank-) { if ($mta.area($1,$2) == Bank && $mta.health($1,$2) > 0) { if ($mta.bank($1,$2) > 0) { if ($4 != $null) { if ($4 <= $mta.bank($1,$2)) { if ($4 isnum && $chr(46) !isin $4) { mta.say $1 $mta.name($1,$2) took $4 from their bank! writeini MTAScript.ini Cash $mta.name($1,$2) $calc($mta.cash($1,$2) + $4) writeini MTAScript.ini Bank $mta.name($1,$2) $calc($mta.bank($1,$2) - $4) } else mta.msg $1 $2 Error $4 must be numbers without points } else mta.msg $1 $2 You don't have that much money in the bank } else { mta.say $1 $mta.name($1,$2) took $mta.bank($1,$2) from their bank writeini MTAScript.ini Cash $mta.name($1,$2) $calc($mta.cash($1,$2) + $mta.bank($1,$2)) writeini MTAScript.ini Bank $mta.name($1,$2) 0 } } else mta.msg $1 $2 You havn't got any money... } else mta.msg $1 $2 To use a !bank command you must be at the bank } elseif ($3 == !give) { if ($2 != %a && $5 != $null) { if ($5 <= $mta.cash($1,$2)) { if ($5 isnum && $chr(46) !isin $5) { writeini MTAScript.ini Cash $mta.name($1,%a) $calc($mta.cash($1,%a) + $5) writeini MTAScript.ini Cash $mta.name($1,$2) $calc($mta.cash($1,$2) - $5) mta.say $1 $mta.name($1,$2) gave $mta.name($1,%a) $5 } else mta.msg $1 $2 Error $5 must be numbers without points } else mta.msg $1 $2 You don't have that much cash to give } else mta.msg $1 $2 Synax: $3 } } alias mta.cash { !return $iif($readini(MTAScript.ini,Cash,$mta.name($1,$2)) == $null,0,$v1) } alias mta.bank { !return $iif($readini(MTAScript.ini,Bank,$mta.name($1,$2)) == $null,0,$v1) } // Edit: Just added something to get people going (again untested, if it dosnt work PM me or reply here and someone will help) on *:SIGNAL:mta.join:{ if ($mta.bank($1,$2) == 0) { writeini MTAScript.ini Bank $mta.name($1,$2) 2000 mta.msg $1 $2 Welcome to the server. You now have $ $+ 2000 in your bank } else mta.msg $1 Welcome to the server. You have $mta.bank($1,$2) in your bank } on *:SIGNAL:mta.part:{ writeini MTAScript.ini Cash $mta.name($1,$2) 0 } on *:SIGNAL:mta.kill:{ if ($mta.cash($1,$2) > 0) { if ($2 != $3 && $mta.name($1,$3) != Unknown) { writeini MTAScript.ini Cash $mta.name($1,$3) $calc($mta.cash($1,$2) + $mta.cash($1,$3)) mta.msg $1 $3 You have gained $mta.cash($1,$2) for killing $mta.name($1,$2) mta.msg $1 $2 You have lost $mta.cash($1,$2) because $mta.name($1,$3) killed you! writeini MTAScript.ini Cash $mta.name($1,$2) 0 } elseif ($2 == $3) { mta.msg $1 $2 You lost $mta.cash($1,$2) because you killed yourself writeini MTAScript.ini Cash $mta.name($1,$2) 0 } } } If you have no money in the bank when you join, you get 2,000. If you get killed the killer will get all your cash, if you kill yourself you lose it, if you die by somthing else (say you fall off your bike and die) you shouldnt lose any money If you leave game, all cash that isnt in your bank will get removed - Any problems give me a shout //Edit 2 added !give command & !cash should now work... again, still havnt tested it yet so it might not work
  20. agreed, I don't see why anybody should help someone who takes credit for other peoples work...
  21. MeanpantheR

    Ping script

    wouldnt you need to increase %a ?
×
×
  • Create New...