General > Developers Corner

How do I create stopsound chat command?

<< < (2/2)

kaos2100:
I actually fixed it by doing the SendLua command. Thanks though!

Here it is if anyone wants to use it


--- Code: ---calling_ply:SendLua("LocalPlayer():ConCommand('stopsounds')")

--- End code ---

Megiddo:
Garry's blocks on remote execution are so silly. :P

JamminR:
Kaos, I renamed your topic post. In future, at forums where you are asking for help, I'd suggest not just saying "I need help".
Most here already want/need help. Make it a title about 'what kind' of help you're needing. :)

If interested in writing more of your own ULX commands (or, using ULib), check out our ULib documentation
http://ulyssesmod.net/docs/files/lua/ulib/shared/commands-lua.html
And, specifically regarding ULX commands, chat and/or console, see halfway through my long comparison post.. it's closest we have to 'how to make commands'... has a well-commented example command.
http://forums.ulyssesmod.net/index.php/topic,4464.msg17838.html#msg17838 (find "So, on to the new New command structure...")

MulleDK13:

--- Quote from: Megiddo on October 14, 2012, 05:11:57 AM ---Garry's blocks on remote execution are so silly. :P

--- End quote ---

Ya, I hate that. I remember back in Gmod 10 when I was able to change people's Steam name, make them connect to another server or quit their game >:D lol.

Navigation

[0] Message Index

[*] Previous page

Go to full version