Raised This Month: $ Target: $400
 0% 

how to hook event in game then run linux .sh script


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
csykosoma
Member
Join Date: Dec 2011
Old 12-06-2020 , 15:33   how to hook event in game then run linux .sh script
Reply With Quote #1

I'd like to hook an in-game event, and then run an OS .sh script on the linux machine. What would be a good way to do this?
csykosoma is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 12-06-2020 , 15:52   Re: how to hook event in game then run linux .sh script
Reply With Quote #2

One relatively easy way: in a module hook your event and then use the C system("script.sh") function to execute your script.
__________________

Last edited by HamletEagle; 12-06-2020 at 15:52.
HamletEagle 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 00:27.


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