Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- #define COLOR_GREEN 0x33AA33AA
- #define COLOR_WHITE 0xFFFFFFAA
- #define COLOR_BLACK 0x000000AA
- new AMB;
- forward AdminColor(playerid);
- //==============================================================================
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" Admin Color by Ambrósio ");
- print("--------------------------------------\n");
- SetTimer("AdminColor", 500, true);
- return 1;
- }
- //==============================================================================
- public AdminColor(playerid)
- {
- if (IsPlayerAdmin(playerid))
- switch(AMB)
- {
- case 1:
- {
- SetPlayerColor(playerid,COLOR_WHITE);
- AMB ++;
- }
- case 2:
- {
- SetPlayerColor(playerid,COLOR_BLACK);
- AMB ++;
- }
- case 3:
- {
- SetPlayerColor(playerid,COLOR_GREEN);
- AMB = 1;
- }
- }
- return 1;
- }
- //==============================================================================
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement