Jump to content

!rbuy command for pgs


Recommended Posts

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

Link to comment
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 :roll:

Link to comment

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) :lol:

Link to comment

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 xD

[/code]

Edited by Guest
Link to comment

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 
}
}

Link to comment

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
 }
}

Link to comment
Did you wrote this with notepad? :lol:

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" ? o.O

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... :P

Link to comment

ROFL and your calling his work "noobish" ? o.O

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... :P

I guess that's a big:

POWND

Link to comment
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...