playersay doesnt work..

I tried the playersay hook, and it does not work.
Does anyone know if evovle, ulx or DARKRP conflicts wich this hook?

[editline]05:12PM[/editline]

Even when i copy paste this it does not work
[lua]
function ISaid( ply, text, team, death )
if (string.sub(text, 1, 4) == “/all”) then–if the first 4 letters are /all continue
return “[Global]”…string.sub( text, 5 );–add [Global] infront of the players text then display
end
end
hook.Add( “PlayerSay”, “ISaid”, ISaid );
[/lua]

Are you using this Serverside?

yes

It should work then

Why not use **[Gamemode.OnPlayerChat

http://wiki.garrysmod.com/favicon.ico](http://wiki.garrysmod.com/?title=Gamemode.OnPlayerChat)** on the client?

ULX would not interfere with a hook like that.

Also this does not work:
function FirstSpawn( ply )

ply:PrintMessage(HUD_PRINTCENTER,"tes tes")

end

hook.Add( “PlayerInitialSpawn”, “playerInitialSpawn”, FirstSpawn )

mmh, what am I doing wrong? I have included a axe.lua in the init.lua of darkrp. I even placed this at the init.lua of darkrp, why doesn;'t it work?