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