25.06.2011, 10:54
Код:
#include <a_samp> #define FILTERSCRIPT forward hostname(); forward hostname2(); #define hostnamechangetime 3000 // Change "3000" to the value how often the hostname is changed, 1000 = 1 second //---------------------------------------------------------------------------- public OnFilterScriptInit() { print("\n--------------------------------------"); print("AutoHostname"); print("--------------------------------------\n"); SetTimer("hostname", 3000, 0);/settimer 3000,to 1000 = 1 second return 1; } //---------------------------------------------------------------------------- public hostname() { SendRconCommand("hostname verision 1.6");//modify the name server don't remove hostname SetTimer("hostname", hostnamechangetime, 0);//settimer hostname return 1; } public hostname2() { SendRconCommand("hostname lets go counter strike ");//modify the name server don't remove hostname SetTimer("hostname2", hostnamechangetime, 0);//settimer hostname2 return 1; }