Hey, also that won't add an actual guild tag, all that will do it temporarly set their guild...
If you want to make it so they can use that tag whenever tey like use this:
NPC Code:
addguildmamger guild,account,nickname;
removeguildmember guild,account;
Then anything in the serverside section of the script (the part being parsed by npc server, not the client, or better known as "Before where you put the //#CLIENTSIDE thingy", just have this line:
setplayerprop #g,guildname;
you cannot do this:
setplayerprop #n,nickname (guildname);
unless the player is in the guild, and even then i am not sure.