#3

Correct code.
pawn Код:
public OnPlayerPrivmsg(playerid, recieverid, text[])
{
  new string[128],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 0;
}
Reply


Messages In This Thread
NoPM - by Robbin237 - 03.03.2009, 16:08
Re: NoPM - by ICECOLDKILLAK8 - 03.03.2009, 16:11
Re: NoPM - by Rks25 - 03.03.2009, 16:16
Re: NoPM - by Nubotron - 03.03.2009, 16:38
Re: NoPM - by Rks25 - 03.03.2009, 16:38
Re: NoPM - by Robbin237 - 04.03.2009, 10:00
Re: NoPM - by ғαιιοцт - 04.03.2009, 10:43
Re: NoPM - by Robbin237 - 04.03.2009, 11:38
Re: NoPM - by Robbin237 - 08.03.2009, 10:16
Re: NoPM - by MenaceX^ - 08.03.2009, 10:22

Forum Jump:


Users browsing this thread: 1 Guest(s)