09.02.2017, 19:08
Hello,
Everything was Okay before but after some weeks I couldn't know what I did to make this stop working ..
I'm really sure I did nothing but still It doesn't work for a reason I don't know ...
The thing is that some AutoMessages were popping to all players every 5 minutes, then suddenly it stopped working although I have never played with the function.
But I do wonder why is the AUTO_MESSAGE_TIME was never called in the script ? anyway I have never touched it and it was working fine before.
Here is the code, I hope you could find the problem :
Please, Help me as soon as possible, I would be very thankful, Thanks in advance.
Everything was Okay before but after some weeks I couldn't know what I did to make this stop working ..
I'm really sure I did nothing but still It doesn't work for a reason I don't know ...
The thing is that some AutoMessages were popping to all players every 5 minutes, then suddenly it stopped working although I have never played with the function.
But I do wonder why is the AUTO_MESSAGE_TIME was never called in the script ? anyway I have never touched it and it was working fine before.
Here is the code, I hope you could find the problem :
Код:
#define AUTO_MESSAGE_TIME 5 // Minutes between automatic messages, <= This was never called in the script, is that okay ? #define COLOR_AUTOMESSAGE 0xFF0D44AA // The Color new AutoMessages[][] = { "Want to donate to help our community stay alive, then ask an admin.", "No admins on and you want to report someone? Make a player complaint on our forums!", "Check out our forums at www.marrakechcity.boards.net", "This is our Official TS3 Server : DirtyGaming.teamspeak.me", "If you are having account issues, Make an administrative request on our forums!", "We have a zero tolerancy rule for server advertising and hacking.", "Remember at all times on the server you MUST roleplay.", "Please remember to send donations to AYMAN (Mi$ha) only.", "Use /information to view our current information about our server.", "See someone cheating or breaking rules ? Do /report", "Looking for some visual help? You may /requesthelp and an Advisor will be with you shortly.", "Wanting to become a Helper? Help around on /new and the Chief Advisor will notice you." }; forward AutoMessage(); public AutoMessage() { new string[128]; format(string, sizeof(string), "[SERVER] %s", AutoMessages[random(sizeof(AutoMessages))]); SendClientMessageToAll(COLOR_AUTOMESSAGE, string); return 1; }