for(new i = 0; i < 4; i++) { if(player[playerid][vModelid][i] == 0) { player[playerid][vModelid][i] = modelid; break; // exit loop