Code:
#include <amxmodx>
#define PLUGIN "New Plugin"
#define AUTHOR "Alucard"
#define VERSION "0.0.1"
new String1[] = "hey yo, whats up";
new String2[] = "i am a little turtle";
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR);
register_clcmd("say /save", "HookCmdSave");
register_clcmd("say /load", "HookCmdLoad");
}
public HookCmdSave(id)
{
new szText[192];
formatex(szText, 191, "^"%s^" ^"%s^"", String1, String2);
write_file(file[], szText);
return PLUGIN_HANDLED;
}
public HookCmdLoad(id)
{
new szText[192], var1[64], var2[64], iLine, iLen;
while(read_file(file[], iLine++, szText, 191, iLen) )
{
parse(szText, var1, 63, var2, 63);
break;
}
client_print(id, print_chat, "%s", var1);
client_print(id, print_chat, "%s", var2);
return PLUGIN_HANDLED;
}
Is just an example, need more code...
Sry for not use fvault, nvault or whatever, i never read nothing about that things.
__________________