Kika592 Posted January 18, 2008 Posted January 18, 2008 Hi. Kika592 here. I need a !addcash Script. e.g:. !addcash But i want the cash to just be added. I dont want it to be removed from my acount for example, and then added to theres. i want the cash to come from nowhere. But only lvl 5's can do it. Maybe scooby can make this for me... Well, hope you can make what i want Thanks...
Cyber Posted January 20, 2008 Posted January 20, 2008 Yea! This should be very usefull for my server too!
[UVA]Bart Posted January 31, 2008 Posted January 31, 2008 is it for my script(Slr) or scoobys(Prs) ? Scripts Links Fuel Script For Mta Dm slr-v-1.1.3.rar For MTA Race Website Feel Free To Join -->http://www.teamslr.110mb.com <--
[UVA]Bart Posted January 31, 2008 Posted January 31, 2008 ok lol i not done right much mirc scripting so i preaty much forgot eveything nearly lol so here goes lol try this any errors post here /* ///////////////////////////////////// ////// AddCash: [uVA]Bart ////// ///////////////////////////////////// */ on *:SIGNAL:mta.command: { if ($3 == !addcash) slr.addcash $1- } alias slr.addcash { var %a = $iif(($5 == $null),$2,$iif(($slr.id($1,$4) == $null),$2,$v1)) if ($prs.level($1,$2) < 5) mta.pm $1 $2 Error: Incorrect Level if ($4 == $null) || ($4 !isnum ) || ($5 == $null) || ($5 isnum ) || ($4 > 20000) mta.pm $1 $2 Error: !addcash <ammount> <nick> else { if ($prs.level($1,$2) >= 5) { !hinc -m pgscash mta.nick($1,%a) $4 mta.pm $1 $2 $mta.nick($1,%a) Has Had A Rise In Cash Of: $ $+ $4 } } } alias slr.id { var %a = 0 while (%a < $mta.server($1).players) { if ($+(*,$2,*) iswm $mta.nick($1,%a)) !return %a !inc %a } } Scripts Links Fuel Script For Mta Dm slr-v-1.1.3.rar For MTA Race Website Feel Free To Join -->http://www.teamslr.110mb.com <--
Scooby Posted March 5, 2008 Posted March 5, 2008 hi, only just noticed this, u should post PRS related stuff in the PRS topic, then i will reply the same day. ok, im not sure if u still need this... but just in case u do. add this in mta.command. (below the admin level 1 commands), if ur not sure where, add it below this line: elseif ($3 == !setwarnlimit) prs.setwarnlimit $1- elseif ($3 == !addcash) pgs.addcash $1 $2 $mta.nick($1,%a) $4 then at the very bottom of ur script add this: alias pgs.addcash { if ($prs.level($1,$2) < 5) mta.pm $1 $2 Error: Level 5 command. elseif ($4 !isnum) mta.pm $1 $2 Error: Invalid Amount. else { mta.text $1 $mta.nick($1,$2) Is Giving $3 $ $+ $4 pgs.add $3 $4 } } i would advise adding the same for taking cash away too... just in case u ever make a mistake. u can either use !givecash bla -1000 or add the same script again with a few minor mods, and using pgs.sub instead of pgs.add. if u need anymore help or minor upgrades adding plz ask in the PRS topic. any probs, just let me know. [UVA]Scooby Founder Of UVA - Ultimate Vice Assassins http://www.uvaclan.com/
Scooby Posted March 22, 2008 Posted March 22, 2008 Why this command adds money only to itself? the command is: !addcash if u type an incorrect name, then it will give it to u. feel free to add more checks, it was just something a posted quick:) [UVA]Scooby Founder Of UVA - Ultimate Vice Assassins http://www.uvaclan.com/
Recommended Posts