Author Topic: [SOLVED] Client Variable Dump  (Read 1593 times)

Hello!
Does anyone know the command to echo a variable dump of a client?
For example:
findclientbyname("BI0Hazzard").dump();

Is that correct? It's not working for me, I can't seem to remember what the command is!

Thanks,
BI0Hazzard.
« Last Edit: March 06, 2016, 11:52:04 AM by BI0-Hazzard »

Hello!
Does anyone know the command to echo a variable dump of a client?
For example:
findclientbyname("BI0Hazzard").dump();

Is that correct? It's not working for me, I can't seem to remember what the command is!

Thanks,
BI0Hazzard.
that's the correct command, so i don't see why it wouldn't echo to the console; can you show a console.log with trace on showing you trying to dump the client?

that's the correct command, so i don't see why it wouldn't echo to the console; can you show a console.log with trace on showing you trying to dump the client?

Thanks for the quick response, I called it incorrectly.
Quote
findclientbyname("BI0Hazzard")dump();

I'm trying to find where the chat flood time is held, where the game stops you from talking for 5 seconds if you repeated the chat message?

I'm trying to find where the chat flood time is held, where the game stops you from talking for 5 seconds if you repeated the chat message?
$SPAM_PENALTY_PERIOD

$SPAM_PENALTY_PERIOD
Is that the clients period of 'mute' time, or is that the variable that holds how long the default penalty is for?

Is that the clients period of 'mute' time, or is that the variable that holds how long the default penalty is for?

It's how long, in seconds, the flood protection blocks someone from chat when spamming is detected. Server preference, same punishment for all clients. Default is obviously 5.

It's how long, in seconds, the flood protection blocks someone from chat when spamming is detected. Server preference, same punishment for all clients. Default is obviously 5.
If you're referring to the global variable I posted, it's not in seconds but in milliseconds, so default is actually 5000.

I get what your saying, I think I've confused myself over what I was trying to say.

I've got some chat detection commands on my server, such as !jc, !damn and stuff like that.
The commands play sounds if it is detected in someones message, if you get what I mean? However, flood-protection is enabled and the commands are still working, I am parenting back to the servercmdMessageSent.

I presumed that a variable would be set on the client if they can talk or not?

I get what your saying, I think I've confused myself over what I was trying to say.

I've got some chat detection commands on my server, such as !jc, !damn and stuff like that.
The commands play sounds if it is detected in someones message, if you get what I mean? However, flood-protection is enabled and the commands are still working, I am parenting back to the servercmdMessageSent.

I presumed that a variable would be set on the client if they can talk or not?
Check if %client.isSpamming is true before playing the sound.

Check if %client.isSpamming is true before playing the sound.

Thank you! I'll put this in now!