Entire law list with one key? - Printable Version +- Fearless Forums (https://fearlessrp.net) +-- Forum: Community & Server Information (https://fearlessrp.net/forumdisplay.php?fid=1) +--- Forum: Help & Support (https://fearlessrp.net/forumdisplay.php?fid=3) +---- Forum: Support Archive (https://fearlessrp.net/forumdisplay.php?fid=158) +---- Thread: Entire law list with one key? (/showthread.php?tid=61188) |
Entire law list with one key? - HeyItsPlayerOne - 06-09-2015 Are multiple commands able to be executed from one key, I'd like a format or something on how to press a key like Numkey 7 and execute my entire list of laws. RE: Entire law list with one key? - Nightmare - 06-09-2015 I'd highly go against this. With Source Engine in particular, your dev console won't remind you on the character limit given in your chat messages - so if you go over the limit, all it would do is just cut out the parts that go over the limit. RE: Entire law list with one key? - evilmat360 - 06-09-2015 Look into using autohotkey to automatically send a list of your laws using a command. Griim has made a guide here: http://www.fearlessrp.net/showthread.php?tid=48263 RE: Entire law list with one key? - Safira - 06-09-2015 Using one key for more than 10 commands at a time (in this case, laws) is not recommended. To help prevent overloading, the server will kick you if you try to execute any file which has more than 10ish commands to carry through, with a message of "client X exceeded reliable client overflow" or something like this. It's a little complex to work your head around at first, but as Evilmat suggested, have a look at Griim's guide to autohotkey. RE: Entire law list with one key? - Dauntless - 06-09-2015 (06-09-2015, 01:35 PM)Safira Wrote: Using one key for more than 10 commands at a time (in this case, laws) is not recommended. What if say the autohotkey program has like a delay in-between the laws being added, like the same time it would take to copy and paste the laws yourself? It would just like copying pasting them yourself. RE: Entire law list with one key? - Wood - 06-09-2015 you can do it using an exec file. @doctorinternetplsposthere RE: Entire law list with one key? - Doctor Internet - 06-10-2015 in console alias law1 say /addlaw blaa; bind key law2 alias law2 say /addlaw blaa blaa; bind key law3 etc etc bind key law1 replace key. press key to get law. give it a few seconds delay, press key again. For config files.... C:\Program Files (x86)\Steam\SteamApps\common\GarrysMod\garrysmod\cfg Make a file called laws.cfg Add your laws. For example Code: cityrp addlaw ---[[ The Laws, Rights and Constitution of EvoCity ]]-- In console, while in game, type exec laws1. Give it time to post, then repeat until all laws are posted. Do not put more than 5 laws in a file, since it causes server lag. At higher numbers, it can cause a buffer overflow, and crash you. Source: Have done it before. Not fun. |