Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- new HostnameChanger = 0; // If you use switch(hostnamechanger) You need to comment out the last public
- forward Hostname();
- public OnFilterScriptInit()
- {
- SetTimer("Hostname", 60000, 1);
- return 1;
- }
- public OnFilterScriptExit()
- {
- KillTimer(Hostname);
- return 1;
- }
- public Hostname()
- {
- restart:
- switch(++HostnameChanger)
- {
- case 1: SendRconCommand("hostname Random Test 1");
- case 2: SendRconCommand("hostname Random Test 2");
- case 3: SendRconCommand("hostname Random Test 3 Final");
- default:
- {
- HostnameChanger = 0;
- goto restart;
- }
- }
- return 1;
- }
- /*public Hostname()
- {
- switch(random(2))
- {
- case 1: SendRconCommand("hostname Random Test 1");
- case 2: SendRconCommand("hostname Random Test 2");
- }
- return 1;
- }*/
Advertisement
Add Comment
Please, Sign In to add comment