Little error with one command
#3

now i made command:
Код:
CMD:e(playerid, params[])
{
	new tekst[128], string[128], id;
	new Float:x, Float:y, Float:z;
	if(PlayerInfo[playerid][pAdmin] < 1)return SendClientMessage(playerid, COLOR_WHITE, "Samo admini");
	else if(sscanf(params, "s[128]", tekst))return SendClientMessage(playerid, COLOR_WHITE, "/e [Tekst]");
	GetPlayerPos(playerid, x, y, z);
 	if(IsPlayerInRangeOfPoint(playerid, 100.0, x, y, z))
 	{
		format(string, sizeof(string), "(( Admin %s: %s ))", PlayerName(playerid), tekst);
		SendClientMessage(id, -1, string);
	}
	return 1;
}
but i want hat this message can see only players in range, how to make this?
Reply


Messages In This Thread
Little error with one command - by FL3GM4 - 25.12.2012, 23:22
Re: Little error with one command - by JaKe Elite - 25.12.2012, 23:25
Re: Little error with one command - by FL3GM4 - 25.12.2012, 23:43

Forum Jump:


Users browsing this thread: 1 Guest(s)