/sellhouse and local chat only help
#2

Can't help you with the first one.

Something like this? A whisper command.

Код:
COMMAND:whisper(playerid, params[])
{
	if(playerData[playerid][playerLoggedIn])
	{
		new string[250];
   
		if (sscanf(params, "s[250]", string))
		{
			SendClientMessage(playerid, COLOR_WHITE, "{B7B7B7}[SERVER] {FFFFFF}Usage: \"/(w)hisper <message>\"");
		}
		else
		{
			new Float:x,Float:y,Float:z;
			GetPlayerPos(playerid,x,y,z);
			
			new string2[250];
			format(string2, sizeof(string2), "{FE9A2E}[WHISPER] {FFFFFF}%s(%i): %s", playerData[playerid][playerNamee], playerid, string);
			
			for(new i = 0; i <= MAX_PLAYERS; i++)
			{
				if(IsPlayerInRangeOfPoint(i, 15.0, x, y, z)) 
				{
					SendClientMessage(i, COLOR_WHITE, string2);
				}
			}
		}
	}
	return 1;
}
Edit it to fit your server.
Reply


Messages In This Thread
/sellhouse and local chat only help - by RTRSorin - 24.12.2014, 15:15
Re: /sellhouse and local chat only help - by MD5 - 24.12.2014, 15:27
Re: /sellhouse and local chat only help - by RTRSorin - 24.12.2014, 15:41

Forum Jump:


Users browsing this thread: 2 Guest(s)