Help problem
#5

Code:
//==============================================================================
//Private Message (PM)
//==============================================================================
public OnPlayerPrivmsg(playerid, recieverid, text[])
{
	//--------------------------------------------------------------------------
	//Reading PM's
	//--------------------------------------------------------------------------
	new string[220];
	//--------------------------------------------------------------------------
	format(string, 220, "{FF0000}PrivateMessage: {00FF00}%s to %s: %s .*", PlayerName2(playerid), PlayerName2(recieverid), text);
	for(new a = 0; a < MAX_PLAYERS; a++)
	{
		if(IsPlayerConnected(a))
		{
			if(AccInfo[a][Level] >= 8)
			{
				if(AccInfo[a][ReadPM] == 1)
				{
   		SendClientMessage(a, grey, string);
				}
			}
		}
	}
	SaveIn("PMsLog",string);
Reply


Messages In This Thread
Help problem - by Spartaaaaa - 09.08.2014, 21:06
Re: Help problem - by Jay_Dixon - 09.08.2014, 21:16
Re: Help problem - by Spartaaaaa - 09.08.2014, 21:21
Re: Help problem - by Champ - 09.08.2014, 21:24
Re: Help problem - by Spartaaaaa - 09.08.2014, 21:31
Re: Help problem - by Champ - 09.08.2014, 21:35
Re: Help problem - by Spartaaaaa - 09.08.2014, 22:06
Re: Help problem - by Champ - 09.08.2014, 22:13
Re: Help problem - by Spartaaaaa - 09.08.2014, 22:18
Re: Help problem - by Champ - 09.08.2014, 22:25

Forum Jump:


Users browsing this thread: 1 Guest(s)