Command: Message on radius
#1

i tried to make command which will send message players in radius, bbut here is bug, it send only to me :/

Код:
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, "Niste ovlasteni");
	else if(sscanf(params, "s[128]", tekst))return SendClientMessage(playerid, COLOR_WHITE, "/e [Tekst]");
	GetPlayerPos(playerid, x, y, z);
 	if(IsPlayerInRangeOfPoint(playerid, 50.0, x, y, z))
 	{
		format(string, sizeof(string), "(( Admin %s: %s ))", PlayerName(playerid), tekst);
		SendClientMessage(id, -1, string);
	}
	return 1;
}
Reply


Messages In This Thread
Command: Message on radius - by FL3GM4 - 26.12.2012, 02:26
Re: Command: Message on radius - by Deduction - 26.12.2012, 02:31
Re: Command: Message on radius - by FL3GM4 - 26.12.2012, 02:33
Re: Command: Message on radius - by Deduction - 26.12.2012, 02:36
Re: Command: Message on radius - by FL3GM4 - 26.12.2012, 02:43
Re: Command: Message on radius - by Deduction - 26.12.2012, 02:50
Re: Command: Message on radius - by Joe Staff - 26.12.2012, 02:52

Forum Jump:


Users browsing this thread: 1 Guest(s)