Posts: 6,129
Threads: 36
Joined: Jan 2009
Quote:
Originally Posted by -eXo
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.