Help with Team chat
#3

pawn Код:
if(pClan[i] == 1 || pClan[i] == 2 || pClan[i] == 0)
This if statement will do the following:

If the value of pClan is either 1, 2 or 0, the message will be shown to the player.
I think you want to change that line to
pawn Код:
if(pClan[i] == pClan[playerid])
This will send the message only to players in the same 'pClan'.

EDIT: [XST]O_x beat me to it ;P
Reply


Messages In This Thread
Help with Team chat - by GwENiko - 29.07.2013, 15:37
Re: Help with Team chat - by [XST]O_x - 29.07.2013, 15:40
Re: Help with Team chat - by Jstylezzz - 29.07.2013, 15:41
Re: Help with Team chat - by GwENiko - 29.07.2013, 15:45

Forum Jump:


Users browsing this thread: 1 Guest(s)