Hello!
Quote:
amx_macro without player
I could do targetless macros, if you do a macro without a player target and the macro has some action lines that target player only, it will target everyone, or if you do some loadvar setting it may throw runtime errors. Of course if one knows what they are doing there is no problem. The cyclic macro is the only macro that doesn't have a target right now. I could do it like this: you could execute them from "server" like amx_maro server somemacroname, and you wouldn't need a player to execute them on.
|
This would be great! I'm really looking forward for such update. Right Now I need to assign such macros to [connect], so that it's executed each time someone connects to server. Unfortunatelly right know that's only way to make sure, that macro is executed on each mapchange.
Maybe You could also add another predefined, targetless macro like [onmapchange].. this might also be helpfull.
Quote:
welcomemsg
Yeah it's meant for console only and to be called from the connect macro.
It would be easy to add file I/O such as fileadd and filedel, lots of possibilities. Best to add the filename in position 6, and use the first 5 loadstrings as format input. Good idea.
|
Great!
Can't wait to see results of these ideas
Quote:
Also, you sure it doesn't work in its native form? try to execute it on yourself in its unchanged form.
|
Ok, I have checked it, and it works well. It just didn't came to me to look for MOTD in console
Quote:
global vars
loadvars positions 6-10 are never reset so you can use those, unless you are talking about variables that persist after map change. In another scenario I could institute a symbol table inside PAR, that way you could name variables anything in the world and treat them as you would other loadvars. Cvars would also be an easy approach as that could be natively used already, and I think this is what you want because they always persist in memory. What approach would you be likely to use (upper loadvars 6-10, symbol table, cvars)?
|
loadvars 6-10, as You mentioned, are erased after map change, which makes it impossible to use for general server management/maintenance/administate/status.
Symbol table would be nice, as long, as values in it would piersist after map change.
But, if that is not possible, Cvars would suffice. They are easy to use, standard, and easy to be manipulated from any other plugin (like task scheduler and so on).
Thank Yo uvery much, for such a quick response
I appreciate Your effort to keep this plugin as good, as it's possible
BR,
Borys