SHARE
TWEET

Maior Moral

Breno_Arthur Apr 17th, 2011 192 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // Exibe Marca dos Jogadores no Mapa //
  2. //WwW.MaiorMoral.dahora.net <- Tudo Pra Seu Servido De SA-MP
  3.  
  4. #define FILTERSCRIPT
  5. #include <a_samp>
  6. #define COLOR_GREY 0xAFAFAFAA
  7. #define COLOR_GREEN 0x33AA33AA
  8. #define COLOR_RED 0xE60000FF
  9. #define COLOR_YELLOW 0xFFFF00AA
  10. #define COLOR_WHITE 0xFFFFFFAA
  11. #define COLOR_BLUE 0x0000BBAA
  12. #define COLOR_LIGHTBLUE 0x33CCFFAA
  13. #define COLOR_ORANGE 0xFF9900AA
  14. #define COLOR_RED2 0xAA3333AA
  15. #define COLOR_LIME 0x10F441AA
  16.  
  17. forward LoadMarks(playerid);
  18. new RandColors[10][256] = {
  19. {COLOR_GREY},
  20. {COLOR_GREEN},
  21. {COLOR_RED},
  22. {COLOR_YELLOW},
  23. {COLOR_WHITE},
  24. {COLOR_BLUE},
  25. {COLOR_LIME},
  26. {COLOR_RED2},
  27. {COLOR_ORANGE},
  28. {COLOR_LIGHTBLUE}
  29. };
  30.  
  31. public OnFilterScriptInit()
  32. {
  33.         print("\n----------------------------------------------");
  34.         print("Icone dos Jogadores no Mapa com Cores Aleatorias");
  35.         print("por Marcelo (KRYSKY)");
  36.         print("----------------------------------------------\n");
  37.         return 1;
  38. }
  39.  
  40. public OnFilterScriptExit()
  41. {
  42.         return 1;
  43. }
  44. public OnPlayerUpdate(playerid)
  45. {
  46.         LoadMarks(playerid);
  47. }
  48.  
  49. public LoadMarks(playerid)
  50. {
  51.         for(new i = 0; i < MAX_PLAYERS; i++)
  52.         {
  53.                 if(IsPlayerConnected(i) && !IsPlayerNPC(playerid))
  54.                 {
  55.                         new idx = random(sizeof(RandColors));
  56.                         SetPlayerMarkerForPlayer(i, playerid, RandColors[idx][0]);
  57.                 }
  58.         }
  59. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top