SA-MP Forums Archive
SKINS - 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: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: SKINS (/showthread.php?tid=118554)



SKINS - smuf_albert95 - 03.01.2010

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)


Re: SKINS - [HiC]TheKiller - 03.01.2010

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



Re: SKINS - smuf_albert95 - 04.01.2010

what should i put at familyvariablehere ?
at what helps that?
family skins?



Re: SKINS - *ToM* - 04.01.2010

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]);




Re: SKINS - Wasim_Cortez - 04.01.2010

Nice, That would be helpful.