Giter Club home page Giter Club logo

skin-tags's Introduction

Skin-Tags

An include that has a bunch of skin information.

skin-tags's People

Contributors

2col avatar crayder avatar fairuz-afdhal avatar fedemahf avatar ziggi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

skin-tags's Issues

GetSkinWeight(skinid)

#define SKIN_WEIGHT_SKINNY      (0)
#define SKIN_WEIGHT_AVERAGE     (1)
#define SKIN_WEIGHT_FAT         (2)
#define SKIN_WEIGHT_ECTO        (SKIN_WEIGHT_SKINNY)
#define SKIN_WEIGHT_MESO        (SKIN_WEIGHT_AVERAGE)
#define SKIN_WEIGHT_ENDO        (SKIN_WEIGHT_FAT)

image

GetSkinAge(skinid)

#define SKIN_AGE_YOUNG                  (0)
#define SKIN_AGE_MID                    (1)
#define SKIN_AGE_OLD                    (2)

GetSkinBeard(skinid), GetSkinHat(skinid)

Both boolean.

Use a simple script to do these. Concept code:

#include a_samp
#include strlib

new bool:skinHasHat[312], bool:skinHasBeard[312], currIndex;

main() {
    AddPlayerClass(0, 0.0, 0.0, 0.0, 0.0, 0, 0, 0, 0, 0, 0);
}

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) {
    if(newkeys & KEY_SPRINT) {
        currIndex++;
        if(currIndex == 312)
            currIndex = 0;

        SetPlayerSkin(playerid, currIndex);
    }

    else if(newkeys & KEY_YES || newkeys & KEY_NO) {
        skinHasHat[currIndex] = !!(newkeys & KEY_YES);
        SendClientMessage(playerid, (newkeys & KEY_YES) ? 0x00FF00FF : 0xFF0000FF, "Hat");
    }
    else if(newkeys & KEY_CTRL_BACK || newkeys & KEY_WALK) {
        skinHasBeard[currIndex] = !!(newkeys & KEY_CTRL_BACK);
        SendClientMessage(playerid, (newkeys & KEY_CTRL_BACK) ? 0x00FF00FF : 0xFF0000FF, "Beard");
    }

    else if(newkeys & KEY_SECONDARY_ATTACK) {
        fremove("export.txt");
        new File:expFile = fopen("export.txt");

        for(new i; i < 312; i++) {
            fwrite(expFile, sprintf("%i|%i\r\n", skinHasHat[i], skinHasBeard[i]));
        }

        fclose(expFile);

        SendClientMessage(playerid, -1, "Exported");
    }

    return 1;
}

GetSkinBreastSize(skinid)

image

Yes, for male skins too.

#define BREAST_SIZE_NONE                (0)
#define BREAST_SIZE_A                   (BREAST_SIZE_NONE)
#define BREAST_SIZE_B                   (1)
#define BREAST_SIZE_C                   (2)
#define BREAST_SIZE_D                   (3)
#define BREAST_SIZE_DD                  (BREAST_SIZE_E)
#define BREAST_SIZE_E                   (4)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.