Custom OnPlayerText(for teams)
#2

That:
pawn Код:
SCM(i, COLYELLOW, message);
return 1;
will only send the message for the first player in the sender team and then send it globally, cuz simply adding "return" will break out of the loop and exit the function, returning 1 will make the server broadcast the message, so remove the "return 1" line

also using "return 0" at the end of the function will indeed stop the message from being sent globally
Reply


Messages In This Thread
Custom OnPlayerText(for teams) - by Mattakil - 16.06.2013, 15:37
Re: Custom OnPlayerText(for teams) - by OrMisicL - 16.06.2013, 15:45
Re: Custom OnPlayerText(for teams) - by Mattakil - 16.06.2013, 15:51

Forum Jump:


Users browsing this thread: 1 Guest(s)