Advertisement
Guest User

Untitled

a guest
Sep 28th, 2018
873
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.51 KB | None | 0 0
  1. // This is a comment
  2. // uncomment the line below if you want to write a filterscript
  3. #define FILTERSCRIPT
  4. #include <a_samp>
  5. #include <zcmd>
  6.  
  7. #if defined FILTERSCRIPT
  8.  
  9. public OnFilterScriptInit()
  10. {
  11. print("\n--------------------------------------");
  12. print(" Markers Toggle by XpoZzA~");
  13. print("--------------------------------------\n");
  14. return 1;
  15. }
  16.  
  17. public OnFilterScriptExit()
  18. {
  19. return 1;
  20. }
  21.  
  22. #else
  23.  
  24. main()
  25. {
  26. print("\n----------------------------------");
  27. print(" Blank Gamemode by your name here");
  28. print("----------------------------------\n");
  29. }
  30.  
  31. #endif
  32. new ServerColors[20] = {
  33. 0x96816CFF, 0x64686AFF, 0x105082FF, 0xA19983FF, 0x385694FF, 0x525661FF,
  34. 0x7F6956FF, 0x8C929AFF, 0x596E87FF, 0x473532FF, 0x44624FFF, 0x730A27FF, 0x223457FF, 0x640D1BFF, 0xA3ADC6FF, 0x695853FF,
  35. 0x624428FF, 0x731827FF, 0x1B376DFF, 0xEC6AAEFF
  36. };
  37.  
  38. new marks=1;
  39. CMD:togglemarks(playerid, params[])
  40. {
  41. if(marks == 1)
  42. {
  43. SendClientMessage(playerid, 0x33AA33AA,"Invisible.");
  44. //marks = 0;
  45. for(new i; i < MAX_PLAYERS; i++)
  46. {
  47. SetPlayerColor(i,0xFFFFFF00);
  48. marks = 0;
  49. }
  50. }
  51. else
  52. {
  53. SendClientMessage(playerid, 0x33AA33AA,"You can see them all now.");
  54. //marks = 1;
  55. for(new i; i < MAX_PLAYERS; i++)
  56. {
  57. SetPlayerColor(i, ServerColors[random(20)]);
  58. marks = 1;
  59. }
  60. }
  61. return 1;
  62. }
  63.  
  64. public OnPlayerConnect(playerid)
  65. {
  66. if(marks==1)
  67. {
  68. SetPlayerColor(playerid, ServerColors[random(20)]);
  69. }
  70. else
  71. {
  72. SetPlayerColor(playerid, 0xFFFFFF00);
  73. }
  74. return 1;
  75. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement