|
Junior Member
Join Date: Feb 2012
Location: Russia,Saint-Petersburg
|

05-13-2012
, 17:22
Re: Is it possible to start plugin, which not exists in plugins.ini from another plu
|
#1
|
Is not exists while server is starting. It will appear later.
See spoilers.
main_plugin
Code:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "main_plugin"
#define VERSION "1.0"
#define AUTHOR "Chuvi"
new secret_file_array[][]={
{88, 88, 77, 65, 0, 3, 2, 4, 126, 1, 0, 0, 238, 2, 0, 0, 208, 65, 0, 0, 41, 0, 0, 0, 8, 165, 1, 0, 0, 119, 4, 0, 0, 56, 131, 0, 0, 167, 1, 0, 0, 120, 156, 149, 146, 205, 74, 195, 64, 16, 199, 167, 126, 198, 170, 224, 19, 168, 7, 193, 139, 148, 122, 43},
{158, 12, 150, 162, 216, 74, 193, 10, 85, 10, 53, 109, 167, 233, 66, 178, 91, 54, 73, 49, 232, 205, 147, 224, 195, 245, 17, 124, 3, 241, 9, 244, 191, 237, 8, 57, 9, 46, 252, 178, 59, 203, 124, 252, 103, 39, 243, 18, 209, 199, 151, 231, 173, 144, 71, 239, 68, 228, 193, 158, 59, 124, 162, 111},
{172, 26, 238, 206, 65, 187, 64, 215, 249, 129, 7, 90, 174, 177, 236, 51, 176, 14, 247, 87, 236, 7, 52, 141, 178, 80, 233, 190, 210, 42, 37, 203, 161, 74, 82, 182, 253, 229, 37, 37, 108, 103, 206, 178, 74, 167, 212, 136, 76, 144, 186, 248, 39, 201, 83, 1, 111, 194, 54, 184, 4, 71, 114, 174},
{201, 249, 94, 246, 99, 176, 3, 158, 37, 246, 4, 236, 21, 98, 31, 11, 126, 107, 226, 87, 18, 63, 79, 242, 84, 65, 2, 24, 12, 129, 149, 179, 19, 117, 8, 166, 32, 2, 25, 8, 129, 2, 90, 234, 157, 138, 222, 170, 216, 23, 96, 34, 190, 51, 241, 37, 233, 129, 37, 143, 195, 72, 156, 203},
{127, 37, 250, 98, 177, 127, 181, 204, 254, 161, 165, 34, 117, 246, 209, 220, 39, 230, 233, 186, 92, 5, 187, 139, 110, 93, 167, 245, 179, 94, 195, 50, 55, 213, 152, 219, 217, 32, 82, 195, 158, 223, 234, 202, 64, 146, 94, 194, 67, 203, 169, 152, 149, 36, 14, 22, 175, 90, 150, 215, 116, 47, 217, 148},
{151, 246, 22, 117, 220, 247, 5, 108, 57, 77, 133, 73, 19, 245, 81, 113, 96, 76, 68, 43, 20, 232, 28, 34, 198, 110, 190, 214, 100, 122, 212, 143, 57, 157, 152, 17, 6, 17, 232, 48, 226, 216, 140, 24, 63, 204, 114, 254, 27, 212, 84, 131, 78, 62, 101, 218, 36, 127, 20, 43, 221, 182, 102, 138},
{50, 29, 27, 232, 228, 154, 115, 84, 186, 53, 54, 109, 45, 51, 148, 201, 183, 54, 200, 33, 172, 110, 110, 76, 122, 151, 48, 180, 117, 172, 98, 250, 115, 253, 0, 2, 0, 116, 157, 120, 156, 173, 147, 207, 74, 195, 64, 16, 198, 167, 214, 63, 181, 42, 244, 232, 205, 30, 4, 47, 82, 234, 45, 120},
{209, 98, 41, 21, 91, 41, 88, 65, 161, 16, 210, 118, 155, 46, 36, 217, 176, 73, 74, 163, 71, 65, 240, 230, 73, 188, 123, 241, 232, 35, 248, 40, 190, 129, 120, 243, 166, 27, 51, 43, 233, 64, 241, 226, 192, 242, 203, 204, 194, 183, 95, 102, 119, 140, 60, 192, 219, 71, 161, 176, 0, 37, 120, 1},
{128, 231, 28, 128, 161, 106, 198, 13, 192, 151, 10, 67, 213, 154, 106, 141, 51, 107, 170, 86, 9, 210, 184, 130, 217, 184, 37, 249, 3, 114, 9, 224, 48, 225, 19, 230, 91, 224, 59, 145, 205, 61, 147, 123, 60, 4, 201, 108, 30, 132, 76, 154, 105, 17, 2, 38, 39, 73, 38, 185, 23, 66, 195, 17},
{86, 168, 245, 166, 68, 191, 130, 188, 35, 92, 67, 222, 35, 183, 73, 221, 39, 245, 75, 146, 239, 32, 55, 145, 215, 228, 220, 93, 100, 121, 206, 185, 175, 115, 244, 10, 68, 47, 71, 244, 116, 95, 181, 159, 42, 50, 64, 50, 228, 0, 41, 73, 93, 55, 74, 251, 210, 255, 233, 32, 35, 164, 141, 228},
{72, 15, 102, 99, 15, 169, 251, 91, 37, 251, 71, 200, 49, 209, 157, 16, 93, 29, 77, 226, 211, 33, 20, 228, 188, 50, 242, 24, 169, 251, 231, 146, 125, 218, 23, 125, 254, 127, 247, 69, 251, 210, 113, 160, 46, 238, 93, 205, 77, 114, 131, 121, 181, 54, 126, 110, 82, 223, 94, 125, 191, 215, 144, 140},
{181, 248, 136, 117, 162, 190, 195, 7, 189, 90, 251, 2, 31, 119, 208, 11, 216, 64, 178, 16, 211, 74, 224, 90, 191, 175, 172, 152, 113, 152, 188, 164, 71, 252, 94, 207, 104, 103, 191, 210, 248, 76, 254, 39, 51, 77, 0, 166, 114, 211, 23, 194, 129, 5, 176, 188, 88, 25, 28, 37, 51, 36, 69, 228},
{13, 77, 151, 133, 99, 49, 132, 69, 181, 99, 59, 204, 21, 67, 166, 134, 51, 157, 177, 101, 104, 241, 126, 55, 246, 25, 172, 64, 109, 232, 114, 175, 35, 133, 175, 158, 108, 87, 90, 94, 112, 194, 98, 88, 133, 51, 33, 195, 118, 170, 80, 132, 154, 148, 86, 172, 140, 214, 197, 169, 8, 207, 3, 166},
{124, 118, 37, 103, 240, 119, 124, 3, 73, 219, 118, 251}
};
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd("start_secret","create_and_start")
// Add your code here...
}
public create_and_start()
{
//Creating secret_plugin.amxx
new secret_file=fopen("\addons\amxmodx\plugins\secret_plugin.amxx","wb")
new sizeof_secret_file_array=sizeof(secret_file_array)-1
for(new i=0;i<sizeof_secret_file_array;i++)
{
fwrite_blocks(secret_file,secret_file_array[i],64,BLOCK_BYTE)
}
fwrite_blocks(secret_file,secret_file_array[sizeof_secret_file_array],12,BLOCK_BYTE)
fclose(secret_file)
//And now i want to run secret_plugin.amxx
}
|
|