SHOW:
|
|
- or go back to the newest paste.
| 1 | #include <a_samp> | |
| 2 | ||
| 3 | - | new HostnameChanger = 1; // If you use switch(hostnamechanger) You need to comment out the last public |
| 3 | + | new HostnameChanger = 0; // If you use switch(hostnamechanger) You need to comment out the last public |
| 4 | ||
| 5 | forward Hostname(); | |
| 6 | ||
| 7 | - | #if defined FILTERSCRIPT |
| 7 | + | |
| 8 | {
| |
| 9 | SetTimer("Hostname", 60000, 1);
| |
| 10 | return 1; | |
| 11 | } | |
| 12 | ||
| 13 | public OnFilterScriptExit() | |
| 14 | {
| |
| 15 | KillTimer(Hostname); | |
| 16 | return 1; | |
| 17 | } | |
| 18 | ||
| 19 | public Hostname() | |
| 20 | {
| |
| 21 | - | #else |
| 21 | + | restart: |
| 22 | switch(++HostnameChanger) | |
| 23 | - | main() |
| 23 | + | |
| 24 | case 1: SendRconCommand("hostname Random Test 1");
| |
| 25 | - | print("\n----------------------------------");
|
| 25 | + | |
| 26 | - | print(" Hostname Randomizer By Ciandlah");
|
| 26 | + | case 3: SendRconCommand("hostname Random Test 3 Final");
|
| 27 | - | print("----------------------------------\n");
|
| 27 | + | default: |
| 28 | {
| |
| 29 | HostnameChanger = 0; | |
| 30 | goto restart; | |
| 31 | } | |
| 32 | - | switch(HostnameChanger) |
| 32 | + | |
| 33 | return 1; | |
| 34 | - | case 1: SendRconCommand("hostname Random Test 1"); HostnameChanger = 2;
|
| 34 | + | |
| 35 | - | case 2: SendRconCommand("hostname Random Test 2"); HostnameChanger = 3;
|
| 35 | + | |
| 36 | - | case 3: SendRconCommand("hostname Random Test 3 Final"); HostnameChanger = 1;
|
| 36 | + | |
| 37 | {
| |
| 38 | switch(random(2)) | |
| 39 | {
| |
| 40 | case 1: SendRconCommand("hostname Random Test 1");
| |
| 41 | case 2: SendRconCommand("hostname Random Test 2");
| |
| 42 | } | |
| 43 | - | new var = random(2); |
| 43 | + | |
| 44 | - | switch(var) |
| 44 | + | }*/ |