11.05.2013, 18:56
try now
pawn Код:
public OnPlayerText(playerid, text[])
{
new
message[128];
if(PlayerInfo[playerid][Mute] == 1)
{
SendClientMessage(playerid, COL_RED, "[ERROR]: You are muted, you can't talk");
return 0;
}
else
{
format(message, sizeof(message), "%s says: %s", GetName(playerid), text);
ProxDetector(30.0, playerid, message, -1);
}
return 1;
}