27.07.2009, 11:26
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:
Have fun... lol
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