Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Exibe Marca dos Jogadores no Mapa //
- //WwW.MaiorMoral.dahora.net <- Tudo Pra Seu Servido De SA-MP
- #define FILTERSCRIPT
- #include <a_samp>
- #define COLOR_GREY 0xAFAFAFAA
- #define COLOR_GREEN 0x33AA33AA
- #define COLOR_RED 0xE60000FF
- #define COLOR_YELLOW 0xFFFF00AA
- #define COLOR_WHITE 0xFFFFFFAA
- #define COLOR_BLUE 0x0000BBAA
- #define COLOR_LIGHTBLUE 0x33CCFFAA
- #define COLOR_ORANGE 0xFF9900AA
- #define COLOR_RED2 0xAA3333AA
- #define COLOR_LIME 0x10F441AA
- forward LoadMarks(playerid);
- new RandColors[10][256] = {
- {COLOR_GREY},
- {COLOR_GREEN},
- {COLOR_RED},
- {COLOR_YELLOW},
- {COLOR_WHITE},
- {COLOR_BLUE},
- {COLOR_LIME},
- {COLOR_RED2},
- {COLOR_ORANGE},
- {COLOR_LIGHTBLUE}
- };
- public OnFilterScriptInit()
- {
- print("\n----------------------------------------------");
- print("Icone dos Jogadores no Mapa com Cores Aleatorias");
- print("por Marcelo (KRYSKY)");
- print("----------------------------------------------\n");
- return 1;
- }
- public OnFilterScriptExit()
- {
- return 1;
- }
- public OnPlayerUpdate(playerid)
- {
- LoadMarks(playerid);
- }
- public LoadMarks(playerid)
- {
- for(new i = 0; i < MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i) && !IsPlayerNPC(playerid))
- {
- new idx = random(sizeof(RandColors));
- SetPlayerMarkerForPlayer(i, playerid, RandColors[idx][0]);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement