02.01.2018, 08:40
PHP код:
public OnPlayerText(playerid, text[])
{
if(chattoggled[playerid] == TRUE)
{
return 0;
}
else
{
return 0;
}
}
and I'll just fix one command you'll get the rest
PHP код:
CMD:disablechat(playerid)
{
if(PlayerInfo[playerid][Admin] < 6) return SendClientMessage(playerid, 0xFF0000AA, "You're not authorized to use that command!");
if(chattoggled[playerid] == true)
{
chattoggled[playerid] = false;
SendClientMessageToAll(0x00FFFFFF, "AdmCmd: An administrator has disabled the chat");
}
else SendClientMessage(playerid, 0xFFFF00FF, "Chat is already disabled");
return 1;
}