Raised This Month: $13 Target: $400
 3% 

Module: Execute


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
[ --<[email protected] ] Black Rose
ANNIHILATED
Join Date: Sep 2005
Location: Stockholm, Sweden.
Old 03-30-2008 , 14:24   Module: Execute
Reply With Quote #1

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.

Last edited by [ --<[email protected] ] Black Rose; 04-18-2008 at 17:48. Reason: Forgot "Module:"
[ --<-@ ] Black Rose is offline
Send a message via MSN to [ --<-@ ] Black Rose Send a message via Skype™ to [ --<-@ ] Black Rose
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 03-30-2008 , 14:39   Re: Execute
Reply With Quote #2

Interesting...Gj!I'll try this ASAP
__________________
Still...lovin' . Connor noob! Hello
Alka is offline
|PJ| Shorty
Veteran Member
Join Date: Aug 2005
Location: Bavaria, Germany
Old 03-31-2008 , 05:36   Re: Execute
Reply With Quote #3

very interesting, linux build possible?
GJ
__________________
There are only 10 types of people in the world:
Those who understand binary, and those who donīt.
|PJ| Shorty is offline
Send a message via ICQ to |PJ| Shorty Send a message via AIM to |PJ| Shorty Send a message via MSN to |PJ| Shorty Send a message via Yahoo to |PJ| Shorty Send a message via Skype™ to |PJ| Shorty
[ --<[email protected] ] Black Rose
ANNIHILATED
Join Date: Sep 2005
Location: Stockholm, Sweden.
Old 03-31-2008 , 11:16   Re: Execute
Reply With Quote #4

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

Last edited by [ --<[email protected] ] Black Rose; 04-05-2008 at 13:20.
[ --<-@ ] Black Rose is offline
Send a message via MSN to [ --<-@ ] Black Rose Send a message via Skype™ to [ --<-@ ] Black Rose
hoboman
Senior Member
Join Date: Jul 2007
Old 03-31-2008 , 11:22   Re: Execute
Reply With Quote #5

could someone change the priority of a running server with this?
if yes, then rofl...
__________________
hoboman is offline
[ --<[email protected] ] Black Rose
ANNIHILATED
Join Date: Sep 2005
Location: Stockholm, Sweden.
Old 03-31-2008 , 13:45   Re: Execute
Reply With Quote #6

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

Last edited by [ --<[email protected] ] Black Rose; 03-31-2008 at 13:51.
[ --<-@ ] Black Rose is offline
Send a message via MSN to [ --<-@ ] Black Rose Send a message via Skype™ to [ --<-@ ] Black Rose
Lord_Destros
Veteran Member
Join Date: Jul 2004
Location: With stupid.
Old 04-09-2008 , 02:03   Re: Module: Execute
Reply With Quote #7

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....
__________________
Quote:
Originally Posted by Twilight Suzuka
Don't worry m'lord. The turtles day will come.

Last edited by Lord_Destros; 04-09-2008 at 02:05.
Lord_Destros is offline
Send a message via AIM to Lord_Destros
shine771
Senior Member
Join Date: Jun 2007
Location: Latvia
Old 04-11-2008 , 19:17   Re: Module: Execute
Reply With Quote #8

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?
__________________
shine771 is offline
[ --<[email protected] ] Black Rose
ANNIHILATED
Join Date: Sep 2005
Location: Stockholm, Sweden.
Old 04-12-2008 , 06:33   Re: Module: Execute
Reply With Quote #9

no.
[ --<-@ ] Black Rose is offline
Send a message via MSN to [ --<-@ ] Black Rose Send a message via Skype™ to [ --<-@ ] Black Rose
Jheshka
Senior Member
Join Date: Dec 2005
Old 05-08-2008 , 17:25   Re: Module: Execute
Reply With Quote #10

This sounds really sweet, I hope you can fix it
__________________
James
Jheshka is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 05:52.


Powered by vBulletin®
Copyright ©2000 - 2020, vBulletin Solutions, Inc.
Theme made by Freecode