Author Topic: Event_DoCommand  (Read 1019 times)

This event would work like this-
Code: [Select]
Input > player > Docommand [ Command here ] For example- if you want a skeleton playertype, you'd do
Code: [Select]
OnPlayertouch > player > Docommand [ /skeleme ] (if you have ffc of course) and it would act as though the activating player said that command.
This will make it so that if you want something to happen in event form, that's only present in the form of a command, you can simply do it with this. Another example could be if your playing some sort of game where you ride other players heads in a race-
Code: [Select]
Onplayertouch > player > docomand [ /mount head (racer) ]



what would be interesting would be console access in general :D

what would be interesting would be console access in general :D

Agreed. This would be extraordinarily useful.

Second it and it would be very useful.

So... anyone up to making this? My knowledge of coding is too limited to make such a script, and this would be extremely useful.

i'm looking for something simple to do and i know how i could do this. i'll try!

Console access through events sounds extremely abusive

Anyways, as for an event to do slash commands,
http://dl.dropbox.com/u/22117186/Event_DoCommand.zip

It's an event on the client, and it supports up to three arguments
Keep in mind it could be abused, the only command thats filtered is /sad

Anyways, to use it, just type the name of the command (without a slash) and any arguments seperated by a space, for example, "Self Delete" or "messagesent Hello!"
« Last Edit: February 27, 2011, 07:21:05 PM by Headcrab Zombie »


Console access through events sounds extremely abusive

Anyways, as for an event to do slash commands,
-just incase-

It's an event on the client, and it supports up to three arguments
Keep in mind it could be abused, there's no filtering at all so you could make players say things

Anyways, to use it, just type the name of the command (without a slash) and any arguments seperated by a space, for example, "Self Delete" or "messagesent Hello!"

The last time one of these was made, Badspot had to fail it.
Also, your script is vulnerable to injection since it uses eval.

I know there's a lot of room for abuse in it, which is why I won't post this anywhere other than the requests forum.

Updated it to filter out serverCmdSad so people can't make admin fail kick bricks, so redownload it if you've already downloaded it. If I can think of anything else equally (or more) abusive I'll add that.

As for the eval, I couldn't think of any better way to do it, nor can I think of anything you could enter in to abuse eval.
« Last Edit: February 27, 2011, 07:21:28 PM by Headcrab Zombie »

I also made a topic in coding help where I was trying to figure out how to fix some issues with a skeleton playertype I was making. That's the main reason I made this topic, at first I thought that this'll work just as good as having the playertype itself, although I just realized I can't apply this to bots XD But it's still an awesome event anyways, Thx!