General > Off-Topic
How you did...
(1/1)
Chironex:
On your server, you overwrite the connecting message "What happen now?" with your own message, can you tell me how you did?
I tried that in a new file that i placed into lua/autorun:
--- Code: ---local function player_SetMsgUrl( ply )
ply:ConCommand("sv_messageurl http://www.the_new_url.here")
end
end
hook.Add( "PlayerConnect", "SetMsgUrl", player_SetMsgUrl )
local function player_RestoreMsgUrl( ply )
ply:ConCommand("sv_messageurl http://www.garrysmod.com/sv_messageurl")
end
end
hook.Add( "PlayerDisconnected", "RestoreMsgUrl", player_RestoreMsgUrl )
--- End code ---
But it doesn't work :[, please help :)
spbogie:
notice the sv on sv_messageurl, that means it's a SERVER convar. Just set it in your config file.
Chironex:
Oh right, i will try it, thanks :)
Navigation
[0] Message Index
Go to full version