24.06.2010, 14:46
Hello,
I have a little question, I'm sure the answer is simple, but I'm searching for a few days now to find a solution.
I made a /buy menu where you can buy stuff ingame, I'm using the following line's to make it able to open this menu in multiply places:
There must be a more easy way to add multiply IsPlayerInRangeOfPoints, but how?
I tryd somethign like:
But that also didn't work, I hope somebody can help me.
Thanks for reading!
I have a little question, I'm sure the answer is simple, but I'm searching for a few days now to find a solution.
I made a /buy menu where you can buy stuff ingame, I'm using the following line's to make it able to open this menu in multiply places:
Code:
if(!strcmp("/buy",cmdtext)) { if(IsPlayerInRangeOfPoint(playerid, 7.0, 2695.6880, -1704.6300, 11.8438)) { "Open buymenu" } if(IsPlayerInRangeOfPoint(playerid, 7.0, 1695.5674, -5434.6300, 44.8438)) { "Open buymenu" } if(IsPlayerInRangeOfPoint(playerid, 7.0, 3455.6880, -2345.6300, 523.8438)) { "Open buymenu" } else{ SendClientMessage(playerid,0xFFFFFFFF,"You are not near a buy point!"); } return 1; }
I tryd somethign like:
Code:
if(IsPlayerInRangeOfPoint(playerid, 7.0, 3455.6880, -2345.6300, 523.8438) || IsPlayerInRangeOfPoint(playerid, 7.0, 3455.6880, -2345.6300, 523.8438) || IsPlayerInRangeOfPoint(playerid, 7.0, 3455.6880, -2345.6300, 523.8438))
Thanks for reading!