14.06.2009, 19:17
I put on my server, the gamemode is PEN, the ID's of players in front the nick, for example: "jonybomb: (id: 0) hello"
And after that the / mute and / noooc let the players write the will, I amend the / mute but I am not able to resolve the / noooc, since yesterday I'm trying to solve!
See the code
And after that the / mute and / noooc let the players write the will, I amend the / mute but I am not able to resolve the / noooc, since yesterday I'm trying to solve!
See the code
pawn Код:
public OnPlayerText(playerid, text[])
{
if(Mute[playerid] == 1)
{
SendClientMessage(playerid, TEAM_CYAN_COLOR, "You cannot speak, you have been silenced");
return 0;
}
if(Mute[playerid] == 0)
{
if(noooc = 0)
{
new textstring[128];
format(textstring, sizeof(textstring), "(id:%i) %s", playerid, text);
SendPlayerMessageToAll(playerid, textstring);
return 0;
}
if(noooc = 1)
{
SendClientMessage(playerid, TEAM_CYAN_COLOR, "*Chat OFF");
return 0;
}