DndTheTroll
Respected Member
Hello, I've learnt lua today but i've a small problem here
// Guild
GUILD_EVENT_ON_CREATE = 33, - Implemented -- Commented out
Why there's no (event, player) or something like that? cuz im trying to make if someone made new guild it will announce and here's my the code that i wrote so far
if someone can fix it for me will be great and sorry for my bad English.
// Guild
GUILD_EVENT_ON_CREATE = 33, - Implemented -- Commented out
Why there's no (event, player) or something like that? cuz im trying to make if someone made new guild it will announce and here's my the code that i wrote so far
-- coded by DndTheTroll
local function GuildOnCreate()
player:SendBroadcastMessage(""..player:GetName().." has created a guild "..guild:GetName().."")
end
RegisterServerHook(33, GuildOnCreate)
if someone can fix it for me will be great and sorry for my bad English.