22.12.2013, 19:47
i really don't get what you want but
maybe something like this?
you could also store all the coords in an array and loop trough it. i did choose the fast'n ugly way :P
maybe something like this?
PHP код:
YCMD:robship(playerid, params[], help)
{
if(help) return SendClientMessage(playerid,gray,"/robship Is used to rob a ship");
if(IsPlayerInRangeOfPoint(playerid,2.5, -1455.241699,1488.627197, 7.101562) ||
IsPlayerInRangeOfPoint(playerid,2.5, -1430.084228,1490.141357, 7.101562) ||
IsPlayerInRangeOfPoint(playerid,2.5, -1404.385620,1487.339111, 7.101562) ||
IsPlayerInRangeOfPoint(playerid,2.5, -1382.949340,1480.652465, 8.562500) ||
IsPlayerInRangeOfPoint(playerid,2.5, -1376.807617,1491.879760, 11.20312) ||
IsPlayerInRangeOfPoint(playerid,2.5, -1391.966186,1483.115600, 1.867187) ||
IsPlayerInRangeOfPoint(playerid,2.5, -1433.286132,1483.311889, 1.867187) ||
IsPlayerInRangeOfPoint(playerid,2.5, -1428.165039,1490.043457, 1.867187) ||
IsPlayerInRangeOfPoint(playerid,2.5, -1393.308227,1496.295532, 1.873473) ||
IsPlayerInRangeOfPoint(playerid,2.5, -2402.665283,2308.566162, -0.68039))
{
//do something here, rob the ship
}
else SendClientMessage(playerid,-1,"you're wrong here!");
return 1;
}