Is this possible?
#5

Those examples are wrong, if you do it how RxErT does it you'll find yourself with errors.

This one below will check both and if the player is at one or the other will send the message.
Код:
if (IsPlayerInRangeOfPoint(playerid, 7.0, pos1) || IsPlayerInRangeOfPoint(playerid, 7.0, pos2)) 
{
    SendClientMessage(playerid,0xFFFFFFFF,"You are near the stadium entrance!");
}
This one will check both and if BOTH are met it will show the message.
Код:
if (IsPlayerInRangeOfPoint(playerid, 7.0, pos1) && IsPlayerInRangeOfPoint(playerid, 7.0, pos2)) 
{
    SendClientMessage(playerid,0xFFFFFFFF,"You are near the stadium entrance!");
}
https://sampwiki.blast.hk/wiki/IsPlayerInRangeOfPoint

EDIT: Vince's example is much better.
Reply


Messages In This Thread
Is this possible? - by akib - 25.05.2017, 07:30
Re: Is this possible? - by RxErT - 25.05.2017, 07:35
Re: Is this possible? - by akib - 25.05.2017, 07:38
Re: Is this possible? - by asri - 25.05.2017, 07:53
Re: Is this possible? - by Burridge - 25.05.2017, 08:47
Re: Is this possible? - by Vince - 25.05.2017, 08:48
Re: Is this possible? - by akib - 25.05.2017, 09:04
Re: Is this possible? - by CheezIt - 25.05.2017, 19:20
Re: Is this possible? - by saffierr - 26.05.2017, 07:17
Re: Is this possible? - by DRIFT_HUNTER - 26.05.2017, 08:59

Forum Jump:


Users browsing this thread: 2 Guest(s)