clan chat
#3

You can create a command such as /clanchat [text] which will loop through all the players and only send the text to whoever is in the particular clan.

So for example:
Код:
for(new i = 0; i < MAX_PLAYERS; i++)
{
    if(PlayerInfo[i][pClan] == 1)
    {
        SendClientMessage(i, COLOR_WHITE, text);
    }
}
PlayerInfo[i][pClan] == 1
The number 1 would equal to the ID of the clan you wish to send the message to.
Reply


Messages In This Thread
clan chat - by suni - 22.06.2015, 23:53
Re : clan chat - by KillerDVX - 23.06.2015, 02:05
Re: clan chat - by Shetch - 23.06.2015, 02:08
Re: clan chat - by suni - 23.06.2015, 11:19
Re: clan chat - by X337 - 23.06.2015, 11:27
Re: clan chat - by ~Error - 23.06.2015, 11:29
Re: clan chat - by X337 - 23.06.2015, 11:32
Re: clan chat - by Dignity - 23.06.2015, 11:40
Re: clan chat - by justice96 - 23.06.2015, 11:44
Re: clan chat - by suni - 23.06.2015, 17:55

Forum Jump:


Users browsing this thread: 1 Guest(s)