SHARE
TWEET

AdminColor by Ambrósio

a guest Apr 2nd, 2010 478 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <a_samp>
  2.  
  3. #define COLOR_GREEN 0x33AA33AA
  4. #define COLOR_WHITE 0xFFFFFFAA
  5. #define COLOR_BLACK 0x000000AA
  6.  
  7. new AMB;
  8. forward AdminColor(playerid);
  9.  
  10. //==============================================================================
  11.  
  12. public OnFilterScriptInit()
  13. {
  14.         print("\n--------------------------------------");
  15.         print("        Admin Color by Ambrósio         ");
  16.         print("--------------------------------------\n");
  17.        
  18.         SetTimer("AdminColor", 500, true);
  19.        
  20.     return 1;
  21. }
  22.  
  23. //==============================================================================
  24.  
  25. public AdminColor(playerid)
  26. {
  27.         if (IsPlayerAdmin(playerid))
  28.     switch(AMB)
  29.     {
  30.         case 1:
  31.         {
  32.             SetPlayerColor(playerid,COLOR_WHITE);
  33.  
  34.             AMB ++;
  35.         }
  36.  
  37.         case 2:
  38.         {
  39.             SetPlayerColor(playerid,COLOR_BLACK);
  40.  
  41.             AMB ++;
  42.         }
  43.  
  44.         case 3:
  45.         {
  46.             SetPlayerColor(playerid,COLOR_GREEN);
  47.  
  48.             AMB = 1;
  49.         }
  50.     }
  51.     return 1;
  52. }
  53. //==============================================================================
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