Difference between revisions of "User:Ugleh Ulrik/GiveBulkMoney"
Jump to navigation
Jump to search
Ugleh Ulrik (talk | contribs) (Created page with '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...') |
Ugleh Ulrik (talk | contribs) |
||
Line 34: | Line 34: | ||
touch_start(integer total_number) | touch_start(integer total_number) | ||
{ | { | ||
list users = [" | list users = ["00000000-0000-0000-0000-000000000000", "00000000-0000-0000-0000-000000000000"]; | ||
GiveBulkMoney(users,2); | GiveBulkMoney(users,2); | ||
} | } | ||
Line 40: | Line 40: | ||
</lsl> | </lsl> | ||
{{LSLC|UD Functions}} |
Revision as of 15:55, 24 May 2010
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 Make sure you change the uuid's in the list, i don't want your money accidentally :) <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>