28.04.2017, 20:26
Hello,
any ideas why the SendClientMessage is not showing? It should be displayed when the Player is outside the Area.
Did i miss something, like "return 1;" or something else?
Thanks.
any ideas why the SendClientMessage is not showing? It should be displayed when the Player is outside the Area.
PHP код:
if(IsPlayerInArea(playerid, -2079.122070, -270.203887, -2055.852294, -258.532623))
{
new Xarea, Yarea, Float:Zarea;
GetPlayerPos(playerid, Xarea, Yarea, Float:Zarea);
if(Xarea >= -2079.122070 && Xarea <= -270.203887 && Yarea >= -2055.852294 && Yarea <= -258.532623)
{
SendClientMessage(playerid,BLUE,"* You're inside this Area."); // This shows normally, it works.
}
else
{
SendClientMessage(playerid,BLUE,"* You're outside this Area"); // This line isn't showing.
return 1;
}
}
Thanks.