[Include] Simple Player Status By OTACON
#1

[] Simple Player Status By OTACON


[] Information:
N/A

[] Function:
pawn Код:
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.
[] Example Usage:
pawn Код:
#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;
    }
[] Downloads:


[] Credits:
OTACON
Reply
#2

All of these functions have been created many times, especially in Useful Functions/Snippets topics.

Also, what about the other races depicted in the game, like hispanics and asians? What justifies a character as fat exactly?
Reply
#3

Quote:
Originally Posted by Bakr
Посмотреть сообщение
All of these functions have been created many times, especially in Useful Functions/Snippets topics.

Also, what about the other races depicted in the game, like hispanics and asians? What justifies a character as fat exactly?
Race = whites and blacks, Hispanics and Asians will be white.
simulates common GetPlayerSkin verify the player's clothing.

with this is provided to the player at the time to create systems with the skins, you just have to have some crewativilidad and imagination.

sorry for my English: :S.
Reply
#4

Quote:
Originally Posted by OTACON
Посмотреть сообщение
Race = whites and blacks, Hispanics and Asians will be white.
That isn't a very accurate function then! A more suitable name would be "IsPlayerBlackOrAnythingElseToDefaultToWhite".
Reply
#5

Author promotes 14/88 !!

Bad guy

P.S. White are only the Slavs.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)