PDA

View Full Version : Donate To Specific Usergroup


The Equivocate
01-29-2005, 06:09 PM
Is there a way I could add a certain amount of cash to only a certain usergroup? Is there maybe an SQL function that would do this?

Link14716
01-30-2005, 03:01 AM
This will be in 0.96 to give a weekly/monthly/etc paycheck, however, if you just want to give some points to a usergroup, this query should work.

UPDATE user SET uttpoints=uttpoints+X WHERE usergroupid=Y;
Where X is the amount of points to give and Y is the usergroupid of the group you want to give points to.