31.01.2010, 11:42
Right first off:
OnPlayerCommandText is for commands.
OnPlayerText is for normal game chat.
So I`d copy those lines in OnPlayerText and remove them from OnPlayerCommandText.
Can you show the lines of OnPlayerText that cause printing out what a player enters in his chatbox?
Basically you have to copy those lines like this:
OnPlayerCommandText is for commands.
OnPlayerText is for normal game chat.
So I`d copy those lines in OnPlayerText and remove them from OnPlayerCommandText.
Can you show the lines of OnPlayerText that cause printing out what a player enters in his chatbox?
Basically you have to copy those lines like this:
Код:
public OnPlayerText(playerid, text[]) { if(PlayerData[playerid][Muted] == 1) { if(PlayerData[playerid][Level] >= 4) { // HERE SHOULD THE GENERAL OUTPUT LINES BE return 1; } NMC(playerid,"[ NOTICE ] You are still muted !"); return 0; }