12.09.2013, 07:43
Almost perfect, but if you don't need any conditional logic, just use loop:
pawn Код:
CMD:enter(playerid, params[])
{
for(new i = 0; i != sizeof EnterAndExit; ++i) {
if(IsPlayerInRangeOfPoint(playerid, 2.0, EnterAndExit[i][EnterPointX], EnterAndExit[i][EnterPointY], EnterAndExit[i][EnterPointZ]))
{
SetPlayerPos(playerid, 246.8042, 63.3659, 1003.6406);
SetPlayerInterior(playerid, 6);
return 1;
}
}
return 1;
}