Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- new HostnameChanger = 1; // If you use switch(hostnamechanger) You need to comment out the last public
- forward Hostname();
- #if defined FILTERSCRIPT
- public OnFilterScriptInit()
- {
- SetTimer("Hostname", 60000, 1);
- return 1;
- }
- public OnFilterScriptExit()
- {
- KillTimer(Hostname);
- return 1;
- }
- #else
- main()
- {
- print("\n----------------------------------");
- print(" Hostname Randomizer By Ciandlah");
- print("----------------------------------\n");
- }
- public Hostname()
- {
- switch(HostnameChanger)
- {
- case 1: SendRconCommand("hostname Random Test 1"); HostnameChanger = 2;
- case 2: SendRconCommand("hostname Random Test 2"); HostnameChanger = 3;
- case 3: SendRconCommand("hostname Random Test 3 Final"); HostnameChanger = 1;
- }
- return 1;
- }
- /*public Hostname()
- {
- new var = random(2);
- switch(var)
- {
- case 1: SendRconCommand("hostname Random Test 1");
- case 2: SendRconCommand("hostname Random Test 2");
- }
- return 1;
- }*/
- #endif
Advertisement
Add Comment
Please, Sign In to add comment