[Plugin] [REL] Execute
#21

Can I save into an array ?
In PHP:
exec('arp '.$ip, $answer);
In SA-MP:
?
Reply
#22

Quote:
Originally Posted by legodude
Посмотреть сообщение
still same. we tried this before.
with the filemanager plugin...
This problem should be solved now, re-download the Windows dll and put it into your plugins folder

Quote:
Originally Posted by Diler
Посмотреть сообщение
Can I save into an array ?
In PHP:
exec('arp '.$ip, $answer);
In SA-MP:
?
That's a good idea, I'll look into implementing it shortly.
Reply
#23

Nice plugin i use it!
Reply
#24

how about "cd", "exit" or "su"?
If i do this, does the server stay in this state or does it return to the GTA server?
Reply
#25

I don't understand anything. What does it do?
Reply
#26

Awesome, gonna dload this.
Reply
#27

Quote:
Originally Posted by anonymousx
Посмотреть сообщение
I don't understand anything. What does it do?
It's explained in the original post! It adds a function to Pawn called "exec", this function will directly execute commands on either Windows or Linux operating systems.
Reply
#28

is the saving function looked into??
Reply
#29

I assume, by the description, that this can be used to rotate the logs if the correct command is executed?
Reply
#30

Example to close server window.

pawn Код:
// Normal:
exec("TASKKILL /F /IM \"samp-server.exe\"");

// Macro:
#define close_server() \
    exec("TASKKILL /F /IM \"samp-server.exe\"");
It closes the samp server.

-------------------------------------------------------------

pawn Код:
exec("ECHO Test"); // Displays a message in samp window - won't be logged in log file
exec("DATE /T"); // Shows current date in samp window - won't be logged in log file
main() return exec("CLS"); // Sets the node at 0 and removes any text from samp window
-------------------------------------------------------------

pawn Код:
exec("COLOR 1F"); // See picture below
exec("COLOR 06"); // MTA Colors
Color-Codes:
Link

Reply
#31

nice plugin!
Reply
#32

how about returning text?

like
Код:
root@servername:~# foo
-bash: foo: command not found
for example, so that "-bash: foo: command not found" is returned.
Reply
#33

You can't ask e. g. for the operating system. It will be only shown (show) in samp-server.
Reply
#34

Quote:
Originally Posted by Meta
Посмотреть сообщение
how about returning text?

like
Код:
root@servername:~# foo
-bash: foo: command not found
for example, so that "-bash: foo: command not found" is returned.
I have created a plugin which returns the output.
Download link: http://www.mediafire.com/file/klrbm9...3w3/system.zip
Example usage:
pawn Код:
#include <system>

new string[13];
system("echo Hello World!", string, sizeof(string)); // 'string' now contains the output
printf(string);
Which prints "Hello World!".
Reply
#35

With this I can open the CD of the playetr?
Reply
#36

Uhm, no, this can "only" do things from/on the server side, eg: launch an application on the server
Reply
#37

Quote:
Originally Posted by Killerkid
Посмотреть сообщение
I have created a plugin which returns the output.
Download link: http://www.mediafire.com/file/klrbm9...3w3/system.zip
Example usage:
pawn Код:
#include <system>

new string[13];
system("echo Hello World!", string, sizeof(string)); // 'string' now contains the output
printf(string);
Which prints "Hello World!".
I can't get this to work, no output even from your example. I'm using Linux Debian
Reply
#38

Does someone know how to open and close a file using linux cmds?

Like windows cmds, for example:

open
pawn Код:
exec("START samp-server.exe");
close
pawn Код:
exec("TASKKILL /F /IM \"samp-server.exe\"");
But i want for linux
Reply
#39

Quote:

Not Found

The requested URL /view=SA-MP Execute Plugin was not found on this server.

New Download Link?
Reply
#40

http://files.jatochnietdan.com/?view...ecute%20Plugin
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)