JB_frozen Posted May 1, 2007 Posted May 1, 2007 hi i wrote a simple script what will work with pgs from scooby if you want to have it.. here it is! on *:Signal:mta.command:{ if ($3 == !rbuy) { var %a = $rand(1,200) if (%a > $pgs.cash($1,$2)) mta.pm $1 $2 Error: Not Enough Cash mta.text $1 $mta.nick($1,$2) has bought $4 for $ $+ %a pgs.sub $mta.nick($1,$2) %a } feel free to add you can buy all things you want and you can edit the command to just change the !rbuy to anything you want but i did !rbuy couse !buy already was in use
SanZoR Posted May 2, 2007 Posted May 2, 2007 Did you wrote this with notepad? Looks noobish, and why did you wrote that like ''Signal'' You need to use ''SIGNAL''... However, this script is kinda useless...
lil Toady Posted May 2, 2007 Posted May 2, 2007 Looks noobish, and why did you wrote that like ''Signal'' You need to use ''SIGNAL''... why would it look noobish? somebody might want it. And that Signal, it doesnt really matter how you write it.. 'signal', 'sIgNaL', 'SIGNAL' all will work the same
JB_frozen Posted May 2, 2007 Author Posted May 2, 2007 boh i thought: let me make someone happy for who wants it; you dont have to take it!
Scooby Posted May 2, 2007 Posted May 2, 2007 i actually looked at it and thought u did a nice job frozen. short, and does the job. (works too!) b4 u criticise other peoples work, u should maybe go fix some of ur own work that u have posted here (that doesnt work)
JB_frozen Posted May 2, 2007 Author Posted May 2, 2007 (edited) lmao actually scoob i learned how to script for mta sa by seeing other's work and ask a bit around how to do things [edit] after looking at my own work of this small script i can better fix it if you not have enough cash it will still work and i forgot a bracket [/code] Edited May 2, 2007 by Guest
Scooby Posted May 2, 2007 Posted May 2, 2007 hehe well next time remeber to post that final } for the noobs
JB_frozen Posted May 2, 2007 Author Posted May 2, 2007 hre is the fixed one: on *:Signal:mta.command:{ if ($3 == !rbuy) { var %a = $rand(1,200) if (%a > $pgs.cash($1,$2)) mta.pm $1 $2 Error: Not Enough Cash mta.text $1 $mta.nick($1,$2) has bought $4 for $ $+ %a pgs.sub $mta.nick($1,$2) %a } }
Scooby Posted May 2, 2007 Posted May 2, 2007 hehe its all good, i think most would have just cut the command and pasted it in if they wanted to use it. ok so here is the fixed version. sry, didnt notice it earlier:P like so: if ($3 == !rbuy) { var %a = $rand(1,200) if (%a > $pgs.cash($1,$2)) mta.pm $1 $2 Error: Not Enough Cash else { mta.text $1 $mta.nick($1,$2) has bought $4 for $ $+ %a pgs.sub $mta.nick($1,$2) %a } }
NeO_Anderson Posted May 10, 2007 Posted May 10, 2007 Did you wrote this with notepad? Looks noobish, and why did you wrote that like ''Signal'' You need to use ''SIGNAL''... However, this script is kinda useless... ROFL and your calling his work "noobish" ? And in my opinion, using notepad to create a script is harder than using the normal script editor that mIRC has since nothing is spaced out properly in notepad... so there is really only one "noobish" scripter here...
stylo Posted May 10, 2007 Posted May 10, 2007 ROFL and your calling his work "noobish" ? And in my opinion, using notepad to create a script is harder than using the normal script editor that mIRC has since nothing is spaced out properly in notepad... so there is really only one "noobish" scripter here... I guess that's a big: POWND
Recommended Posts