18.09.2017, 01:34
You can use the extraid with the streamer to assign the array index in which your gate data is located so you don't have to do any looping.
Code:
hook OnPlayerEnterDynamicArea(playerid, areaid) { if(playerid != INVALID_PLAYER_ID && !IsPlayerNPC(playerid)) { for(new j = 0; j < MAX_AUTO_OBJECTS;j++) if(areaid == I_AutoMove[j][am_areaid])