#1

How can I make all the skins visibile on selection?
How can I put, for example: id skin 23, can be takeable just for FAMILY no. 1??
if a person join a family how can i block him to chose just the family skins not others??

lol im noob..please help me out with that...thank you! (srry for my bad english =D)
Reply
#2

Just do this on OnPlayerRequestSpawn.
pawn Код:
if(/*FamilyVariableHERE*/ != /*A certain family*/) return 0;
Reply
#3

what should i put at familyvariablehere ?
at what helps that?
family skins?
Reply
#4

Quote:
Originally Posted by smuf_albert95
what should i put at familyvariablehere ?
at what helps that?
family skins?
in familyvariablehere you put family 1 variable, depends on how did you define your teams, if it was gTeam[MAX_PLAYERS]; you put
pawn Код:
if(gTeam[playerid] != 0/or 1 whatever) return 0;
Quote:

if a person join a family how can i block him to chose just the family skins not others??

Just use random skins, and onplayerspawn check if player is in a team bla bla.

new gTeam1Skins[3][3] = {
{126}, // Skin Id's
{124},
{113}
};

new gTeam2Skins[3][3] = {
{280}, // Skin Id's
{282},
{285}
};


and

new rand;
rand = random(sizeof(gTeam1Skins));
SetPlayerSkin(playerid, gTeam1Skins[rand][0]);

Reply
#5

Nice, That would be helpful.

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)