weewooz Posted August 17, 2009 Posted August 17, 2009 This Lets Gang Owners Send A Mass Payment In Crystals As Well As Money.Some One asked For This So I Posted Mayebe Already Been Done 99.9% Stuff On Here Always As Open YourGang.php Find. Code: [select] Mass Payment Replace With. Code: [select] Mass Payment(Money) Mass Payment(Crystals) Next Find Code: [select] case "masspayment": gang_staff_masspayment(); break; Add Under Code: [select] case "masspaymentcry": gang_staff_masspaymentcry(); break; Then Find Code: [select] function gang_staff_masspayment() { global $db,$ir,$c,$userid,$gangdata; $_POST['amnt']=abs((int) $_POST['amnt']); if($_POST['amnt']) { $q=$db->query("SELECT * FROM users WHERE gang={$ir['gang']}"); while($r=$db->fetch_row($q)) { if($gangdata['gangMONEY'] >= $_POST['amnt']) { event_add($r['userid'],"You were given \${$_POST['amnt']} from your gang.",$c); $db->query("UPDATE users SET money=money+{$_POST['amnt']} WHERE userid={$r['userid']}", $c); $gangdata['gangMONEY']-=$_POST['amnt']; print "Money sent to {$r['username']}. "; } else { print "Not enough in the vault to pay {$r['username']}! "; } } $db->query("UPDATE gangs SET gangMONEY={$gangdata['gangMONEY']}, gang WHERE gangID={$ir['gang']}", $c); $db->query("INSERT INTO gangevents VALUES('',{$ir['gang']},unix_timestamp(), 'A mass payment of \${$_POST['amnt']} was sent to the members of the Gang.')"); print "Mass payment sending complete! > Back"; } else { print "Mass Payment <form action='yourgang.php?action=staff&act2=masspayment' method='post'> Amount: <input type='text' name='amnt' /> <input type='submit' value='Send' /></form>"; } } And Under Code: [select] function gang_staff_masspaymentcry() { global $db,$ir,$c,$userid,$gangdata; $_POST['amnt']=abs((int) $_POST['amnt']); if($_POST['amnt']) { $q=$db->query("SELECT * FROM users WHERE gang={$ir['gang']}"); while($r=$db->fetch_row($q)) { if($gangdata['gangCRYSTALS'] >= $_POST['amnt']) { event_add($r['userid'],"You were given {$_POST['amnt']} crystals from your gang.",$c); $db->query("UPDATE users SET crystals=crystals+{$_POST['amnt']} WHERE userid={$r['userid']}", $c); $gangdata['gangCRYSTALS']-=$_POST['amnt']; print "Crystals sent to {$r['username']}. "; } else { print "Not enough in the vault to pay {$r['username']}! "; } } $db->query("UPDATE gangs SET gangCRYSTALS={$gangdata['gangCRYSTALS']} WHERE gangID={$ir['gang']}", $c); $db->query("INSERT INTO gangevents VALUES('',{$ir['gang']},unix_timestamp(), 'A mass payment of {$_POST['amnt']} crystals was sent to the members of the Gang.')"); print "Mass payment sending complete! > Back"; } else { print "Mass Payment(Crystals) <form action='yourgang.php?action=staff&act2=masspaymentcry' method='post'> Amount: <input type='text' name='amnt' /> <input type='submit' value='Send' /></form>"; } } Then Find Code: [select] { print "Mass Payment <form action='yourgang.php?action=staff&act2=masspayment' method='post'> Amount: <input type='text' name='amnt' /> <input type='submit' value='Send' /></form>"; } } Replace with Code: [select] { print "Mass Payment (Money) <form action='yourgang.php?action=staff&act2=masspayment' method='post'> Amount: <input type='text' name='amnt' /> <input type='submit' value='Send' /></form>"; } } Quote
Haunted Dawg Posted August 17, 2009 Posted August 17, 2009 Re: Mass Crystals give gangs By the look's of it, you copied this from some where else. Quote
weewooz Posted August 17, 2009 Author Posted August 17, 2009 Re: Mass Crystals give gangs your right i did of a text doc on my desktop which i put it on to make sure it was spaced out right man dont no why people bother on here susposed to be free people always moan dont use your choice god man just chill Quote
Danny696 Posted August 17, 2009 Posted August 17, 2009 Re: Mass Crystals give gangs LMAO! this has been done by SouIAssassin and gues what all youve done is c/p it look at the very first line This Lets Gang Owners Send A Mass Payment In Crystals As Well As Money. ohh and look at SouIAssassins very first line What This Update Does It Lets Gang Owner Send A Mass Payment In Crystals As Well As Money. is it me or are these similar then go down a line or two and you see Open YourGang.php Find. and look at SouIAssassins Open YourGang.php Find. any thing clicking yet me thinks knows you didnt do this -1 for you btw heres SouIAssassins http://criminalexistence.com/ceforums/i ... ic=29382.0 Quote
weewooz Posted August 17, 2009 Author Posted August 17, 2009 Re: Mass Crystals give gangs lol danny ive edited it look at script more closer you will see that post as errors ive fixed it up Quote
Danny696 Posted August 17, 2009 Posted August 17, 2009 Re: Mass Crystals give gangs so is this your work or not if not why say it is? Quote
gurpreet Posted August 17, 2009 Posted August 17, 2009 Re: Mass Crystals give gangs lol danny ive edited it look at script more closer you will see that post as errors ive fixed it up Even so, did you get SouI's permission? Quote
DeaTH_RideR Posted August 18, 2009 Posted August 18, 2009 Re: Mass Crystals give gangs lol i dont mean to be a bastard but do you guys search for shit before you make a post about the same things ? This is on here more then 1 time i added this to my game 8 months ago from here. :-D Quote
Danny696 Posted August 18, 2009 Posted August 18, 2009 Re: Mass Crystals give gangs lol i dont mean to be a bastard but do you guys search for <censored> before you make a post about the same things ? This is on here more then 1 time i added this to my game 8 months ago from here. :-D nor do i mean to be a bastard but cant you see weve allready found out this isnt his work Quote
DeaTH_RideR Posted August 18, 2009 Posted August 18, 2009 Re: Mass Crystals give gangs its not soulAssisions work either http://criminalexistence.com/ceforums/index.php?topic=2101.0 Quote
Danny696 Posted August 18, 2009 Posted August 18, 2009 Re: Mass Crystals give gangs its not soulAssisions work either http://criminalexistence.com/ceforums/index.php?topic=2101.0 lol this is too funny Quote
weewooz Posted August 18, 2009 Author Posted August 18, 2009 Re: Mass Crystals give gangs yes at last that post someradom is lostone aka lostone and yes i do have is perrmision to post it danny go ahead and ask we are great friends mate fire away ask him then when you get you answer make sure to post sorry i dontr why people bothere on here anymore i really dont full of people who think they can code put people down or moan all the time what is ce coming to oh wel lol theres my moan Quote
Danny696 Posted August 18, 2009 Posted August 18, 2009 Re: Mass Crystals give gangs yes at last that post someradom is lostone aka lostone and yes i do have is perrmision to post it danny go ahead and ask we are great friends mate fire away ask him then when you get you answer make sure to post sorry i dontr why people bothere on here anymore i really dont full of people who think they can code put people down or moan all the time what is ce coming to oh wel lol theres my moan you show me where it says you have permision and get soui on here to say that you were allwoed to rob fix what ever you did to his post Quote
wolfe Posted August 18, 2009 Posted August 18, 2009 Re: Mass Crystals give gangs Its a free mod. People modify and improve the free mods all the time. He should have indicated that the original code had come from the original maker, however, since he was posting it. A bit of respect goes a long way. Quote
weewooz Posted August 19, 2009 Author Posted August 19, 2009 Re: Mass Crystals give gangs thanks wolfie and yeah i should have yes i take the blame on that part Quote
Danny696 Posted August 19, 2009 Posted August 19, 2009 Re: Mass Crystals give gangs Wolfie?? atleast get his name rite its Wolfe Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.