Send a usermessage to the client to tell him to open it or make him run a console command to open it
Can you use ENT:Use in cl_init?
[QUOTE=SammySung;28799544]Can you use ENT:Use in cl_init?[/QUOTE]
[b][url=wiki.garrysmod.com/?title=ENT.Use]ENT.Use [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]
Serverside only.
[QUOTE=SammySung;28799544]Can you use ENT:Use in cl_init?[/QUOTE]
No thats why you need to use a console command or usermessage
If you have a console command to open the MOTD then just do:
[lua]
function ENT:Use(activator, caller)
activator:ConCommand("open_motd") --Whatever the concommand is
end
[/lua]
To other coders: Right?
Why do you ask if its correct you are simply making tiny edits to the examples from the wiki if you were getting it wrong then you would be more of an idiot than you already are
Just trying to be humble, and I know I am a noob, so I make stupid errors.
[editline]27th March 2011[/editline]
(Such as making it
[lua]
function ENT.Use
[/lua]
instead of
[lua]
function ENT:Use
[/lua]
, which I did, in case you're wondering).
Sorry, you need to Log In to post a reply to this thread.