SA-MP Forums Archive
[HELP]My Scripting is working :P need help - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [HELP]My Scripting is working :P need help (/showthread.php?tid=130058)



[HELP]My Scripting is working :P need help - lt_jones - 25.02.2010

whats wrong with this please help

Код:
public IsInBank(playerid)
{
  if(IsPlayerConnected(playerid))
	{
		if(PlayerToPoint(100.0,playerid,2308.4290,-15.8983,26.7496))	{ // 1st LS Bank
		   return 1;
		}
	}
	return 0;
}



Re: [HELP]My Scripting is working :P need help - Miguel - 25.02.2010

Use IsPlayerInRangeOfPoint():
pawn Код:
public IsInBank(playerid)
{
  return IsPlayerInRangeOfPoint(playerid, 100.0, 2308.4290, -15.8983, 26.7496);
}