20.05.2012, 15:07
USE stock:
pawn Код:
stock SetSkin(playerid)
{
if(PlayerInfo[playerid][pMembro] == 1)
{
if(PlayerInfo[playerid][pSex] == 1) //Sexo masculino
{
if(PlayerInfo[playerid][pCargo] == 1) SetPlayerSkin(playerid, 134);
if(PlayerInfo[playerid][pCargo] == 2) SetPlayerSkin(playerid, 468);
}
else //Sexo Feminino
{
if(PlayerInfo[playerid][pCargo] == 1) SetPlayerSkin(playerid, 45);
if(PlayerInfo[playerid][pCargo] == 2) SetPlayerSkin(playerid, 48);
}
else if(PlayerInfo[playerid][pMembro] == 2)
{
if(PlayerInfo[playerid][pSex] == 1) //Sexo masculino
{
if(PlayerInfo[playerid][pCargo] == 1) SetPlayerSkin(playerid, 134);
if(PlayerInfo[playerid][pCargo] == 2) SetPlayerSkin(playerid, 468);
}
else //Sexo Feminino
{
if(PlayerInfo[playerid][pCargo] == 1) SetPlayerSkin(playerid, 45);
if(PlayerInfo[playerid][pCargo] == 2) SetPlayerSkin(playerid, 48);
}
}
return 1;
}
//USO:
SetSkin(playerid);