Raised This Month: $32 Target: $400
 8% 

Plugin exec command feom mysql row


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
alex2001
Member
Join Date: May 2019
Old 05-23-2019 , 17:44   Plugin exec command feom mysql row
Reply With Quote #1

Hello, I would like a plugin that at each round start checks a table with different commands and applies them.For example, a column with the sm_reloadadmins / sm_kick xyz commands. And at the beginning of each round to execute them.
I really need mysql because I want to do an android application with which I will insert the commands into the table and then the plugin will take them.
alex2001 is offline
Pilo
AlliedModders Donor
Join Date: Jan 2019
Location: Israel
Old 05-23-2019 , 18:42   Re: Plugin exec command feom mysql row
Reply With Quote #2

Recommend to you use this plugin :
https://forums.alliedmods.net/showthread.php?p=1874732 .
Very simple and useful plugin, just add in the cfg for example
"round_start say Hello World!".
__________________

Taking Private(PAID) Plugins In PM
Feel free to Donate with PayPal
Feel free to message me in Discord Pilo#8253
Total donated : 25$
Pilo is offline
CrazyHackGUT
AlliedModders Donor
Join Date: Feb 2016
Location: Izhevsk, Russia
Old 05-24-2019 , 00:51   Re: Plugin exec command feom mysql row
Reply With Quote #3

As pilo said, you can use Crontab plugin. But suggested record is not correct.
Code:
@round_start say Hello world!
__________________
My english is very bad. I am live in Russia. Learning english language - very hard task for me...
CrazyHackGUT is offline
Send a message via ICQ to CrazyHackGUT Send a message via Skype™ to CrazyHackGUT
Pilo
AlliedModders Donor
Join Date: Jan 2019
Location: Israel
Old 05-24-2019 , 02:43   Re: Plugin exec command feom mysql row
Reply With Quote #4

Code:
// * * * * * * <typ> <command>
// - - - - - - -     -
// ¦ ¦ ¦ ¦ ¦ ¦ ¦     ¦
// ¦ ¦ ¦ ¦ ¦ ¦ ¦     +-- The command to execute
// ¦ ¦ ¦ ¦ ¦ ¦ +-------- Available types are: console (execute server command), system (execute system command with system2 extension), player (execute on player console)
// ¦ ¦ ¦ ¦ ¦ +---------- Weekday (0-7, Sunday is 0 or 7)
// ¦ ¦ ¦ ¦ +------------ Month (1-12)
// ¦ ¦ ¦ +-------------- Day (1-31)
// ¦ ¦ +---------------- Hour (0-23)
// ¦ +------------------ Minute (0-59)
// +-------------------- Seconds (0-59) - Optional, zero if not given
//
// Allowed syntax:
// *        = All, wildcard
// */x      = Every x sec/min/hour/day/month/weekday
// x-y      = From x to y
// x,y,z    = On x, y and z
//
// Examples:
//
// Loads a plugin on every 15. of the month and unloads it on the 16. again
// 0 0 15 * * console sm plugins load myplugin
// 0 0 16 * * console sm plugins unload myplugin
//
// Makes a backup of the server every three hours
// * */3 * * * system tar zcvf backup.tar.gz "/home/user/server"
//
// Every player say: Why am i writing? At 15.20, 15.40, 16.20, 16.40, 17.20, 17.40, 20.20 and 20.40
// 20,40 15-17,20 * * player say "Why am i writing ?"
//
// More examples here: http://www.thesitewizard.com/general/set-cron-job.shtml
//
// OR:
//
// @<special> <typ> <command>
// -          -     -
// ¦          ¦     ¦
// ¦          ¦     +-- The command to execute.
// ¦          +-------- Available types are: console (execute server command), system (execute system command with system2 extension), player (execute on player console)
// +------------------- The special time to execute the command at. Has to start with a @ following the special
//
// Allowed specials: plugin_start, plugin_end, map_start, map_end and every event available in the current game ( see https://wiki.alliedmods.net/Game_Events_(Source) )!
//
// So for example this is valid:
// @player_death player say "Oh! Someone died!"
//
// Just write your Cronjobs below this Line!
__________________

Taking Private(PAID) Plugins In PM
Feel free to Donate with PayPal
Feel free to message me in Discord Pilo#8253
Total donated : 25$
Pilo is offline
alex2001
Member
Join Date: May 2019
Old 05-24-2019 , 02:48   Re: Plugin exec command feom mysql row
Reply With Quote #5

no mysl.. i need with mysql..
alex2001 is offline
Pilo
AlliedModders Donor
Join Date: Jan 2019
Location: Israel
Old 05-24-2019 , 04:11   Re: Plugin exec command feom mysql row
Reply With Quote #6

Quote:
Originally Posted by alex2001 View Post
no mysl.. i need with mysql..
What's the difference? it's much easier with cfg.
__________________

Taking Private(PAID) Plugins In PM
Feel free to Donate with PayPal
Feel free to message me in Discord Pilo#8253
Total donated : 25$
Pilo is offline
alex2001
Member
Join Date: May 2019
Old 05-24-2019 , 05:16   Re: Plugin exec command feom mysql row
Reply With Quote #7

i want to add command with android app

.. and after plugin get from tabel and send to server..
alex2001 is offline
Reply



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 14:41.


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