21.08.2012, 18:27
Quote:
Run a loop through all the players, detect who of them is an admin, and send them the message.
Something like pawn Код:
|
pawn Код:
CMD:helpme(playerid, params[])
{
if ( isnull ( params ) ) return SendClientMessage(playerid, COLOR_YELLOW, #Syntax Usage: /helpme [message] );
new
_msg[ 128 ],
player_name[ MAX_PLAYER_NAME ];
GetPlayerName( playerid, player_name, MAX_PLAYER_NAME );
format( _msg, sizeof ( _msg ), "%s Bug reported: %s\r\n", player_name, params );
new File: fileToWrite = fopen("help.txt", io_append);
fwrite(fileToWrite, _msg);
fclose(fileToWrite);
return 1;
}
But without saving it.. Also It must have a tag [HELP] before the name and Id.
Like this [HELP][Booger][7]: Thanks for your reply Appreciate!