Vice City: Multiplayer

Server Development => Scripting and Server Management => Snippet Showroom => Topic started by: KAKAN on Dec 27, 2015, 07:31 AM

Title: [Filterscript]Virtual keys code
Post by: KAKAN on Dec 27, 2015, 07:31 AM
Hello all. So, within this winter holidays I was getting bored, so just today( now ) I made a script which have the constants of all the key binds which can be used in OnKeyUp and OnKeyDown.
If you find any bug, report it to me, enjoy the script as well!
Here you go:-
Link: http://files.thijn.ovh/download/c0cf00d2b804bba30d02fcaf5a8f550c/Virtual%20keys.nut
(https://forum.vc-mp.org/proxy.php?request=http%3A%2F%2Ffiles.thijn.ovh%2Fimg%2Fc0cf00d2b804bba30d02fcaf5a8f550c%2FVirtual%2520keys.nut&hash=26a3d989deea0e035af3e230efcbc6534586ba24) (http://files.thijn.ovh/download/c0cf00d2b804bba30d02fcaf5a8f550c/Virtual%20keys.nut)

Please don't hurt me by saying comments like, "How to use", "Where to paste" etc.
Load it to your script using:-
dofile("Virtual keys.nut",true); -You can put it anywhere, but we prefer to put it in onScriptLoad()
Title: Re: Virtual keys code
Post by: KAKAN on Dec 27, 2015, 07:38 AM
Ahh, wait, these are not working.
I'll fix them ASAP.
Till then don't download please!
EDIT:- The script seems to be fixed, now it's updated too!
Title: Re: Virtual keys code
Post by: . on Dec 27, 2015, 11:47 AM
And yet... How does this qualify as a script?
Title: Re: Virtual keys code
Post by: MacTavish on Dec 27, 2015, 12:13 PM
Ehmm. Rename topic to [filterscript] @KAKAN
Title: Re: Virtual keys code
Post by: KAKAN on Dec 27, 2015, 01:28 PM
Quote from: S.L.C on Dec 27, 2015, 11:47 AMAnd yet... How does this qualify as a script?
I just released it, so that it can help others.

Quote from: Kusanagi on Dec 27, 2015, 12:13 PMEhmm. Rename topic to [filterscript] @KAKAN
Thanks!
Title: Re: [Filterscript]Virtual keys code
Post by: . on Dec 27, 2015, 01:32 PM
Quote from: KAKAN on Dec 27, 2015, 01:28 PM
Quote from: S.L.C on Dec 27, 2015, 11:47 AMAnd yet... How does this qualify as a script?
I just released it, so that it can help others.

No. I mean, what makes this a script and not a snippet? Is it because its a file?
Title: Re: [Filterscript]Virtual keys code
Post by: KAKAN on Dec 27, 2015, 01:33 PM
Quote from: S.L.C on Dec 27, 2015, 01:32 PM
Quote from: KAKAN on Dec 27, 2015, 01:28 PM
Quote from: S.L.C on Dec 27, 2015, 11:47 AMAnd yet... How does this qualify as a script?
I just released it, so that it can help others.

No. I mean, what makes this a script and not a snippet? Is it because its a file?
Maybe yes. This had many lines as a snippet, that's why I posted it here.
Title: Re: [Filterscript]Virtual keys code
Post by: . on Dec 27, 2015, 01:49 PM
Quote from: KAKAN on Dec 27, 2015, 01:33 PMMaybe yes. This had many lines as a snippet, that's why I posted it here.

Probably has less code than this (http://forum.vc-mp.org/?topic=1437.msg9890#msg9890) or this (http://forum.vc-mp.org/?topic=944.msg6067#msg6067) :-\
Title: Re: [Filterscript]Virtual keys code
Post by: KAKAN on Dec 27, 2015, 02:45 PM
Quote from: S.L.C on Dec 27, 2015, 01:49 PM
Quote from: KAKAN on Dec 27, 2015, 01:33 PMMaybe yes. This had many lines as a snippet, that's why I posted it here.

Probably has less code than this (http://forum.vc-mp.org/?topic=1437.msg9890#msg9890) or this (http://forum.vc-mp.org/?topic=944.msg6067#msg6067) :-\
Probably more than this. (http://forum.vc-mp.org/?topic=1591.0) :-\
Title: Re: [Filterscript]Virtual keys code
Post by: Thijn on Dec 27, 2015, 03:49 PM
Moved to snippets. It does nothing by it's own. You need to make your own code work with this. Which, I believe, make this more of a snippet then an actual script.