25.07.2009, 08:41
Quote:
Originally Posted by r3gan
I'm trying to disable them in the OnPlayerPrivmsg() call back. Reason for this is that I have a /mute command to mute players, and when a player is muted I want to be able to stop him from sending private messages. I've tried return 0, return 1, return false, etc., etc. from within the OnPlayerPrivmsg() callback, nothing works.
|
pawn Код:
public OnPlayerPrivMsg(etc..)
{
if(muted function here == 1)) //checks if the player is muted
{
//the block message here
}
return 1;
}