18.04.2013, 23:27
pawn Код:
else
{
if (strcmp("/buygod", cmdtext, true, 10) == 0)
{
if(PlayerInfo[playerid][pAdmin] < 3) return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
if(strlen(params) > 128) return SendClientMessage(playerid, COLOR_GREY, "Maximum characters limit is 128.");
{
new File: file = fopen("bugs.cfg", io_append), string[128];
format(string, sizeof(string), "%s\r\n", params);
fwrite(file, string);
fclose(file);
}
}
}
