[Ajuda] Como usar o "IsPlayerInRangeOfPoint" ?
#4

Tenta Assim!
Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
	if(strcmp("/ap15", cmdtext, true) == 0)
	{
	    if(IsPlayerInRangeOfPoint(playerid, 2.0, 1991.5396, -1727.6708, 4.6313))
	    {
			MoveObject(ID15, 1991.5396,-1727.6708,4.6313,3,0.0000,0.0000,-90.2999);
			SetTimer("MoveID15", 5000, 0);
			SendClientMessage(playerid, 0x2641FEFF, "Portao aberto");
		}
		else
		{
		    SendClientMessage(playerid, -1, "Erro!, Vocк nгo esta proximo ao portгo!");
		}
	}
	return 1;
}
Provavelmente ira funcionar!
Procure usar ZCMD, й mais fбcil!
Reply


Messages In This Thread
Como usar o "IsPlayerInRangeOfPoint" ? - by Thompsoon - 11.08.2014, 21:14
Re: Como usar o "IsPlayerInRangeOfPoint" ? - by caoraivoso3 - 11.08.2014, 21:23
Re: Como usar o "IsPlayerInRangeOfPoint" ? - by Thompsoon - 11.08.2014, 21:37
Re: Como usar o "IsPlayerInRangeOfPoint" ? - by AdrianoStk - 11.08.2014, 21:44
Re: Como usar o "IsPlayerInRangeOfPoint" ? - by Thompsoon - 11.08.2014, 21:45
Re: Como usar o "IsPlayerInRangeOfPoint" ? - by Thompsoon - 11.08.2014, 21:53
Re: Como usar o "IsPlayerInRangeOfPoint" ? - by AdrianoStk - 11.08.2014, 21:57
Re: Como usar o "IsPlayerInRangeOfPoint" ? - by SW1FTmeister - 11.08.2014, 21:58
Re: Como usar o "IsPlayerInRangeOfPoint" ? - by RoacH` - 11.08.2014, 23:11
Re: Como usar o "IsPlayerInRangeOfPoint" ? - by Thompsoon - 11.08.2014, 23:48

Forum Jump:


Users browsing this thread: 4 Guest(s)