OnPlayerText
#8

Replace this:
pawn Код:
if(Muted[playerid] == 1) return SendClientMessage(playerid, COLOR_ERROR, "You are currently muted and cannot type in the chatbox.");
With this (notice the 0 at the end):
pawn Код:
if(Muted[playerid] == 1) return SendClientMessage(playerid, COLOR_ERROR, "You are currently muted and cannot type in the chatbox."), 0;
You people need to learn what return values are for. SendClientMessage returns 1 at all times (or so I assume), and when anything other than 0 is returned in OnPlayerText it will send the text through.
Reply


Messages In This Thread
OnPlayerText - by Infamous - 29.11.2011, 15:18
Re: OnPlayerText - by Kostas' - 29.11.2011, 15:24
Re: OnPlayerText - by wumpyc - 29.11.2011, 15:25
Re: OnPlayerText - by Kingunit - 29.11.2011, 15:25
Re: OnPlayerText - by ElkaBlazer - 29.11.2011, 15:25
Re: OnPlayerText - by Kostas' - 29.11.2011, 15:28
Re: OnPlayerText - by Infamous - 29.11.2011, 15:43
Re: OnPlayerText - by Vince - 29.11.2011, 16:04
Re: OnPlayerText - by Infamous - 29.11.2011, 16:27

Forum Jump:


Users browsing this thread: 3 Guest(s)