08.05.2009, 19:56
Quote:
Originally Posted by [MFC
Sylar [[::TheMafia::]] ]
thx but.. i don't know how to use it in dcmd |
pawn Code:
dcmd_suggest(playerid, params[])
{
new string[128];
if (sscanf(params, "s", string)) SendClientMessage(playerid, 0xC0C0C0FF, "USAGE: /suggest [text]");
else
{
new File:handle = fopen("suggestions.txt", io_append);
format(string, 128, "%s\r\n", string);
fwrite(handle, string);
fclose(handle);
SendClientMessage(playerid, 0xC0C0C0FF, "Suggestion Send");
}
return 1;
}
You need to create a file named "suggestions.txt" in your scriptfiles folder.
Note: Not Tested, And not compiled.