MeanpantheR
-
Posts
247 -
Joined
-
Last visited
Posts posted by MeanpantheR
-
-
This looks pretty intresting, nice work
-
Search mta.data.ini for the word 'Bank'
(Quoted from mta.data.ini)
-898.2357,-326.6091,-898.2196,-355.5072,-936.2309,-355.5205,-939.2854,-352.5587,-952.3001,-342.9138,-957.1079,-341.7898,-966.5380,-337.4671,-966.5401,-328.1766=Bank Little-Havana Vice-City-Mainland -
This should have been posted in the scriptinf forum (Addons).
Also Post all of the script if you can
-
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
-
lol.... [TAT]Tim
-
it tells you with the readme files that come with MTA:mA
-
script is made by lil toady.
...
if ($3 == !info) mta.text $1 MeanpantheR's Bank System -
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
-
!buypizza? why not ask VRocker for his
-
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 $+ ' }
-
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
-
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
-
-
If Anyone Wantes A Spot As A Scripter Or Admin Please Contact Me @ [email protected]
I'm sorry, didn't I add you a few weeks back, and you sent me a virus ?
-
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...
-
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)
-
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
-
something easy, like you type !job and you need to take a random car to random place I can make it if you don't mind
I don't mind if you make it
I might add some things to the script later, maybe !buyhouse and stuff like that
-
GJ MeanpantheR!
are you going to add some ways to earn cash?
give me some suggestions / ideas
-
no.
-
TY Very Much.
Only need to know how to make an Cash and Bank system.
my friend told me its very hard to make it
could you help me?
-
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
-
agreed, I don't see why anybody should help someone who takes credit for other peoples work...
-
For MTA 0.5:
on *:SIGNAL:mta.connect:{ .timer $+ $1 0 10 mta.pingkick $1 } alias mta.pingkick { var %a = 0 while (%a <= $mta.maxplayers($1)) { if ($mta.ping($1,%a) >= 300) { mta.say $1 Kicking $mta.name($1,%a) for high ping! mta.kick $1 %a } } }
For MTA:SA:
on *:SIGNAL:mta.connect:{ .timer $+ $1 0 10 mta.pingkick $1 } alias mta.pingkick { var %a = 0 while (%a <= $mta.server($1).cmax) { if ($mta.ping($1,%a) >= 300) { mta.text $1 Kicking $mta.name($1,%a) for high ping! mta.kick $1 %a } } }
wouldnt you need to increase %a ?
Anyone still scripts for 0.5?
in Add-ons
Posted
nice one
I'll test it out properly later and leave some feedback for you