[Include] AutoMove (create automatic gates with ONE LINE!)
#8

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])
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)