User:Ugleh Ulrik/GiveBulkMoney
< User:Ugleh Ulrik
Jump to navigation
Jump to search
Revision as of 13:53, 25 May 2010 by Ugleh Ulrik (talk | contribs)
GiveBulkMoney function will send money to all the uuid's inside of a list.
Function <lsl> GiveBulkMoney(list u, integer amount){ integer a = 0; while(a < llGetListLength(u)) {
llGiveMoney(llList2Key(u,a), amount); ++a;
} }</lsl>
Example <lsl> GiveBulkMoney(list u, integer am){ integer a = 0; while(a < llGetListLength(u)) {
llGiveMoney(llList2Key(u,a), am); ++a;
} }
default {
state_entry() { llRequestPermissions(llGetOwner(), PERMISSION_DEBIT); }
touch_start(integer total_number) {
list users = ["00000000-0000-0000-0000-000000000000", "00000000-0000-0000-0000-000000000000"];
GiveBulkMoney(users,2); }
}
</lsl>