27.06.2012, 12:56
It's dependable, if you want to have else for both together, it should be like that:
pawn Код:
if(GetPlayerSkin(playerid) == 125 && GetPlayerColor(playerid) == COLOR_RED)
{
// Your code if the player does have them both.
return 1;
}
else
{
// Your code if the player doesn't have one of them.
return 1;
}
// ------------------------------------------------------------- //
if(GetPlayerSkin(playerid) == 125)
{
// Your code if the player does have the skin.
return 1;
}
else
{
// If not.
return 1;
}
if(GetPlayerColor(playerid) == COLOR_RED)
{
// Your code if the player does have color.
return 1;
}
else
{
// If not.
return 1;
}