AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Module Coding (https://forums.alliedmods.net/forumdisplay.php?f=9)
-   -   Module: Execute (https://forums.alliedmods.net/showthread.php?t=69205)

[ --<-@ ] Black Rose 03-30-2008 14:24

Module: Execute
 
2 Attachment(s)
Rose's back, but with a much more appropriate attitude.

Run executable files on server.

Code:

#define PRI_LOW                        0
#define PRI_BELOWNORMAL                1
#define PRI_NORMAL                2
#define PRI_ABOVENORMAL                3
#define PRI_HIGH                4
#define PRI_REALTIME                5

/* Starts an executable application.
*
* const file[]
*        Filepath and filename, this does not start from moddir.
*        Example:
*                "C:\Program Files\Anti-Virus Update.exe"
*
* priority
*        Nothing more to say, priority of application.
*        Values:
*                PRI_LOW
*                PRI_BELOWNORMAL
*                PRI_NORMAL
*                PRI_ABOVENORMAL
*                PRI_HIGH
*                PRI_REALTIME
*
* bool:wait
*        Decides if the server should wait for the file to be closed before continuing.
*/
native start(const file[], priority = PRI_NORMAL, bool:wait = false);

Edit: Removed until fixed.

Alka 03-30-2008 14:39

Re: Execute
 
Interesting...Gj!I'll try this ASAP

|PJ| Shorty 03-31-2008 05:36

Re: Execute
 
very interesting, linux build possible?
GJ

[ --<-@ ] Black Rose 03-31-2008 11:16

Re: Execute
 
I'm sorry, I have no idea how to build for linux. My first C++.
Edit: Would someone explain how to build for linux?

hoboman 03-31-2008 11:22

Re: Execute
 
could someone change the priority of a running server with this?
if yes, then rofl...

[ --<-@ ] Black Rose 03-31-2008 13:45

Re: Execute
 
No.
But if you get a program wich can change priority, for example this, then you can do it.

Lord_Destros 04-09-2008 02:03

Re: Module: Execute
 
Just curious, are there any "pointful" applications for this currently? Heh, I find it funny that AMXX can actually "enable" malware now. Hopefully this doesn't cause people to attempt to distribute such packages....

shine771 04-11-2008 19:17

Re: Module: Execute
 
Just wondering can it check if some programs are running? Or can it check if a program path is valid? I mean, if program exists in that dir?

[ --<-@ ] Black Rose 04-12-2008 06:33

Re: Module: Execute
 
no.

Jheshka 05-08-2008 17:25

Re: Module: Execute
 
This sounds really sweet, I hope you can fix it :)


All times are GMT -4. The time now is 19:33.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.