Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // This is a comment
- // uncomment the line below if you want to write a filterscript
- #define FILTERSCRIPT
- #include <a_samp>
- #include <zcmd>
- #if defined FILTERSCRIPT
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" Markers Toggle by XpoZzA~");
- print("--------------------------------------\n");
- return 1;
- }
- public OnFilterScriptExit()
- {
- return 1;
- }
- #else
- main()
- {
- print("\n----------------------------------");
- print(" Blank Gamemode by your name here");
- print("----------------------------------\n");
- }
- #endif
- new ServerColors[20] = {
- 0x96816CFF, 0x64686AFF, 0x105082FF, 0xA19983FF, 0x385694FF, 0x525661FF,
- 0x7F6956FF, 0x8C929AFF, 0x596E87FF, 0x473532FF, 0x44624FFF, 0x730A27FF, 0x223457FF, 0x640D1BFF, 0xA3ADC6FF, 0x695853FF,
- 0x624428FF, 0x731827FF, 0x1B376DFF, 0xEC6AAEFF
- };
- new marks=1;
- CMD:togglemarks(playerid, params[])
- {
- if(marks == 1)
- {
- SendClientMessage(playerid, 0x33AA33AA,"Invisible.");
- //marks = 0;
- for(new i; i < MAX_PLAYERS; i++)
- {
- SetPlayerColor(i,0xFFFFFF00);
- marks = 0;
- }
- }
- else
- {
- SendClientMessage(playerid, 0x33AA33AA,"You can see them all now.");
- //marks = 1;
- for(new i; i < MAX_PLAYERS; i++)
- {
- SetPlayerColor(i, ServerColors[random(20)]);
- marks = 1;
- }
- }
- return 1;
- }
- public OnPlayerConnect(playerid)
- {
- if(marks==1)
- {
- SetPlayerColor(playerid, ServerColors[random(20)]);
- }
- else
- {
- SetPlayerColor(playerid, 0xFFFFFF00);
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement