Guest User

xskins.inc - eXtended Information about SAMP Skins

a guest
Jan 25th, 2014
803
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 5.32 KB | None | 0 0
  1. ////////////////////////////////////////////////////////////////////////////////
  2. //XACNR
  3. //
  4. //Title:Skins
  5. //File:xskins.inc
  6. //
  7. //Version/Date:1.0
  8. //
  9. //Author:Yashas Samaga
  10. //
  11. //Description:Provides information regard a skin.
  12. //              Valid Skin/Gender/Public Service/Law Enforcement
  13. //
  14. //
  15. //
  16. ////////////////////////////////////////////////////////////////////////////////
  17. #if defined __INCLUDED_XSKINS__
  18.     #endinput
  19. #endif
  20. #define __INCLUDED_XSKINS__
  21. ////////////////////////////////////////////////////////////////////////////////
  22. //DEFINES - comment the below if you are not using team bits
  23. //the 'Skins' Declaration will be made const and would be faster
  24. #define __xskins_using_team_bits
  25. ////////////////////////////////////////////////////////////////////////////////
  26. //DEFINES - BIT ID
  27. #define _xskin_validskin 128
  28. #define _xskin_male 64
  29. #define _xskin_publicservice 32
  30. #define _xskin_lawenforcement 16
  31. #define _xskin_team 1
  32. ////////////////////////////////////////////////////////////////////////////////
  33. #define IsValidSkin(%0) ((Skins[%0] &  _xskin_validskin) == _xskin_validskin)
  34. #define IsMaleSkin(%0) ((Skins[%0] & _xskin_male) == _xskin_male)
  35. #define IsPublicServiceSkin(%0) ((Skins[%0] & _xskin_publicservice) == _xskin_publicservice)
  36. #define IsLawEnforcementSkin(%0) ((Skins[%0] & _xskin_lawenforcement) == _xskin_lawenforcement)
  37. #define SetSkinToTeam(%0,%1) (Skins[%0] = (Skins[%0] |= %1))
  38. #define GetSkinTeam(%0) (Skins[%0] & 0xF)
  39. ////////////////////////////////////////////////////////////////////////////////
  40. //The bits are stored in this order in the array
  41. //1st bit = VALID_SKIN  - 1 if Valid
  42. //2nd bit = MALE_SKIN - 1 if male
  43. //3rd bit = PUBLIC_SERVICE - 1 if it is a public service skin
  44. //4th bit = LAW_ENFORCEMENT - 1 if the skin is a law enforcement skin
  45. //
  46. //Check "http://wiki.sa-mp.com/wiki/Category:Skins" for the skins
  47. ////////////////////////////////////////////////////////////////////////////////
  48. #if defined __xskins_using_team_bits
  49.     stock Skins[300] =
  50. #else
  51.     stock const Skins[300] =
  52. #endif
  53. {
  54.     0b11000000,0b11000000,0b11000000,0b11000000,0b11000000,0b11000000,0b11000000,0b11000000,0b11000000,0b10000000,0b10000000,0b10000000,0b10000000,0b10000000,0b11000000,0b11000000,
  55.     0b11000000,0b11000000,0b11000000,0b11000000,0b11000000,0b11000000,0b11000000,0b11000000,0b11000000,0b11000000,0b11000000,0b11000000,0b11000000,0b11000000,0b11000000,0b10000000,
  56.     0b11000000,0b11000000,0b11000000,0b11000000,0b11000000,0b11000000,0b11000000,0b10000000,0b10000000,0b10000000,0b11000000,0b11000000,0b11000000,0b11000000,0b11000000,0b11000000,
  57.     0b11000000,0b11000000,0b11000000,0b11000000,0b11000000,0b10000000,0b10000000,0b10000000,0b10000000,0b11000000,0b11000000,0b11000000,0b11000000,0b11000000,0b11000000,0b10000000,
  58.     0b10000000,0b10000000,0b11000000,0b11000000,0b11000000,0b10000000,0b11000000,0b11000000,0b11000000,0b11000000,0b00000000,0b10000000,0b10000000,0b10000000,0b11000000,0b11000000,
  59.     0b11000000,0b11000000,0b11000000,0b11000000,0b11000000,0b11000000,0b11000000,0b10000000,0b10000000,0b10000000,0b10000000,0b10000000,0b10000000,0b10000000,0b11000000,0b11000000,
  60.     0b11000000,0b11000000,0b11000000,0b11000000,0b11000000,0b11000000,0b11000000,0b11000000,0b11000000,0b11000000,0b11000000,0b11000000,0b11000000,0b11000000,0b11000000,0b11000000,
  61.     0b11000000,0b11000000,0b11000000,0b11000000,0b11000000,0b11000000,0b11000000,0b11000000,0b11000000,0b11000000,0b11000000,0b11000000,0b11000000,0b11000000,0b11000000,0b11000000,
  62.     0b11000000,0b10000000,0b10000000,0b10000000,0b11000000,0b11000000,0b11000000,0b11000000,0b11000000,0b11000000,0b10000000,0b10000000,0b10000000,0b10000000,0b11000000,0b11000000,
  63.     0b11000000,0b10000000,0b11000000,0b11000000,0b11000000,0b11000000,0b10000000,0b10000000,0b10000000,0b11000000,0b11000000,0b11000000,0b11000000,0b10000000,0b11000000,0b11000000,
  64.     0b11000000,0b11000000,0b11000000,0b11100000,0b11100000,0b11110000,0b11110000,0b11000000,0b11000000,0b10000000,0b11000000,0b11000000,0b11000000,0b11000000,0b11000000,0b11000000,
  65.     0b11000000,0b11000000,0b10000000,0b11000000,0b11000000,0b11000000,0b11000000,0b11000000,0b11000000,0b11000000,0b11000000,0b11000000,0b11000000,0b11000000,0b10000000,0b10000000,
  66.     0b10000000,0b10000000,0b10000000,0b10000000,0b10000000,0b10000000,0b10000000,0b10000000,0b11000000,0b10000000,0b11000000,0b11000000,0b11000000,0b10000000,0b11000000,0b10000000,
  67.     0b11000000,0b11000000,0b11000000,0b10000000,0b11000000,0b11000000,0b10000000,0b10000000,0b10000000,0b11000000,0b10000000,0b10000000,0b11000000,0b11000000,0b11000000,0b11000000,
  68.     0b10000000,0b10000000,0b10000000,0b11000000,0b11000000,0b11000000,0b11000000,0b10000000,0b10000000,0b10000000,0b11000000,0b11000000,0b11000000,0b10000000,0b10000000,0b11000000,
  69.     0b11000000,0b11000000,0b11000000,0b10000000,0b10000000,0b10000000,0b10000000,0b11000000,0b11000000,0b11000000,0b11000000,0b10000000,0b11000000,0b11000000,0b11000000,0b11000000,
  70.     0b10000000,0b10000000,0b11000000,0b11000000,0b11000000,0b11000000,0b11000000,0b10000000,0b11000000,0b11000000,0b11000000,0b11000000,0b11000000,0b11000000,0b11000000,0b11000000,
  71.     0b11000000,0b11000000,0b11100000,0b11100000,0b11100000,0b11100000,0b11100000,0b11100000,0b11110000,0b11110000,0b11110000,0b11110000,0b11110000,0b11110000,0b11110000,0b11110000,
  72.     0b11110000,0b11000000,0b11000000,0b11000000,0b11000000,0b11000000,0b11000000,0b11000000,0b11000000,0b11000000,0b10000000,0b11000000
  73. };
Advertisement
Add Comment
Please, Sign In to add comment