Help fast (+REP for helping)
#3

Код:
CMD:l(playerid, params[])
{
	if (isnull(params)) return SendClientMessage(playerid, -1, "{C0C0C0}USAGE: /b < message >");

	new Float:X, Float:Y, Float:Z, String[128], Name[25];

	GetPlayerPos(playerid, X, Y, Z);
	GetPlayerName(playerid, Name, 25);

	format(String, 128, " [%d] %s: %s ", playerid, Name, params);

	for(new i = 0; i < MAX_PLAYERS; i++)
	{
	    if (IsPlayerInRangeOfPoint(i,15.0,x,y,z))
	    {
	        SendClientMessage(playerid, 0xC0C0C0FF, String);
		}
	}

	return true;
}
Reply


Messages In This Thread
Help fast (+REP for helping) - by MarkNelson - 10.07.2016, 16:59
Re: Help fast (+REP for helping) - by MarkNelson - 10.07.2016, 17:08
Re: Help fast (+REP for helping) - by AliDollar - 10.07.2016, 17:11
Re: Help fast (+REP for helping) - by MarkNelson - 10.07.2016, 17:14
Re: Help fast (+REP for helping) - by WhiteGhost - 10.07.2016, 17:40

Forum Jump:


Users browsing this thread: 1 Guest(s)