Zmajk0

Untitled

Mar 28th, 2020
138
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <a_samp>
  2. forward ChangeHostname();
  3. public OnFilterScriptInit()
  4. {
  5. SetTimer("ChangeHostname",5000,true);
  6. return true;
  7. }
  8. public ChangeHostname()
  9. {
  10. new hostname=random(3);
  11. switch(hostname)
  12. {
  13. case 0: SendRconCommand("hostname 1");
  14. case 1: SendRconCommand("hostname 2");
  15. case 2: SendRconCommand("hostname 3");
  16. }
  17. }
RAW Paste Data