Quote:
Originally Posted by RxErT
PHP код:
new pos1 = x,y,z;
new pos2 = x,y,z;
if (IsPlayerInRangeOfPoint(playerid, 7.0, pos1 or pos2))
{
SendClientMessage(playerid,0xFFFFFFFF,"You are near the stadium entrance!");
}
Use this || or &&
Like this Example:
PHP код:
new pos1 = x,y,z;
new pos2 = x,y,z;
if (IsPlayerInRangeOfPoint(playerid, 7.0, pos1 || pos2))
{
SendClientMessage(playerid,0xFFFFFFFF,"You are near the stadium entrance!");
}
PHP код:
new pos1 = x,y,z;
new pos2 = x,y,z;
if (IsPlayerInRangeOfPoint(playerid, 7.0, pos1 && pos2))
{
SendClientMessage(playerid,0xFFFFFFFF,"You are near the stadium entrance!");
}
|
Thanks!
can i also use more than 2 pos? like pos1 || pos2 || pos3 || pos4 ?