Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ////////////////////////////////////////////////////////////////////////////////
- //XACNR
- //
- //Title:Skins
- //File:xskins.inc
- //
- //Version/Date:1.0
- //
- //Author:Yashas Samaga
- //
- //Description:Provides information regard a skin.
- // Valid Skin/Gender/Public Service/Law Enforcement
- //
- //
- //
- ////////////////////////////////////////////////////////////////////////////////
- #if defined __INCLUDED_XSKINS__
- #endinput
- #endif
- #define __INCLUDED_XSKINS__
- ////////////////////////////////////////////////////////////////////////////////
- //DEFINES - comment the below if you are not using team bits
- //the 'Skins' Declaration will be made const and would be faster
- #define __xskins_using_team_bits
- ////////////////////////////////////////////////////////////////////////////////
- //DEFINES - BIT ID
- #define _xskin_validskin 128
- #define _xskin_male 64
- #define _xskin_publicservice 32
- #define _xskin_lawenforcement 16
- #define _xskin_team 1
- ////////////////////////////////////////////////////////////////////////////////
- #define IsValidSkin(%0) ((Skins[%0] & _xskin_validskin) == _xskin_validskin)
- #define IsMaleSkin(%0) ((Skins[%0] & _xskin_male) == _xskin_male)
- #define IsPublicServiceSkin(%0) ((Skins[%0] & _xskin_publicservice) == _xskin_publicservice)
- #define IsLawEnforcementSkin(%0) ((Skins[%0] & _xskin_lawenforcement) == _xskin_lawenforcement)
- #define SetSkinToTeam(%0,%1) (Skins[%0] = (Skins[%0] |= %1))
- #define GetSkinTeam(%0) (Skins[%0] & 0xF)
- ////////////////////////////////////////////////////////////////////////////////
- //The bits are stored in this order in the array
- //1st bit = VALID_SKIN - 1 if Valid
- //2nd bit = MALE_SKIN - 1 if male
- //3rd bit = PUBLIC_SERVICE - 1 if it is a public service skin
- //4th bit = LAW_ENFORCEMENT - 1 if the skin is a law enforcement skin
- //
- //Check "http://wiki.sa-mp.com/wiki/Category:Skins" for the skins
- ////////////////////////////////////////////////////////////////////////////////
- #if defined __xskins_using_team_bits
- stock Skins[300] =
- #else
- stock const Skins[300] =
- #endif
- {
- 0b11000000,0b11000000,0b11000000,0b11000000,0b11000000,0b11000000,0b11000000,0b11000000,0b11000000,0b10000000,0b10000000,0b10000000,0b10000000,0b10000000,0b11000000,0b11000000,
- 0b11000000,0b11000000,0b11000000,0b11000000,0b11000000,0b11000000,0b11000000,0b11000000,0b11000000,0b11000000,0b11000000,0b11000000,0b11000000,0b11000000,0b11000000,0b10000000,
- 0b11000000,0b11000000,0b11000000,0b11000000,0b11000000,0b11000000,0b11000000,0b10000000,0b10000000,0b10000000,0b11000000,0b11000000,0b11000000,0b11000000,0b11000000,0b11000000,
- 0b11000000,0b11000000,0b11000000,0b11000000,0b11000000,0b10000000,0b10000000,0b10000000,0b10000000,0b11000000,0b11000000,0b11000000,0b11000000,0b11000000,0b11000000,0b10000000,
- 0b10000000,0b10000000,0b11000000,0b11000000,0b11000000,0b10000000,0b11000000,0b11000000,0b11000000,0b11000000,0b00000000,0b10000000,0b10000000,0b10000000,0b11000000,0b11000000,
- 0b11000000,0b11000000,0b11000000,0b11000000,0b11000000,0b11000000,0b11000000,0b10000000,0b10000000,0b10000000,0b10000000,0b10000000,0b10000000,0b10000000,0b11000000,0b11000000,
- 0b11000000,0b11000000,0b11000000,0b11000000,0b11000000,0b11000000,0b11000000,0b11000000,0b11000000,0b11000000,0b11000000,0b11000000,0b11000000,0b11000000,0b11000000,0b11000000,
- 0b11000000,0b11000000,0b11000000,0b11000000,0b11000000,0b11000000,0b11000000,0b11000000,0b11000000,0b11000000,0b11000000,0b11000000,0b11000000,0b11000000,0b11000000,0b11000000,
- 0b11000000,0b10000000,0b10000000,0b10000000,0b11000000,0b11000000,0b11000000,0b11000000,0b11000000,0b11000000,0b10000000,0b10000000,0b10000000,0b10000000,0b11000000,0b11000000,
- 0b11000000,0b10000000,0b11000000,0b11000000,0b11000000,0b11000000,0b10000000,0b10000000,0b10000000,0b11000000,0b11000000,0b11000000,0b11000000,0b10000000,0b11000000,0b11000000,
- 0b11000000,0b11000000,0b11000000,0b11100000,0b11100000,0b11110000,0b11110000,0b11000000,0b11000000,0b10000000,0b11000000,0b11000000,0b11000000,0b11000000,0b11000000,0b11000000,
- 0b11000000,0b11000000,0b10000000,0b11000000,0b11000000,0b11000000,0b11000000,0b11000000,0b11000000,0b11000000,0b11000000,0b11000000,0b11000000,0b11000000,0b10000000,0b10000000,
- 0b10000000,0b10000000,0b10000000,0b10000000,0b10000000,0b10000000,0b10000000,0b10000000,0b11000000,0b10000000,0b11000000,0b11000000,0b11000000,0b10000000,0b11000000,0b10000000,
- 0b11000000,0b11000000,0b11000000,0b10000000,0b11000000,0b11000000,0b10000000,0b10000000,0b10000000,0b11000000,0b10000000,0b10000000,0b11000000,0b11000000,0b11000000,0b11000000,
- 0b10000000,0b10000000,0b10000000,0b11000000,0b11000000,0b11000000,0b11000000,0b10000000,0b10000000,0b10000000,0b11000000,0b11000000,0b11000000,0b10000000,0b10000000,0b11000000,
- 0b11000000,0b11000000,0b11000000,0b10000000,0b10000000,0b10000000,0b10000000,0b11000000,0b11000000,0b11000000,0b11000000,0b10000000,0b11000000,0b11000000,0b11000000,0b11000000,
- 0b10000000,0b10000000,0b11000000,0b11000000,0b11000000,0b11000000,0b11000000,0b10000000,0b11000000,0b11000000,0b11000000,0b11000000,0b11000000,0b11000000,0b11000000,0b11000000,
- 0b11000000,0b11000000,0b11100000,0b11100000,0b11100000,0b11100000,0b11100000,0b11100000,0b11110000,0b11110000,0b11110000,0b11110000,0b11110000,0b11110000,0b11110000,0b11110000,
- 0b11110000,0b11000000,0b11000000,0b11000000,0b11000000,0b11000000,0b11000000,0b11000000,0b11000000,0b11000000,0b10000000,0b11000000
- };
Advertisement
Add Comment
Please, Sign In to add comment