04.06.2010, 08:44
If you want to use Automessages, use an array instead.
Eg:
Then you would send it something like this:
Set a timer under OnGamemodeinit funtion:
Eg:
Код:
new AutoMessages[][] = { "The use of cheats in this server is not allowed and will result in a ban", // you can add your messages here "We would appreciate it if you follow all of our rules" };
Код:
forward AutoMsg(); public AutoMsg() { return SendClientMessageToAll(0xffffffaa,AutoMessages[random(sizeof(AutoMessages))])); }
Код:
SetTImer("AutoMsg",10000,1); // 10 seconds. Change if you want any other interval