TahirUcar

Rastgele Mesaj

May 3rd, 2017
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.54 KB | None | 0 0
  1. /*  Orjinal Wiki sayfası için : http://wiki.sa-mp.com/wiki/Random_Messages */
  2.  
  3.  
  4. #include <a_samp>
  5.  
  6. #define FILTERSCRIPT
  7.  
  8. new RastgeleMesaj [][] =
  9. {
  10.     "Mesaj 1",
  11.     "Mesaj 2",
  12.     "Mesaj 3",
  13.     "Mesaj 4",
  14.     "Mesaj 5"
  15. };
  16.  
  17. public OnFilterScriptInit()
  18. {
  19.     SetTimer("MesajYolla", 60000, true); // 600000 = 60 saniye.
  20.     return 1;
  21. }
  22.  
  23. public OnFilterScriptExit()
  24. {
  25.     return 1;
  26. }
  27.  
  28. forward MesajYolla();
  29. public MesajYolla()
  30. {
  31.     new rastgelemsj = random(sizeof(RastgeleMesaj));
  32.     SendClientMessageToAll(-1, RastgeleMesaj[rastgelemsj]);
  33. }
Advertisement
Add Comment
Please, Sign In to add comment