Clan Skin for only clan members
#1

I want to make it like a skin for a clan and only the clan members who are actually in clan can use it. like in CNR there is ARMY level so i want to make a CLan level... help me

edit : please reply !
Reply
#2

If you want, when the player spawns you could do something that automatically sets their skin,

Code:
new policeskin[] =
{
        280,
        281,
        282,
        288
};
That will define the skins that are useable by the police team (In this script it is a police or gangsta)

Then you can do something for when they spawn:

Code:
SetPlayerSkin(playerid, policeskin[random(4)]);
That was under OnPlayerSpawn and it will set the players skin to and of the skins you define, 4 is the number of skins that are the maximum.

Or if I am completely wrong and I am leading you to something else, you could do something where if they pick a skin, you can have it read from the

Code:
new policeskin[]
and do

Code:
If(skinchosen = policeskin)
{
     SendClientMessage(playerid, COLOR_RED, You cannot have that skin!);
}
Keep in mind they need to be tweaked alot, but I hope you get the basic idea about it.
Reply
#3

pawn Code:
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,sizeof(name));
If(skinchosen = policeskin)
{
     if(stcmp("CLAN TAG",name,false))
     SendClientMessage(playerid, COLOR_RED, You cannot have that skin!);
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)