[Include] Simple Player Status By OTACON - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (
https://sampforum.blast.hk/forumdisplay.php?fid=17)
+---- Forum: Includes (
https://sampforum.blast.hk/forumdisplay.php?fid=83)
+---- Thread: [Include] Simple Player Status By OTACON (
/showthread.php?tid=451459)
Simple Player Status By OTACON -
OTACON - 17.07.2013
[] 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
Re: Simple Player Status By OTACON -
Bakr - 17.07.2013
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?
Respuesta: Re: Simple Player Status By OTACON -
OTACON - 17.07.2013
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.
Re: Respuesta: Re: Simple Player Status By OTACON -
Bakr - 17.07.2013
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".
Re: Simple Player Status By OTACON -
Vinnyy - 17.07.2013
Author promotes 14/88 !!
Bad guy
P.S. White are only the Slavs.