[Include] Saving Logs And Formatting Text
#1

This include can save logs to file and format text, have four macro defines.
Код:
SendClientFormattedMessage(PlayerId,Color,String[],Arguments)
  • PlayerId - Player which get formatted message.
  • Color - Color of text.
  • String[] - Message.
  • Arguments - Arguments.
This function send formatted message to player.
Код:
SendClientFormattedMessageToAll(Color,String[],Arguments)
  • Color - Color of text.
  • String[] - Message.
  • Arguments - Arguments.
This function send formatted message to all.
Код:
SaveLog(Filename[],String[],Arguments)
  • Filename[] - Name of file.
  • String[] - Log to file.
  • Arguments - Arguments.
This function save log to selected file.
Код:
SaveToLog(String[],Arguments)
  • String[] - Log to file.
  • Arguments - Arguments.
This function save log to file called today's date, you must create folder Logs. Below is links to download.
Reply
#2

Cool script, why u didn't use stock functions instead of #define ??
Reply
#3

Because in define is it simplest. I do not must use getarg and numargs.
Reply
#4

all of them are just useFul functions , not a separte included
Reply
#5

Almost the same thing!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)