Advertisement
OtaconEvil

[INC] GetPlayerSkinColour,GetPlayerSex,GetPlayerForm

Jul 17th, 2013
595
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 3.16 KB | None | 0 0
  1. /*
  2.              Prohibido TOTALMENTE el Robo de Créditos o la
  3.               Publicación de esta INCLUDE sin Mi Permiso.
  4.  
  5.                      FULLY spaces Theft Credit or
  6.            Publication of this INCLUDE without my permission.
  7.  
  8.         SIMPLE INCLUDE --> GetPlayerSkinColour , GetPlayerSex , GetPlayerForm
  9.         CREDITOS: OTACON ;)
  10.         NOTA: Menos Creditos para los que me los critican.. JO'PUTAS! :D xD ;)
  11.  
  12.     native GetPlayerSkinColour(playerid); //to check the color of skin of the character.
  13.     native GetPlayerSex(playerid); //to verify the sex of the character.
  14.     native GetPlayerForm(playerid); //to check the physical status of the character.
  15. */
  16. // ========== [ -|- FUNCTION -|- ] ==========
  17. stock GetPlayerSex(playerid) {
  18.     switch(GetPlayerSkin(playerid)) { //Man
  19.         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;
  20.         case 146..147,149,153..156,158..168,170..177,179..189,200,202..204,206,208..209,210,212,213,217: return true;
  21.         case 220..223,227..230,234..236,239..242,247..250,252..255,264..297,299,258..262: return true;
  22.     } return false;
  23. }
  24. stock GetPlayerSkinColour(playerid) {
  25.     switch(!GetPlayerSkin(playerid)) { //Black
  26.         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;
  27.         case 91,98,102..107,131,134,136,139,140,142..146,149..150,156,163,166,168,176,180,182,183: return true;
  28.         case 185,187,190,193,195,207,211,214,215,218..223,230,233,238,239,243..245,249,253,256,260: return true;
  29.         case 262,263,265,267,269,270,271,274,275,278,279,284,293,296..298: return true;
  30.     } return false;
  31. }
  32. stock GetPlayerForm(playerid) {
  33.     switch(!GetPlayerSkin(playerid)) { //Fat
  34.         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;
  35.     } return false;
  36. }
  37. // ========== [ -|- FUNCTION -|- ] ==========
  38. /*
  39. EXAMPLE:
  40.     #include <a_samp>
  41.     #include <zcmd>
  42.     #include <a_StatePlayer>
  43.  
  44.     COMMAND:test(playerid, params[]) {
  45.         if(GetPlayerSkinColour(playerid)) { //white
  46.             SendClientMessage(playerid, -1, "you are white");
  47.         } else { //Black
  48.             SendClientMessage(playerid, -1, "you are Black");
  49.         } return true;
  50.     }
  51.  
  52.     COMMAND:test(playerid, params[]) {
  53.         if(GetPlayerSex(playerid)) { //man
  54.             SendClientMessage(playerid, -1, "you are man");
  55.         } else { //woman
  56.             SendClientMessage(playerid, -1, "you are woman");
  57.         } return true;
  58.     }
  59.  
  60.     COMMAND:test(playerid, params[]) {
  61.         if(GetPlayerForm(playerid)) { //skinny
  62.             SendClientMessage(playerid, -1, "you are skinny");
  63.         } else { //fat
  64.             SendClientMessage(playerid, -1, "you are fat");
  65.         } return true;
  66.     }
  67. */
  68. /*
  69.              Prohibido TOTALMENTE el Robo de Créditos o la
  70.               Publicación de esta INCLUDE sin Mi Permiso.
  71.  
  72.                      FULLY spaces Theft Credit or
  73.            Publication of this INCLUDE without my permission.
  74.  
  75.         SIMPLE INCLUDE --> GetPlayerSkinColour , GetPlayerSex , GetPlayerForm
  76.         CREDITOS: OTACON ;)
  77.         NOTA: Menos Creditos para los que me los critican.. JO'PUTAS! :D xD ;)
  78. */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement