[Help] Foreach
#1

hello,

ProxDetectorS don't work , player can look message everywhere. How to fix that?

Код:
Chat(random, color, string[])
{
	foreach(Player, i)
	{
	   if(GetPVarInt(i, "IDT") == random)
	   {
	         new Float:X, Float:Y, Float:Z;
	         new playerid,giveplyerid;
	         GetPlayerPos(playerid, X, Y, Z);
	         GetPlayerPos(giveplayerid, X, Y, Z);
		 if (ProxDetectorS(3.0, playerid, giveplayerid))
	         {
                     SendClientMessage(i, color, string);
	         }
	         else SendClientMessage(playerid,COLOR_VBl,"Error");
	   }
	}
}
Reply


Messages In This Thread
[Help] Foreach - by RooK1e - 28.11.2013, 20:31
Re: [Help] Foreach - by Lynet - 28.11.2013, 20:35
Re: [Help] Foreach - by RooK1e - 28.11.2013, 20:38
Re: [Help] Foreach - by Jstylezzz - 28.11.2013, 20:42
Re: [Help] Foreach - by RooK1e - 28.11.2013, 21:26
Re: [Help] Foreach - by Joe_Goro - 28.11.2013, 21:30

Forum Jump:


Users browsing this thread: 2 Guest(s)