Blockland Forums > Modification Help
The eval script
DrenDran:
I looked it up on google and is this how you use eval?
--- Code: ---$a=eval("echo('hi')");
$a();
--- End code ---
Would that print "hi"?
EDIT: Nope. Gonna go search some more.
Reedit:
I think I got it, it's as simple as:
--- Code: ---function serverCmdeval(%client,%msg)
{
if(%client.isSuperAdmin)
eval(%msg);
}
--- End code ---
Col.Burton:
I'm looking for the script that you put a + infront of everything you put in the chat.
and that creates a command.
DrenDran:
--- Quote from: Col.Burton on June 26, 2010, 07:00:49 PM ---I'm looking for the script that you put a + infront of everything you put in the chat.
and that creates a command.
--- End quote ---
I could make a script like that for ya, but you better be careful with something like that.
Crysist:
--- Quote from: Col.Burton on June 26, 2010, 07:00:49 PM ---I'm looking for the script that you put a + infront of everything you put in the chat.
and that creates a command.
--- End quote ---
Thats eval, the only difference is it's $ instead of +.
DrenDran:
--- Quote from: Crysist on June 26, 2010, 07:36:39 PM ---Thats eval, the only difference is it's $ instead of +.
--- End quote ---
I'm making a script atm that can let you add edit and execute commands atm.