English Searching for a command processor.

17 replies
Goto Page
To the start Previous 1 Next To the start
Up
script favor
User
Online On
Hello us,
I'm searching for command processor and adding my own commands on , so you will do a big favor for me.

Here some cookies .
Visit my website : https://bounty-mafia.tk , Discord : https://discord.gg/ntNd6TX, IMG:http://i60.tinypic.com/5kixc8.gif
12.02.18 05:59:38 pm
Up
Yates
Reviewer
Offline Off
Code:
1
2
3
4
5
6
7
8
9
10
commands = {}

function commands.help()
    msg("ayyy")
end

local command = "help"

func = loadstring("commands."..command.."()")
func()


That's all you need. Probably works, didn't test it.
12.02.18 06:06:37 pm
Up
script favor
User
Online On
@user Yates: If you can add msg "unknown command" would be great as well, here cookies x2.Thank you
Visit my website : https://bounty-mafia.tk , Discord : https://discord.gg/ntNd6TX, IMG:http://i60.tinypic.com/5kixc8.gif
12.02.18 06:08:01 pm
Up
Yates
Reviewer
Offline Off
Just copy lines 3 to 5 then rename
help
to whatever you want and change the local
command
parameter to the same thing.

Example:

Code:
1
2
3
4
5
6
7
8
9
10
commands = {}

function commands.thisisashittyfunction()
    msg("hey look at me")
end

local command = "thisisashittyfunction"

func = loadstring("commands."..command.."()")
func()
12.02.18 06:15:57 pm
Up
script favor
User
Online On
Code:
1
LUA ERROR:20: attempt to call global 'func' (a nil value)


This acutally what shown
Visit my website : https://bounty-mafia.tk , Discord : https://discord.gg/ntNd6TX, IMG:http://i60.tinypic.com/5kixc8.gif
13.02.18 10:05:29 am
Up
Gaios
Security Supporter
Offline Off
@user script favor: You must programm it and add hooks.. There's no magic.
13.02.18 01:48:48 pm
Up
_px 20
GAME BANNED
Offline Off
@user script favor: Judging from your name, imo people doesn't need to write full explanation/code.
13.02.18 01:58:42 pm
Up
script favor
User
Online On
close the thread ~
Visit my website : https://bounty-mafia.tk , Discord : https://discord.gg/ntNd6TX, IMG:http://i60.tinypic.com/5kixc8.gif
13.02.18 07:36:49 pm
Up
Waldin
User
Offline Off
@user script favor: why lol the problem isnt solved right?
user Waldin (2014) has written:
can be create 3D option for tiles on 3D
user DC (2014) has written:
@user Waldin: This is a 2D game. there are no 3D tiles.
changelog (2017) has written:
ADDED Experimental 3D rendering mode
14.02.18 09:42:05 pm
Up
script favor
User
Online On
Cause everyone , posting shiet i'm just searching for a help !.
Visit my website : https://bounty-mafia.tk , Discord : https://discord.gg/ntNd6TX, IMG:http://i60.tinypic.com/5kixc8.gif
14.02.18 11:51:35 pm
Up
_px 20
GAME BANNED
Offline Off
@user script favor: Didn't you realised that user Yates helped you?
15.02.18 02:24:16 am
Up
VADemon
User
Offline Off
@user _px 20: it's the worst way possible, enabling Remote Code Execution on server.
15.02.18 08:56:01 am
Up
Gaios
Security Supporter
Offline Off
If you can't use search engine, that's your fault..

file cs2d Y.A.T.E.S (2.0.4) - Admin Script / Framework (39)
15.02.18 09:30:08 am
Up
Yates
Reviewer
Offline Off

Thanks!

https://github.com/IvaWonderbush/Y.A.T.E.S/tree/development

Development branch is better

@user script favor:

• Command execution line 41
• Say hook (with checks) line 299

Should get you far enough for your own implementation.

@user VADemon: It's fine as long as you don't do or allow anything to do any weird things
edited 1×, last 15.02.18 11:37:08 am
15.02.18 09:55:42 am
Up
script favor
User
Online On
I don't need admin script at the moment , i created my own so.
Visit my website : https://bounty-mafia.tk , Discord : https://discord.gg/ntNd6TX, IMG:http://i60.tinypic.com/5kixc8.gif
15.02.18 10:52:34 am
Up
Gaios
Security Supporter
Offline Off
user script favor has written:
I'm searching for command processor and adding my own commands on , so you will do a big favor for me.

Command Processor = Admin Script..

This is your solution
> https://github.com/IvaWonderbush/Y.A.T.E.S/tree/development



Anyway file cs2d Competitive Admin Script (7) also has good Command Processor, but the script isn't well written.

Spoiler >
15.02.18 11:39:15 am
Up
Yates
Reviewer
Offline Off
user script favor has written:
I don't need admin script at the moment , i created my own so.

If you click on both links you'll see my implementation of processing commands, you can just copy parts of it to your own script. You don't need to use the whole thing if you don't want to.
15.02.18 12:33:24 pm
Up
script favor
User
Online On
@user Yates: Wow that's so fabulous thank you !.
Visit my website : https://bounty-mafia.tk , Discord : https://discord.gg/ntNd6TX, IMG:http://i60.tinypic.com/5kixc8.gif
To the start Previous 1 Next To the start