Clan system?.
#2

I think you have to use teams as "clans".


First, you have to create your team. Then get the player's team with GetPlayerTeam.


Now you have to make your command, and it should look like this:

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/clanembers", cmdtext, true) == 0)
{
new Clan[MAX_PLAYERS];
new string[128];
Clan[playerid] = GetPlayerTeam(playerid);
for(new i = 0; i < MAX_PLAYERS; i++)
if(Clan[i] == YourClan)
{
format(string, sizeof(string), "YourClan Members: %d", i);
SendClientMessage(playerid, 0xFFFFFFFF, string);
return 1;
}
return 1;
}
return 0;
}

Have fun... lol
Reply


Messages In This Thread
Clan system?. - by Hottie - 27.07.2009, 10:58
Re: Clan system?. - by refshal - 27.07.2009, 11:26
Re: Clan system?. - by Hottie - 27.07.2009, 11:30
Re: Clan system?. - by refshal - 27.07.2009, 11:42

Forum Jump:


Users browsing this thread: 1 Guest(s)