Preventing (stopping) private messages from going through
#7

Quote:
Originally Posted by -eXo
Quote:

new pm;

Quote:

if(strcmp(cmd, "/pmoff", true) == 0)
{
pm = 1;
SendClientMessage(playerid, COLOR_GREY, "PM's toggled off!");
}
return 1;
}


if(strcmp(cmd, "/pmon", true) == 0)
{
pm = 0;
SendClientMessage(playerid, COLOR_GREY, "PM's toggled on!");
}
return 1;
}

Then add like this to /pm or /msg
Quote:

if(pm == 1)
{
SendClientMessage(playerid, COLOR_GREY, "Admin disabled PM's!");
return 1;
}
else if(pm == 0)
{
That would disable PMs for everyone, FYI.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)