Quote:
Originally Posted by ThisIsAUsername
Could you perhaps give us an example Thanks in advance!
|
Sure thing.
Insert to the attachments section properly (towards the end, proper syntax and formatting is very important):
Code:
\"ts\": \"{TIMESTAMP}\"}]}
and the magic:
Code:
int gettime = GetTime();
char szTimestamp[64]; IntToString(gettime, szTimestamp, sizeof(szTimestamp));
ReplaceString(msg, sizeof(msg), "{TIMESTAMP}", szTimestamp);
If you look at the discord_sourcebans plugin you'll see where to put all of these.
__________________