Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- Prohibido TOTALMENTE el Robo de Créditos o la
- Publicación de esta INCLUDE sin Mi Permiso.
- FULLY spaces Theft Credit or
- Publication of this INCLUDE without my permission.
- SIMPLE INCLUDE --> GetPlayerSkinColour , GetPlayerSex , GetPlayerForm
- CREDITOS: OTACON ;)
- NOTA: Menos Creditos para los que me los critican.. JO'PUTAS! :D xD ;)
- native GetPlayerSkinColour(playerid); //to check the color of skin of the character.
- native GetPlayerSex(playerid); //to verify the sex of the character.
- native GetPlayerForm(playerid); //to check the physical status of the character.
- */
- // ========== [ -|- FUNCTION -|- ] ==========
- stock GetPlayerSex(playerid) {
- switch(GetPlayerSkin(playerid)) { //Man
- case 0..8,14..30,32..38,42..52,57..62,66..68,70..73,78..84,86,94..128,132..137,142..144: return true;
- case 146..147,149,153..156,158..168,170..177,179..189,200,202..204,206,208..209,210,212,213,217: return true;
- case 220..223,227..230,234..236,239..242,247..250,252..255,264..297,299,258..262: return true;
- } return false;
- }
- stock GetPlayerSkinColour(playerid) {
- switch(!GetPlayerSkin(playerid)) { //Black
- case 0,4..22,24,25,28,30,35,36,40,46..48,50,51,54,55,58,63..67,69,74,76,78..80,83,84,86: return true;
- case 91,98,102..107,131,134,136,139,140,142..146,149..150,156,163,166,168,176,180,182,183: return true;
- case 185,187,190,193,195,207,211,214,215,218..223,230,233,238,239,243..245,249,253,256,260: return true;
- case 262,263,265,267,269,270,271,274,275,278,279,284,293,296..298: return true;
- } return false;
- }
- stock GetPlayerForm(playerid) {
- switch(!GetPlayerSkin(playerid)) { //Fat
- case 6,10,31,39,77,89,127,130,135,149,168,197,199,205,213,218,232,241,242,258,259,264,269: return true;
- } return false;
- }
- // ========== [ -|- FUNCTION -|- ] ==========
- /*
- EXAMPLE:
- #include <a_samp>
- #include <zcmd>
- #include <a_StatePlayer>
- COMMAND:test(playerid, params[]) {
- if(GetPlayerSkinColour(playerid)) { //white
- SendClientMessage(playerid, -1, "you are white");
- } else { //Black
- SendClientMessage(playerid, -1, "you are Black");
- } return true;
- }
- COMMAND:test(playerid, params[]) {
- if(GetPlayerSex(playerid)) { //man
- SendClientMessage(playerid, -1, "you are man");
- } else { //woman
- SendClientMessage(playerid, -1, "you are woman");
- } return true;
- }
- COMMAND:test(playerid, params[]) {
- if(GetPlayerForm(playerid)) { //skinny
- SendClientMessage(playerid, -1, "you are skinny");
- } else { //fat
- SendClientMessage(playerid, -1, "you are fat");
- } return true;
- }
- */
- /*
- Prohibido TOTALMENTE el Robo de Créditos o la
- Publicación de esta INCLUDE sin Mi Permiso.
- FULLY spaces Theft Credit or
- Publication of this INCLUDE without my permission.
- SIMPLE INCLUDE --> GetPlayerSkinColour , GetPlayerSex , GetPlayerForm
- CREDITOS: OTACON ;)
- NOTA: Menos Creditos para los que me los critican.. JO'PUTAS! :D xD ;)
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement