PHP код:
#include a_samp
#define novofs "arquivo.pwn"
public OnFilterScriptInit()
{
new File:arq = fopen(novofs,io_write);
fwrite(arq,"#include a_samp\n\n\n");
fwrite(arq,"main()\n{\n\n}\n\n");
fwrite(arq,"public OnFilterScriptInit()\n{\n return 1;\n}\n\n");
fwrite(arq,"public OnFilterScriptExit()\n{\n return 1;\n}\n\n");
fwrite(arq,"public OnPlayerConnect(playerid)\n{\n return 1;\n}\n\n");
fwrite(arq,"public OnPlayerDisconnect(playerid, reason)\n{\n return 1;\n}\n\n");
fwrite(arq,"public OnPlayerSpawn(playerid)\n{\n return 1;\n}\n\n");
fwrite(arq,"public OnPlayerDeath(playerid, killerid, reason)\n{\n return 1;\n}\n\n");
fwrite(arq,"public OnPlayerCommandText(playerid, cmdtext[])\n{\n return 0;\n}\n\n");
fwrite(arq,"public OnPlayerText(playerid, text[])\n{\n return 1;\n}\n\n");
fclose(arq);
}
Um Fs que gera outro Fs.