17.07.2013, 10:30
[] 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.
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;
}
[] Credits:
OTACON