03.03.2009, 16:08
So.. the problem is, it says: Blablabla is not accepting priv. messages , but STILL sends the message you've typed. Which it shouldnt. So just say: Blablabla is not accepting private messages, and then DONT send the message. And the IsPlayerAdmin, is to make admins able to send pms to people, even though they have nopm on. Whats wrong? Please help.
Thanks!
Thanks!
pawn Код:
public OnPlayerPrivmsg(playerid, recieverid, text[])
{
new string[128];
new Name[MAX_PLAYER_NAME+1];
if(_Settings_NoPM[recieverid] == 1)
{
if(!IsPlayerAdmin(playerid)) {
GetPlayerName(recieverid, Name, sizeof(Name));
format(string, sizeof(string), "%s (%d) Is Not Accepting Private Messages At This Time.", Name, recieverid);
SendClientMessage(playerid, 0xAA0000FF, string);
return 0;
}
}
return 1;
}