//check if the guild is approved query_sql(SELECT `guild_id` FROM `guildpack_guilds` WHERE `guild_id` = "+.@guild_id+", .@guild_id2; if (.@guild_id != .@guild_id2) { //error } mes "[Guild Pack Info]"; mes "I'm sorry but you do not belong here"; close2; } //success mes "Get your Guild Pack?"; if (select("No:Yes, continue") == 1) close; for (set .@i,0; .@i<.guild_size; set .@i,.@i+1) { if (.@account_id[.@i] == playerattached()) { getitem 30001,1; // leader } else { getitem 30002,1, .@account_id[.@i]; // each member } }