SA-MP Forums Archive
If(IsPlayerInRangeOfPoint Problem - 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)
+--- Thread: If(IsPlayerInRangeOfPoint Problem (/showthread.php?tid=407799)



If(IsPlayerInRangeOfPoint Problem - basse - 15.01.2013

Thanks to Dark_Rain its now fixed


Re: If(IsPlayerInRangeOfPoint Problem - DaRk_RaiN - 15.01.2013

pawn Код:
dcmd_street(playerid, params[])
{
if(!IsPlayerInRangeOfPoint(playerid, 7.0, -477.3999939, -563.0000000, 28.2999992))return SendClientMessage(playerid, -1, "You are not close enough to the street racing compound!");
#pragma unused params
SendClientMessage(playerid, COLOR_GREEN, "Welcome to your Street racing compound! and do NOT forget to close the gate");
MoveObject(Stgate1, -477.3999939, -563.0000000, 28.2999992, 2.00);
MoveObject(Stgate2, -501.7999878, -562.7000122, 28.2999992, 2.00);
return 1;



Re: If(IsPlayerInRangeOfPoint Problem - basse - 15.01.2013

Thank you it works